]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Add a route to reach the MD server when a subnet is created
authorRossella Sblendido <rossella@midokura.com>
Wed, 25 Sep 2013 14:55:04 +0000 (14:55 +0000)
committerMark McClain <mark.mcclain@dreamhost.com>
Wed, 9 Oct 2013 14:36:02 +0000 (10:36 -0400)
commita7a4833e00eb86f44146771e429973a64fb04d9e
tree9c6c6ba06009e3d32b089f47f5f5077d7c5d6a11
parent27f5da9552ce895296b375416e8b5662b452a5fc
Add a route to reach the MD server when a subnet is created

When the first subnet is created, the dhcp port is created and
midonet plugin correctly adds the static route to reach the MD
server in create_port. When a second or following subnets are
created, a new ip is added to the dhcp port. This patch takes
care of adding the static route to correcly reach the MD server
in update_port. This fixes the problem of VMs not being able to
reach the MD if assigned to the second subnet

Closes-bug: #1231914
Change-Id: Ifc95f901d4222b76a4254e21295829ac8d82493b
(cherry picked from commit 3568a9cac73a2da19e86d82f561be10ae9dbe9a0)
neutron/plugins/midonet/plugin.py
neutron/tests/unit/midonet/test_midonet_lib.py