1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Fix detection of associate-vrf parameter (#28725)

This commit is contained in:
Nathaniel Case 2017-08-29 09:47:27 -04:00 committed by GitHub
parent 4f6b270620
commit 40907d7db2

View file

@ -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']))