From 40907d7db289dc864d529de8fd3e1ccf35d5b12a Mon Sep 17 00:00:00 2001 From: Nathaniel Case Date: Tue, 29 Aug 2017 09:47:27 -0400 Subject: [PATCH] Fix detection of associate-vrf parameter (#28725) --- lib/ansible/modules/network/nxos/nxos_vxlan_vtep_vni.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/ansible/modules/network/nxos/nxos_vxlan_vtep_vni.py b/lib/ansible/modules/network/nxos/nxos_vxlan_vtep_vni.py index 8490f64ad8a..67363dc92f2 100644 --- a/lib/ansible/modules/network/nxos/nxos_vxlan_vtep_vni.py +++ b/lib/ansible/modules/network/nxos/nxos_vxlan_vtep_vni.py @@ -107,7 +107,7 @@ from ansible.module_utils.basic import AnsibleModule from ansible.module_utils.netcfg import CustomNetworkConfig BOOL_PARAMS = [ - 'assoc-vrf', + 'assoc_vrf', 'suppress_arp', ] PARAM_TO_COMMAND_KEYMAP = { @@ -164,8 +164,7 @@ def get_existing(module, args): temp_config = netcfg.get_section(parents) if 'member vni {0} associate-vrf'.format(module.params['vni']) in temp_config: - parents.append('member vni {0} associate-vrf'.format( - module.params['vni'])) + parents.append('member vni {0} associate-vrf'.format(module.params['vni'])) config = netcfg.get_section(parents) elif "member vni {0}".format(module.params['vni']) in temp_config: parents.append('member vni {0}'.format(module.params['vni']))