Skip to content

Commit

Permalink
fix for AAP mac-update issue
Browse files Browse the repository at this point in the history
AAP config is updated only when there is a change in the ip.
code is added to do the update either ip or mac is changed

Change-Id: Id756816126210b884cbafeb746bd887bc7d0893e
Closes-bug: 1551280
  • Loading branch information
ymariappan committed Sep 7, 2016
1 parent ad82b0c commit 0ec2b22
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/config/svc-monitor/svc_monitor/port_tuple.py
Expand Up @@ -219,7 +219,8 @@ def set_port_allowed_address_pairs(self, port, vmi, vmi_obj):
update_aap = True
else:
for idx in range(0, len(vmi.aaps)):
if vmi.aaps[idx]['ip'] != aaps[idx]['ip']:
if vmi.aaps[idx]['ip'] != aaps[idx]['ip'] or \
vmi.aaps[idx]['mac'] != aaps[idx]['mac']:
update_aap = True
break
if update_aap:
Expand Down

0 comments on commit 0ec2b22

Please sign in to comment.