Change in vdsm[master]: netinfo: report a gateway for statically configured networks

osvoboda at redhat.com osvoboda at redhat.com
Mon Feb 2 14:25:05 UTC 2015


Ondřej Svoboda has posted comments on this change.

Change subject: netinfo: report a gateway for statically configured networks
......................................................................


Patch Set 1:

(1 comment)

http://gerrit.ovirt.org/#/c/37440/1/lib/vdsm/netinfo.py
File lib/vdsm/netinfo.py:

Line 614:     # which the source route thread manages routing in a separate table (with
Line 615:     # an ID currently derived from the interface's address) we have to look in
Line 616:     # all tables.
Line 617:     gateways = [r for r in routes if r['destination'] == 'none' and
Line 618:                 (r.get('table') == table or dev) and r['scope'] == 'global' and
> Ido, Dan: Done and drafted (first I want to show that the minor addition to
Toni: Since we always call _get_gateway with the implicit 'main' table and with an explicit interface I think it's OK to change the default value to RT_TABLE_UNSPEC and skip if it is there.

 (r.get('table') == table or table == nl_route._RT_TABLE_UNSPEC)
Line 619:                 r['family'] == ('inet6' if family == 6 else 'inet')]
Line 620:     try:
Line 621:         gateway, = gateways
Line 622:     except ValueError:


-- 
To view, visit http://gerrit.ovirt.org/37440
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I65b8c789cf393fbb9aa9d040c38d2c9d9f281864
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Ondřej Svoboda <osvoboda at redhat.com>
Gerrit-Reviewer: Antoni Segura Puimedon <toni at midokura.com>
Gerrit-Reviewer: Dan Kenigsberg <danken at redhat.com>
Gerrit-Reviewer: Ido Barkan <ibarkan at redhat.com>
Gerrit-Reviewer: Lior Vernia <lvernia at redhat.com>
Gerrit-Reviewer: Ondřej Svoboda <osvoboda at redhat.com>
Gerrit-Reviewer: Petr Horáček <phoracek at redhat.com>
Gerrit-Reviewer: automation at ovirt.org
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes


More information about the vdsm-patches mailing list