Skip to content

Commit

Permalink
Fixes nxos_igmp_interface idempotence issue for N1 images (ansible#31220
Browse files Browse the repository at this point in the history
)
  • Loading branch information
rahushen authored and trishnaguha committed Oct 4, 2017
1 parent 795d19b commit 1378861
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/ansible/modules/network/nxos/nxos_igmp_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,13 +335,13 @@ def get_igmp_interface(module, interface):
if body:
resource = body['TABLE_vrf']['ROW_vrf']['TABLE_if']['ROW_if']
igmp = apply_key_map(key_map, resource)
report_llg = str(resource['ReportingForLinkLocal'])
report_llg = str(resource['ReportingForLinkLocal']).lower()
if report_llg == 'true':
igmp['report_llg'] = True
elif 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':
igmp['immediate_leave'] = True
elif immediate_leave == 'dis' or immediate_leave == 'false':
Expand Down

0 comments on commit 1378861

Please sign in to comment.