mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-02 19:32:47 +00:00
Fix detection of associate-vrf parameter (#28725)
This commit is contained in:
@@ -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']))
|
||||
|
||||
Reference in New Issue
Block a user