diff options
author | YAMAMOTO Takashi <yamamoto@ovn.org> | 2016-10-18 11:31:55 +0000 |
---|---|---|
committer | YAMAMOTO Takashi <yamamoto@ovn.org> | 2016-10-19 12:45:45 +0900 |
commit | 8d2b85be5deb5f2ce80b3cd35784112281479943 (patch) | |
tree | a649fc31056b95a52f51341e13b1406eed0ae85a /tests | |
parent | 04d60f6e63c66b3426c1ea3ffec9eaadfb6b1086 (diff) | |
download | openvswitch-8d2b85be5deb5f2ce80b3cd35784112281479943.tar.gz |
ovn-controller.at: Stop hardcoding a list of iface types
The list of supported iface types hardcoded in the test
is wrong on NetBSD. (or any userland-only ports I guess)
Instead of adding another case for NetBSD following WIN32,
just get the list from ovsdb.
Signed-off-by: YAMAMOTO Takashi <yamamoto@ovn.org>
Acked-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/ovn-controller.at | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/tests/ovn-controller.at b/tests/ovn-controller.at index b1211a5be..60a67601d 100644 --- a/tests/ovn-controller.at +++ b/tests/ovn-controller.at @@ -193,13 +193,7 @@ OVS_WAIT_UNTIL([check_datapath_type bar]) ovs-vsctl set Bridge br-int datapath-type=\"\" OVS_WAIT_UNTIL([check_datapath_type ""]) -# The following will need to be updated as OVS starts to support more -# interface types. -if test "$IS_WIN32" = "yes"; then - expected_iface_types="dummy,dummy-internal,dummy-pmd,geneve,gre,internal,lisp,patch,stt,system,vxlan" -else - expected_iface_types="dummy,dummy-internal,dummy-pmd,geneve,gre,internal,lisp,patch,stt,system,tap,vxlan" -fi +expected_iface_types=$(ovs-vsctl get Open_vSwitch . iface_types|sed 's/[[]][[ ]]//g') chassis_iface_types=$(ovn-sbctl get Chassis ${sysid} external_ids:iface-types | sed -e 's/\"//g') echo "chassis_iface_types = ${chassis_iface_types}" AT_CHECK([test "${expected_iface_types}" = "${chassis_iface_types}"]) |