On Wed, Dec 07, 2016 at 10:04:03AM -0800, nickcooper-zhangtonghao wrote:
> 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 <[email protected]>

I folded this in, so that the option would be "--dummy=system" to get
the behavior you want, and applied it to master.

--8<--------------------------cut here-------------------------->8--

diff --git a/tutorial/ovs-sandbox b/tutorial/ovs-sandbox
index 2ad32a1..a28dcbf 100755
--- a/tutorial/ovs-sandbox
+++ b/tutorial/ovs-sandbox
@@ -69,7 +69,7 @@ built=false
 ovn=false
 ovnsb_schema=
 ovnnb_schema=
-vswitchd_dummy="override"
+dummy=override
 
 for option; do
     # This option-parsing mechanism borrowed from a Autoconf-generated
@@ -113,7 +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
+  --dummy=ARG          pass --enable-dummy=ARG to vswitchd (default: override)
   -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
@@ -137,9 +137,11 @@ EOF
             srcdir=$optarg
             built=false
             ;;
-        --vswitchd-unforced-dummy)
-            # Support dummy but don't force its use.
-            vswitchd_dummy=
+        --dummy)
+            prev=dummy
+            ;;
+        --dummy=*)
+            dummy=$optarg
             ;;
         -s|--sr*)
             prev=srcdir
@@ -367,7 +369,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=$vswitchd_dummy -vvconn -vnetdev_dummy
+    --enable-dummy=$dummy -vvconn -vnetdev_dummy
 
 if $ovn; then
     ovs-vsctl set open . 
external-ids:system-id=56b18105-5706-46ef-80c4-ff20979ab068
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to