yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #33978
[Bug 1467531] [NEW] ip_lib get_gateway() for default route through an interface returns wrong output
Public bug reported:
When the routing table has a default route through an interface as shown below,
get_gateway() of IpRouteCommand class, returns a wrong output.
# ip -4 route list dev qg-595abc24-c8
default scope link
8.8.8.0/24 via 19.4.4.4
19.4.4.0/24 proto kernel scope link src 19.4.4.4
# ip -6 route list dev qg-595abc24-c8
fd00::/64 proto kernel metric 256
fe80::/64 proto kernel metric 256
default metric 1024
Output:
gateway_dev.route.get_gateway(ip_version=4)
{'gateway': 'link'}
gateway_dev.route.get_gateway(ip_version=6)
{'metric': 1024, 'gateway': '1024'}
** Affects: neutron
Importance: Undecided
Assignee: Sridhar Gaddam (sridhargaddam)
Status: In Progress
** Changed in: neutron
Assignee: (unassigned) => Sridhar Gaddam (sridhargaddam)
** Changed in: neutron
Status: New => In Progress
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1467531
Title:
ip_lib get_gateway() for default route through an interface returns
wrong output
Status in OpenStack Neutron (virtual network service):
In Progress
Bug description:
When the routing table has a default route through an interface as shown below,
get_gateway() of IpRouteCommand class, returns a wrong output.
# ip -4 route list dev qg-595abc24-c8
default scope link
8.8.8.0/24 via 19.4.4.4
19.4.4.0/24 proto kernel scope link src 19.4.4.4
# ip -6 route list dev qg-595abc24-c8
fd00::/64 proto kernel metric 256
fe80::/64 proto kernel metric 256
default metric 1024
Output:
gateway_dev.route.get_gateway(ip_version=4)
{'gateway': 'link'}
gateway_dev.route.get_gateway(ip_version=6)
{'metric': 1024, 'gateway': '1024'}
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1467531/+subscriptions
Follow ups
References