ofproto-macros: Fix definition of add_of_ports.
[cascardo/ovs.git] / tests / ofproto-macros.at
index 354a384..c6c3321 100644 (file)
@@ -338,8 +338,8 @@ check_logs () {
 add_of_ports () {
     local args
     local br=$1; shift
-    for $pnum; do
-        AS_VAR_APPEND([args], [" -- $br p$pnum -- set Interface p$pnum type=dummy ofport_request=$pnum"])
+    for pnum; do
+        AS_VAR_APPEND([args], [" -- add-port $br p$pnum -- set Interface p$pnum type=dummy ofport_request=$pnum"])
     done
     ovs-vsctl $args
 }