mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
Generalize nxos_bgp event-history detection (#28890)
* More general handling of event-history * Update unit tests
This commit is contained in:
parent
b98220f63d
commit
f84ff216b6
3 changed files with 5 additions and 20 deletions
|
@ -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
|
|
@ -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'))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue