]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Don't remove ip addresses if not master
authorJohn Schwarz <jschwarz@redhat.com>
Mon, 12 Oct 2015 12:53:49 +0000 (15:53 +0300)
committerMiguel Angel Ajo <mangelajo@redhat.com>
Wed, 21 Oct 2015 10:06:50 +0000 (10:06 +0000)
commitb8f17bac76171993d6d276c51264fea8becb6136
treeee7a0ed58e4ddb8ea6fdd9f428446ac1c851d996
parent5cdab68528d165a654bf9b5a9822f586e0d51ee4
Don't remove ip addresses if not master

When setting --admin-state-up=False on an HA router with a gateway set,
standby nodes don't have any ip addresses set on the devices (although
the devices themselves are present). In such cases, Neutron should not
try to un-set those ip addresses before deleting the device itself.

Closes-bug: #1505203
Change-Id: I5df04b2ed1dc08286f6c467111c61c7f97643d66
neutron/agent/l3/ha_router.py
neutron/tests/functional/agent/test_l3_agent.py