]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Don't add default route to HA router if there is no gateway ip
authorHong Hui Xiao <xiaohhui@cn.ibm.com>
Sun, 15 Nov 2015 09:06:45 +0000 (04:06 -0500)
committerHong Hui Xiao <xiaohhui@cn.ibm.com>
Tue, 17 Nov 2015 05:17:32 +0000 (00:17 -0500)
commit14c09fdfc4fbda874508c170ac6a7d6ead0bfd2e
tree0a66098cf0d9c6efcef387691efc6ef3e5bb0e10
parent27437bce90baad40588f8abe74515120105ae5fc
Don't add default route to HA router if there is no gateway ip

When adding an external network with no gateway ip to a HA router,
l3 agent will report exception. The exception comes from the code
of adding default route to HA router. However, if there is no
gateway ip in the external network, there is no need to add such
route.

Change-Id: I41d6a292c903758f408d3d93a64dca7adeeb5769
Closes-Bug: #1515209
neutron/agent/l3/ha_router.py
neutron/tests/unit/agent/l3/test_ha_router.py