← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1467531] Re: ip_lib get_gateway() for default route through an interface returns wrong output

 

** Changed in: neutron
       Status: Fix Committed => Fix Released

** Changed in: neutron
    Milestone: None => liberty-2

-- 
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 neutron:
  Fix Released

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


References