]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Create utility to clean-up netns.
authorMark McClain <mark.mcclain@dreamhost.com>
Mon, 20 Aug 2012 14:18:01 +0000 (10:18 -0400)
committerMark McClain <mark.mcclain@dreamhost.com>
Tue, 4 Sep 2012 05:45:03 +0000 (01:45 -0400)
commit8e34320bbc844c42066b9499e6afff8feda1fa56
tree2fd5ac73565c3dec3eb6d30c57755947a9d0d3b7
parentd8160e02bbccdf9ab89d644924203e4ae504c3bf
Create utility to clean-up netns.

Fixes bug 1035366

Adds namespace clean up utility called quantum-netns-cleanup which can be used
to remove old namespaces.

The --force option can be used to remove all Quantum namespaces and any
remaining devices.  The force option is should not be run on a live Quantum
systems.  It is intended for cleaning up devstack a after running
unstack.sh (ideally this will be added to unstack.sh in the future).

Example cmd line when cleaning up a devstack install:
quantum-netns-cleanup --config-file /etc/quantum/quantum.conf \
--config-file /etc/quantum/dhcp_agent.ini --force

Change-Id: I6cf153df21e83bff2cde816db12b22102d1ba698
bin/quantum-netns-cleanup [new file with mode: 0755]
quantum/agent/linux/interface.py
quantum/agent/linux/ip_lib.py
quantum/agent/linux/ovs_lib.py
quantum/agent/netns_cleanup_util.py [new file with mode: 0644]
quantum/tests/unit/openvswitch/test_ovs_lib.py
quantum/tests/unit/test_agent_netns_cleanup.py [new file with mode: 0644]
quantum/tests/unit/test_linux_ip_lib.py
setup.py