From 3605b68b0287e3004cc4dc7cf83b1f88aa454569 Mon Sep 17 00:00:00 2001 From: Giuseppe Lettieri Date: Tue, 11 Sep 2012 13:38:29 +0200 Subject: [PATCH] show subcommand to inspect bridge configuration --- planetlab/scripts/sliver-ovs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/planetlab/scripts/sliver-ovs b/planetlab/scripts/sliver-ovs index f58caa8a5..dce843861 100755 --- a/planetlab/scripts/sliver-ovs +++ b/planetlab/scripts/sliver-ovs @@ -268,11 +268,20 @@ function del_port () { return 0 } +function show () { + + get_params "" "$@" + + is_db_running || { echo "ovsdb-server not running" >&2; exit 1; } + + ovs-vsctl --db=unix:$DB_SOCKET show +} + #################### SUPPORTED_SUBCOMMANDS="start stop status start_db stop_db start_switch stop_switch create_bridge create_port del_bridge del_port -set_remote_endpoint" +show set_remote_endpoint" function main () { message="Usage: $COMMAND ... -- 2.43.0