[ovs-dev] [PATCH 3/7] system-common-macros: Add macro to check for 802.1ad support.
Eric Garver
e at erig.me
Wed Mar 1 22:48:01 UTC 2017
Add macro OVS_CHECK_8021AD().
Signed-off-by: Eric Garver <e at erig.me>
---
tests/system-common-macros.at | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/tests/system-common-macros.at b/tests/system-common-macros.at
index 10a08f44567d..846dcbce21dc 100644
--- a/tests/system-common-macros.at
+++ b/tests/system-common-macros.at
@@ -267,3 +267,8 @@ m4_define([OVS_CHECK_GRE],
m4_define([OVS_CHECK_GENEVE],
[AT_SKIP_IF([! ip link add foo type geneve help 2>&1 | grep geneve >/dev/null])
OVS_CHECK_FIREWALL()])
+
+# OVS_CHECK_8021AD()
+m4_define([OVS_CHECK_8021AD],
+ [AT_SKIP_IF([! grep "VLAN label stack" ovs-vswitchd.log])
+ AT_SKIP_IF([test `sed -n 's/.*VLAN label stack length probed as \(\d*\)/\1/p' ovs-vswitchd.log` -lt 2])])
--
2.10.0
More information about the dev
mailing list