GNOME Bugzilla – Bug 729284
[review] dcbw/rh1091296-dispatcher: dispatch dhcp-change events when slower IP completes
Last modified: 2014-05-09 20:26:01 UTC
Created attachment 275506 [details] [review] 0001-core-emit-dhcp4-dhcp6-change-dispatcher-events-if-ot.patch If one IP version was slower to complete and the device had already entered the ACTIVATED state, the slower IP version's DHCP information wouldn't be pushed to dispatcher scripts until the first lease renew. The commit is also attached as a patch for easier review.
Comment on attachment 275506 [details] [review] 0001-core-emit-dhcp4-dhcp6-change-dispatcher-events-if-ot.patch appears to fix the bug, but isn't there another problem, where if IPv4 finishes first, and IPv6 uses SLAAC rather than DHCP, then the dispatcher never gets the IPv6 info?
Yes, that is an issue (though not a regression). A possible solution for that is to create separate dispatcher "up4" and "up6" events that get triggered from the same place as these dhcp-change events when the IP state changes from CONF -> DONE. But I thought that was out-of-scope for the current bug, so I left that out. Pretty simple fix though.
LGTM Acked-by: Thomas Haller <thaller@redhat.com>
pushed to master after rebase