Ondřej Svoboda has posted comments on this change. Change subject: iproute2, dhclient: Deal with v4/v6 protocols separately ......................................................................
Patch Set 4: (1 comment) http://gerrit.ovirt.org/#/c/31104/4/lib/vdsm/ipwrapper.py File lib/vdsm/ipwrapper.py: Line 566: """ Line 567: family = ['-%s' % family] if family in (4, 6) else [] Line 568: command = [_IP_BINARY.cmd] + family + ['addr', 'flush', 'dev', dev] Line 569: if family == 6: Line 570: command += ['scope', 'global'] > Isn't the docstring enough? Could you suggest a specific comment? The same question came to my mind :-) So far, I have come with a longer docstring but maybe it is unnecessary to explain so much. If the 'family' parameter is not 4 or 6, flush all addresses (this is used by iproute2 and pyroute_two configurators before assigning static addresses and when removing the interface). (the above part might be useful) If it is 4, remove all IPv4 addresses, even link-local. If it is 6, remove only globally-routable IPv6 addresses so link-local addresses are preserved. At least one link-local address is necessary for DHCPv6 to function. Line 571: _execCmd(command) Line 572: Line 573: Line 574: def linkAdd(name, linkType, link=None, args=()): -- To view, visit http://gerrit.ovirt.org/31104 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: I5708c4db6f6d450536bd243a0475164b89f46f93 Gerrit-PatchSet: 4 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Ondřej Svoboda <[email protected]> Gerrit-Reviewer: Antoni Segura Puimedon <[email protected]> Gerrit-Reviewer: Dan Kenigsberg <[email protected]> Gerrit-Reviewer: Ondřej Svoboda <[email protected]> Gerrit-Reviewer: [email protected] Gerrit-Reviewer: oVirt Jenkins CI Server Gerrit-HasComments: Yes _______________________________________________ vdsm-patches mailing list [email protected] https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches
