Incorrect behavior when trying to find network gateway

Bug #1646022 reported by Shachar Snapiri
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
DragonFlow
New
Medium
rajiv

Bug Description

l3_proactive_app.py (_get_gateway_port_by_ip)

When an ip address is given in some network the method will return the MAC address of the router port in that network as the MAC address of the default gateway.
This is not entirely true, as there are networks the rotuer is connected to where it is not the default gateway.
The method should check if the port is actually the network gateway, and if not return the correct address.

rajiv (rajiv-kumar)
Changed in dragonflow:
assignee: nobody → rajiv (rajiv-kumar)
Li Ma (nick-ma-z)
Changed in dragonflow:
importance: Undecided → Medium
Revision history for this message
Li Ma (nick-ma-z) wrote :

The logic in the current code is identical to Neutron:
https://github.com/openstack/neutron/blob/master/neutron/db/extraroute_db.py

You mean I need to check the given IP is in the Router.Subnet (already done) and is the Router.LogicalSwitch.Subnet.Gateway_IP?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.