On Fri, Aug 28, 2015 at 04:31:40PM -0300, Thadeu Lima de Souza Cascardo wrote:
> 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.
> 
> This patch introduces the notion of transient ports. Ports may be added as
> transient, as a boolean in other_config smap. When openvswitch is restarted by
> using --delete-transient-ports ovs-ctl option, all transient ports will be
> removed. If the system administrator wants to remove all transient ports from 
> a
> bridge, a new ovs-vsctl command, del-transient-ports may be used.
> 
> Signed-off-by: Thadeu Lima de Souza Cascardo <casca...@redhat.com>

Do you think that it's worth having a special command for this, versus
e.g.

    for port in `ovs-vsctl --bare -- --columns=name find port 
other-config:transient=true`; do
        ovs_vsctl -- del-port "$port"
    done
_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to