[ovs-discuss] quick question about ovsdb
Todd Deshane
deshantm at gmail.com
Sat Jul 10 17:31:04 UTC 2010
On Fri, Jul 9, 2010 at 2:01 AM, Justin Pettit <jpettit at nicira.com> wrote:
> On Jul 8, 2010, at 8:50 PM, Todd Deshane wrote:
>> Also, what would be the recommended way to delete/clean up the database?
>
> Here's the relavent code in "xenserver/etc_init.d_openvswitch":
>
> start_ovsdb_server
> $vsctl --no-wait init
> if [ ! -e /var/run/openvswitch.booted ]; then
> touch /var/run/openvswitch.booted
> for bridge in $($vsctl list-br); do
> $vsctl --no-wait del-br $bridge
> done
> fi
>
> This just cleans up the bridges and the ports attached to them, which may be sufficient. The ovs-vsctl command can be used to delete and modify other entries if you need them. Let us know if you any particular questions.
>
This is exactly what I was looking for. Thanks!
Todd
More information about the discuss
mailing list