1
0
Fork 0
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:
rahushen 2017-10-04 03:23:44 -04:00 committed by Trishna Guha
parent 795d19bc78
commit 1378861fe7

View file

@ -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':