[ovs-dev] [PATCH 06/10] system-common-macros: Add macro to check for ip-route encap support
Eric Garver
e at erig.me
Mon Jul 10 19:39:56 UTC 2017
This is used for native layer3 tunnels.
Signed-off-by: Eric Garver <e at erig.me>
---
tests/system-common-macros.at | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/tests/system-common-macros.at b/tests/system-common-macros.at
index 4408eaada9da..667390e61dec 100644
--- a/tests/system-common-macros.at
+++ b/tests/system-common-macros.at
@@ -273,3 +273,7 @@ m4_define([OVS_CHECK_GENEVE],
m4_define([OVS_CHECK_8021AD],
[AT_SKIP_IF([! grep -q "VLAN header stack length probed as" ovs-vswitchd.log])
AT_SKIP_IF([[test `sed -n 's/.*VLAN header stack length probed as \([0-9]\+\).*/\1/p' ovs-vswitchd.log` -lt 2]])])
+
+# OVS_CHECK_IPROUTE_ENCAP()
+m4_define([OVS_CHECK_IPROUTE_ENCAP],
+ [AT_SKIP_IF([! ip route help 2>&1 |grep encap >/dev/null])])
--
2.12.0
More information about the dev
mailing list