]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Set promote_secondaries when creating namespaces
authorZang MingJie <zealot0630@gmail.com>
Thu, 17 Jul 2014 15:06:07 +0000 (23:06 +0800)
committerZang MingJie <zealot0630@gmail.com>
Mon, 28 Jul 2014 09:32:14 +0000 (17:32 +0800)
commit141a00bd274ea7f90fcfe784e358bb6035af6e84
tree782fa314fdda32d9f37af394859d7e476c74acbd
parentffe34d35e865541eeaf659a1e33581c23187fd6d
Set promote_secondaries when creating namespaces

there is a sysconf entry which controls how deletion of the primary ip
is performed (/proc/sys/net/ipv4/conf/all/promote_secondaries). when set
instead of deleting the secondary addresses, one of them will be
promoted to primary ip.

Without it, when init_l3 called on a port, it may unexpectedly delete
some useful ips.

Change-Id: I0b1b3bd6ade21129532c842daa31059ea164719e
Closes-bug: 1343320
neutron/agent/linux/ip_lib.py
neutron/tests/unit/test_linux_ip_lib.py