[ovs-dev] [PATCH v2 1/2] ovs-sandbox: add '--vswitchd-unforced-dummy' option.
nickcooper-zhangtonghao
nic at opencloud.tech
Wed Dec 7 18:04:03 UTC 2016
The ovs-sandbox runs in the "dummy mode" by default.
In this mode of testing, no packets travel across
physical or virtual networks. But sometimes, we may
create veth network devices and add them to ovs bridge
for developing and testing. It's necessary to add an option.
Signed-off-by: nickcooper-zhangtonghao <nic at opencloud.tech>
---
tutorial/ovs-sandbox | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/tutorial/ovs-sandbox b/tutorial/ovs-sandbox
index 4372da4..4710576 100755
--- a/tutorial/ovs-sandbox
+++ b/tutorial/ovs-sandbox
@@ -69,6 +69,7 @@ built=false
ovn=false
ovnsb_schema=
ovnnb_schema=
+vswitchd_dummy="override"
for option; do
# This option-parsing mechanism borrowed from a Autoconf-generated
@@ -112,6 +113,7 @@ These options force ovs-sandbox to use an installed Open vSwitch:
--gdb-ovn-northd run ovn-northd under gdb
--gdb-ovn-controller run ovn-controller under gdb
--gdb-ovn-controller-vtep run ovn-controller-vtep under gdb
+ --vswitchd-unforced-dummy run ovs-vswitchd with unforced-dummy
-R, --gdb-run automatically start running the daemon in gdb
for any daemon set to run under gdb
-S, --schema=FILE use FILE as vswitch.ovsschema
@@ -135,6 +137,10 @@ EOF
srcdir=$optarg
built=false
;;
+ --vswitchd-unforced-dummy)
+ # Support dummy but don't force its use.
+ vswitchd_dummy=
+ ;;
-s|--sr*)
prev=srcdir
built=false
@@ -361,7 +367,7 @@ run ovs-vsctl --no-wait -- init
# Start ovs-vswitchd.
rungdb $gdb_vswitchd $gdb_vswitchd_ex ovs-vswitchd --detach --no-chdir --pidfile -vconsole:off --log-file \
- --enable-dummy=override -vvconn -vnetdev_dummy
+ --enable-dummy=$vswitchd_dummy -vvconn -vnetdev_dummy
if $ovn; then
ovs-vsctl set open . external-ids:system-id=56b18105-5706-46ef-80c4-ff20979ab068
--
1.8.3.1
More information about the dev
mailing list