Fixes for the N3500 platform that uses the A8 image (#36261)

* fix nxos_l3_interface tests as n35 doesn't support ipv6

* add terminal dont-ask to nxos_feature and nxos_lldp

* put interfaces in L2 mode for N35

* fix nxos_feature unit-tests
This commit is contained in:
rahushen 2018-02-16 23:46:03 -05:00 committed by Trishna Guha
commit e24c547a3a
9 changed files with 39 additions and 11 deletions

View file

@ -69,9 +69,9 @@ class TestNxosFeatureModule(TestNxosModule):
def test_nxos_feature_enable(self):
set_module_args(dict(feature='nve', state='enabled'))
result = self.execute_module(changed=True)
self.assertEqual(result['commands'], ['feature nv overlay'])
self.assertEqual(result['commands'], ['terminal dont-ask', 'feature nv overlay'])
def test_nxos_feature_disable(self):
set_module_args(dict(feature='ospf', state='disabled'))
result = self.execute_module(changed=True)
self.assertEqual(result['commands'], ['no feature ospf'])
self.assertEqual(result['commands'], ['terminal dont-ask', 'no feature ospf'])