You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by GitBox <gi...@apache.org> on 2021/06/01 09:13:07 UTC
[GitHub] [cloudstack] rhtyd commented on a change in pull request #5059: vr: remove old ips with same mac address in dhcpentry databag
rhtyd commented on a change in pull request #5059:
URL: https://github.com/apache/cloudstack/pull/5059#discussion_r642926611
##########
File path: systemvm/debian/opt/cloud/bin/cs_dhcp.py
##########
@@ -28,7 +28,7 @@ def merge(dbag, data):
else:
remove_keys = set()
for key, entry in dbag.iteritems():
- if key != 'id' and entry['mac_address'] == data['mac_address'] and data['remove']:
+ if key != 'id' and entry['mac_address'] == data['mac_address']:
Review comment:
@weizhouapache could this cause any regression it it always removes keys? See old commits d62d5c6cd23daeb922e5c6f64399cc30596c15a3, 8fb388e9312b917a8f36c7d7e3f45985a95ce773, c9ce3e2344ab863dae09e63bf783331097a660cb
Could it break for:
- stop and destroy a VM - does its ip/dhcp/dns rules get removed or not?
- add/remove a new nic to VM (multi-homed vms in VPC)
- update/replace new IPs to VM, say add secondary IPs to a VM
- change in nic/ip order?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org