mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fixes nxos_igmp_interface idempotence issue for N1 images (#31220)
This commit is contained in:
parent
795d19bc78
commit
1378861fe7
1 changed files with 2 additions and 2 deletions
|
@ -335,13 +335,13 @@ def get_igmp_interface(module, interface):
|
||||||
if body:
|
if body:
|
||||||
resource = body['TABLE_vrf']['ROW_vrf']['TABLE_if']['ROW_if']
|
resource = body['TABLE_vrf']['ROW_vrf']['TABLE_if']['ROW_if']
|
||||||
igmp = apply_key_map(key_map, resource)
|
igmp = apply_key_map(key_map, resource)
|
||||||
report_llg = str(resource['ReportingForLinkLocal'])
|
report_llg = str(resource['ReportingForLinkLocal']).lower()
|
||||||
if report_llg == 'true':
|
if report_llg == 'true':
|
||||||
igmp['report_llg'] = True
|
igmp['report_llg'] = True
|
||||||
elif report_llg == 'false':
|
elif report_llg == 'false':
|
||||||
igmp['report_llg'] = False
|
igmp['report_llg'] = False
|
||||||
|
|
||||||
immediate_leave = str(resource['ImmediateLeave']) # returns en or dis
|
immediate_leave = str(resource['ImmediateLeave']).lower() # returns en or dis
|
||||||
if immediate_leave == 'en' or immediate_leave == 'true':
|
if immediate_leave == 'en' or immediate_leave == 'true':
|
||||||
igmp['immediate_leave'] = True
|
igmp['immediate_leave'] = True
|
||||||
elif immediate_leave == 'dis' or immediate_leave == 'false':
|
elif immediate_leave == 'dis' or immediate_leave == 'false':
|
||||||
|
|
Loading…
Reference in a new issue