ofproto-macros: Fix definition of add_of_ports.
authorBen Pfaff <blp@ovn.org>
Fri, 5 Feb 2016 23:30:24 +0000 (15:30 -0800)
committerBen Pfaff <blp@ovn.org>
Sat, 6 Feb 2016 00:05:21 +0000 (16:05 -0800)
This definition just didn't work, and caused lots of tests to inadvertently
be effectively skipped.

Fixes: ca5792f0d80ffd (tests: Change ADD_OF_PORTS from macro to shell function.)
Signed-off-by: Ben Pfaff <blp@ovn.org>
Acked-by: Jarno Rajahalme <jarno@ovn.org>
Signed-off-by: Ben Pfaff <blp@ovn.org>
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
 }