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
parent 5b5d24631a
commit e24c547a3a
9 changed files with 39 additions and 11 deletions

View file

@ -236,6 +236,9 @@ def main():
cmds = get_commands(proposed, existing, state, module)
if cmds:
# On N35 A8 images, some features return a yes/no prompt
# on enablement or disablement. Bypass using terminal dont-ask
cmds.insert(0, 'terminal dont-ask')
if not module.check_mode:
load_config(module, cmds)
results['changed'] = True