Generalize nxos_bgp event-history detection (#28890)

* More general handling of event-history

* Update unit tests
This commit is contained in:
Nathaniel Case 2017-09-06 17:37:44 -04:00 committed by GitHub
commit f84ff216b6
3 changed files with 5 additions and 20 deletions

View file

@ -1,11 +0,0 @@
feature bgp
router bgp 65535
router-id 192.168.1.1
event-history cli size medium
event-history detail
vrf test2
address-family ipv4 unicast
timers bgp 1 10
neighbor 3.3.3.5
address-family ipv4 unicast

View file

@ -42,8 +42,8 @@ class TestNxosBgpModule(TestNxosModule):
self.mock_get_config.stop()
def load_fixtures(self, commands=None, device=''):
self.get_config.return_value = load_fixture('', 'nxos_bgp_config.cfg')
self.load_config.return_value = None
self.get_config.return_value = load_fixture('nxos_bgp', 'config.cfg')
self.load_config.return_value = []
def test_nxos_bgp(self):
set_module_args(dict(asn=65535, router_id='1.1.1.1'))