diff mbox

[ovs-dev,RFC,v6,2/6] system-common-macros: Add macro to check for 802.1ad support.

Message ID 20161212162954.8743-3-e@erig.me
State RFC
Headers show

Commit Message

Eric Garver Dec. 12, 2016, 4:29 p.m. UTC
Add macro OVS_CHECK_8021AD().

Signed-off-by: Eric Garver <e@erig.me>
---
 tests/system-common-macros.at | 6 ++++++
 1 file changed, 6 insertions(+)
diff mbox

Patch

diff --git a/tests/system-common-macros.at b/tests/system-common-macros.at
index 765ea8505325..3d59ba9d896d 100644
--- a/tests/system-common-macros.at
+++ b/tests/system-common-macros.at
@@ -236,3 +236,9 @@  m4_define([OVS_CHECK_GRE],
 # OVS_CHECK_GENEVE()
 m4_define([OVS_CHECK_GENEVE],
     [AT_SKIP_IF([! ip link add foo type geneve help 2>&1 | grep geneve >/dev/null])])
+
+# 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])
+    ])