mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
nxos_bgp_neighbor_af feature idea disable-peer-as-check (#32665)
* nxos_bgp_neighbor_af feature idea disable-peer-as-check Signed-off-by: Trishna Guha <trishnaguha17@gmail.com> * Add unit test Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
This commit is contained in:
@@ -97,3 +97,11 @@ class TestNxosBgpNeighborAfModule(TestNxosModule):
|
||||
changed=True, sort=False,
|
||||
commands=['router bgp 65535', 'neighbor 3.3.3.5', 'address-family ipv4 unicast', 'maximum-prefix 20 20']
|
||||
)
|
||||
|
||||
def test_nxos_bgp_neighbor_af_disable_peer_as_check(self):
|
||||
set_module_args(dict(asn=65535, neighbor='3.3.3.5', afi='ipv4',
|
||||
safi='unicast', disable_peer_as_check=True))
|
||||
self.execute_module(
|
||||
changed=True,
|
||||
commands=['router bgp 65535', 'neighbor 3.3.3.5', 'address-family ipv4 unicast', 'disable-peer-as-check']
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user