Dan Kenigsberg has submitted this change and it was merged. Change subject: Make getRoutes() return the default gateway of each bridge interface ......................................................................
Make getRoutes() return the default gateway of each bridge interface Assuming `route -n` returns the followings: Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 engine 0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 engine 192.168.10.0 192.168.1.2 255.255.255.0 UG 0 0 0 engine Then the last shown gateway of engine '192.168.1.2' would be returned by this functions since it latest occurs in /proc/net/route. This commit makes this function always return the default gateway of each bridge interface as ovirt-engine expects. Change-Id: I6bceb3be2495bc80931c709e2132ff4542e6b763 --- M vdsm/netinfo.py 1 file changed, 2 insertions(+), 2 deletions(-) Approvals: Douglas Schilling Landgraf: Verified; Looks good to me, but someone else must approve Dan Kenigsberg: Looks good to me, approved -- To view, visit http://gerrit.ovirt.org/1101 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: merged Gerrit-Change-Id: I6bceb3be2495bc80931c709e2132ff4542e6b763 Gerrit-PatchSet: 2 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Hunt Xu <[email protected]> Gerrit-Reviewer: Dan Kenigsberg <[email protected]> Gerrit-Reviewer: Douglas Schilling Landgraf <[email protected]> Gerrit-Reviewer: Federico Simoncelli <[email protected]> Gerrit-Reviewer: Hunt Xu <[email protected]> _______________________________________________ vdsm-patches mailing list [email protected] https://fedorahosted.org/mailman/listinfo/vdsm-patches
