diff options
author | Trishna Guha <trishnaguha17@gmail.com> | 2017-11-13 14:48:31 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-13 14:48:31 +0000 |
commit | f49555d4941e40c1702526188d02470d7d315ebe (patch) | |
tree | fac9a210c41788982c8056e8af41e08c5c4abcf4 /test/units/modules | |
parent | e4052c1261be9d6deb61024a0a58c6c40763441c (diff) | |
download | ansible-f49555d4941e40c1702526188d02470d7d315ebe.tar.gz |
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>
Diffstat (limited to 'test/units/modules')
-rw-r--r-- | test/units/modules/network/nxos/test_nxos_bgp_neighbor_af.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/units/modules/network/nxos/test_nxos_bgp_neighbor_af.py b/test/units/modules/network/nxos/test_nxos_bgp_neighbor_af.py index 088e0df2ff..bbaf1e4f14 100644 --- a/test/units/modules/network/nxos/test_nxos_bgp_neighbor_af.py +++ b/test/units/modules/network/nxos/test_nxos_bgp_neighbor_af.py @@ -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'] + ) |