ovs-ctl: Add option to delete transient ports.
authorThadeu Lima de Souza Cascardo <cascardo@redhat.com>
Tue, 1 Sep 2015 20:56:09 +0000 (17:56 -0300)
committerBen Pfaff <blp@nicira.com>
Tue, 1 Sep 2015 20:59:30 +0000 (13:59 -0700)
commit54b21db7235d51b75a45a477d57daa06cb9ffe55
tree1758cf6192a65b3dbb781f8aa95f6ed80d83b813
parent7e0d3eed9d6856de79a02de963d06b1a4af99f25
ovs-ctl: Add option to delete transient ports.

When using virtualization, new ports are created and removed all the time. These
ports do not persist after a system reboot, for example. They may be created
again by the virtualization manager, but that will happen after the vswitch is
already running, and the virtualization manager will add them again to the
bridge.

If a reboot happens without properly deleting such ports, all kinds of errors
will happen. The absence of the ports will be logged as errors, and adding those
ports again to the database will fail.

Deleting all bridges may not be an option, if the system cannot persist other
information outside of OVSDB.

This patch introduces the notion of transient ports. Ports may be added as
transient, as a boolean in other_config smap. When openvswitch is started by
using --delete-transient-ports ovs-ctl option, all transient ports will be
removed.

Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@redhat.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
utilities/ovs-ctl.8
utilities/ovs-ctl.in
vswitchd/vswitch.xml