commit 59236a014859e1e14a5844286903753d3f520e3e
Author: Shih-Hao Li <email address hidden>
Date: Fri Mar 11 15:13:34 2016 -0800
Update network object in DHCP agent with router interface changes
In Dnsmasq, the function get_isolated_subnets() returns a list of
subnets in a network if the subnet is not connected to a router.
The implementation of this function checks all the router interface
ports in a cached network object passed from DHCP agent. But the
cached network object is not updated when a subnet is attached to
or detached from a router.
This patch fixes that by adding callback functions in DHCP RPC client
to notify DHCP agent when changes happen on router interfaces.
Local changes:
- in a unit test, moved callback failure setup to after interface is
added to a router, because now we call to register.notify in
add_router_interface too, and the test intends to trigger failure mode
for interface removal only.
Closes-Bug: #1554825
Change-Id: Ifaab163f49e0d1c5cb3eba6efa96214104647e4e
(cherry picked from commit aa00310eef0d2507c4da76eb5dd5130df043b0a5)
Reviewed: https:/ /review. openstack. org/321628 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=59236a01485 9e1e14a58442869 03753d3f520e3e
Committed: https:/
Submitter: Jenkins
Branch: stable/liberty
commit 59236a014859e1e 14a584428690375 3d3f520e3e
Author: Shih-Hao Li <email address hidden>
Date: Fri Mar 11 15:13:34 2016 -0800
Update network object in DHCP agent with router interface changes
In Dnsmasq, the function get_isolated_ subnets( ) returns a list of
subnets in a network if the subnet is not connected to a router.
The implementation of this function checks all the router interface
ports in a cached network object passed from DHCP agent. But the
cached network object is not updated when a subnet is attached to
or detached from a router.
This patch fixes that by adding callback functions in DHCP RPC client
to notify DHCP agent when changes happen on router interfaces.
Conflicts: api/rpc/ agentnotifiers/ dhcp_rpc_ agent_api. py db/l3_db. py db/l3_dvr_ db.py
neutron/
neutron/
neutron/
Local changes: router_ interface too, and the test intends to trigger failure mode
- in a unit test, moved callback failure setup to after interface is
added to a router, because now we call to register.notify in
add_
for interface removal only.
Closes-Bug: #1554825 c5cb3eba6efa962 14104647e4e 7c4da76eb5dd513 0df043b0a5)
Change-Id: Ifaab163f49e0d1
(cherry picked from commit aa00310eef0d250