]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Configure gw_iface for RAs only in Master HA Router
authorsridhargaddam <sridhar.gaddam@enovance.com>
Thu, 10 Sep 2015 16:14:13 +0000 (16:14 +0000)
committersridhargaddam <sridhar.gaddam@enovance.com>
Fri, 11 Sep 2015 14:01:23 +0000 (14:01 +0000)
commitc89a4fdd88b0f8832b32af55f64e0d3a35c84388
tree8eec1aac5343441c12d68731530a35b5cbd4e8e4
parent636de7abc85c71be404a1aa27bda0f535dab33f1
Configure gw_iface for RAs only in Master HA Router

For an HA Router which does not have any IPv6 subnets in the external network
and when ipv6_gateway is not set, Neutron configures the gateway interface of
the router to receive Router Advts for default route. In an HA router, only
the Master instance has the IP addresses while the Backup instance does not
have any addresses (including LLA). In Kernel version 3.10, when the last
IPv6 address is removed from the interface, IPv6 proc entries corresponding
to the iface are also deleted. This is however reverted in the later versions
of kernel code.

This patch addresses this issue by configuring the proc entry only for the
Master HA Router instance instead of doing it un-conditionally.

Closes-Bug: #1494336
Change-Id: Ibf8e0ff64cda00314f8fa649ef5019c95c2d6004
neutron/agent/l3/ha.py
neutron/agent/l3/ha_router.py
neutron/agent/l3/router_info.py