Petr Horáček has uploaded a new change for review. Change subject: pyroute2: use pyroute2's routes handling ......................................................................
pyroute2: use pyroute2's routes handling Use pyroute2's routes handling instead of ipwrapper. Change-Id: I8ccc39470ef4094dc0a6a6ca157eb0c5aef05cd1 Signed-off-by: Petr Horáček <[email protected]> --- M vdsm/network/configurators/pyroute_two.py 1 file changed, 2 insertions(+), 1 deletion(-) git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/50/32450/1 diff --git a/vdsm/network/configurators/pyroute_two.py b/vdsm/network/configurators/pyroute_two.py index 9fe63b5..9e9a5c5 100644 --- a/vdsm/network/configurators/pyroute_two.py +++ b/vdsm/network/configurators/pyroute_two.py @@ -61,7 +61,8 @@ with self.ip.interfaces[iface.name] as i: i.add_ip('%s/%s' % (ipConfig.ipaddr, ipConfig.netmask)) if ipConfig.gateway and ipConfig.defaultRoute: - ipwrapper.routeAdd(['default', 'via', ipConfig.gateway]) + self.ip.routes.add({'dst': 'default', + 'gateway': ipConfig.gateway}).commit() def removeIpConfig(self, iface): ipwrapper.addrFlush(iface.name) -- To view, visit http://gerrit.ovirt.org/32450 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I8ccc39470ef4094dc0a6a6ca157eb0c5aef05cd1 Gerrit-PatchSet: 1 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Petr Horáček <[email protected]> _______________________________________________ vdsm-patches mailing list [email protected] https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches
