Fix method dvr_update_router_addvm to notify every
router attached to subnet where the vm will boot
on.
In dvr case, when a subnet only attaches to one router,
the subnet will only have one distributed router interface,
which device_owner is "network:router_interface_distributed".
So in this case, get_ports in this method will only get
one port, and it should be unnecessary to break in for loop.
But when a subnet attaches multiple routers, get_ports in
this method will return all distributed router interfaces
and the routers hold those interfaces should be notified
when an instance booted on the subnet. So it should also
be unnecessary to break in for loop.
Closes-Bug: #1427122
Co-Authored-By: Ryan Moats <email address hidden>
(cherry picked from commit 24fa37e05544316b58357b753360b147878e5d94)
Reviewed: https:/ /review. openstack. org/245021 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=d2255ab194a 6a597ef45b36cfc 7584b76503544d
Committed: https:/
Submitter: Jenkins
Branch: stable/kilo
commit d2255ab194a6a59 7ef45b36cfc7584 b76503544d
Author: lzklibj <email address hidden>
Date: Mon Mar 2 02:13:41 2015 -0800
Fix dvr update for subnet attach multi subnets
Fix method dvr_update_ router_ addvm to notify every
router attached to subnet where the vm will boot
on.
In dvr case, when a subnet only attaches to one router, router_ interface_ distributed" .
the subnet will only have one distributed router interface,
which device_owner is "network:
So in this case, get_ports in this method will only get
one port, and it should be unnecessary to break in for loop.
But when a subnet attaches multiple routers, get_ports in
this method will return all distributed router interfaces
and the routers hold those interfaces should be notified
when an instance booted on the subnet. So it should also
be unnecessary to break in for loop.
Closes-Bug: #1427122 b58357b753360b1 47878e5d94)
Co-Authored-By: Ryan Moats <email address hidden>
(cherry picked from commit 24fa37e05544316
Conflicts: db/l3_dvrschedu ler_db. py tests/unit/ scheduler/ test_l3_ agent_scheduler .py 8abd1a5b9243958 44507da0764
neutron/
neutron/
Change-Id: I3a5808e5b6e8b7