diff mbox

[ovs-dev,09/10] system-common-macros: Add macro to check for L3 GRE support

Message ID 20170710194000.21627-10-e@erig.me
State Accepted
Delegated to: Joe Stringer
Headers show

Commit Message

Eric Garver July 10, 2017, 7:39 p.m. UTC
Signed-off-by: Eric Garver <e@erig.me>
---
 tests/system-common-macros.at | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
diff mbox

Patch

diff --git a/tests/system-common-macros.at b/tests/system-common-macros.at
index 77f09f8d7018..6f0ed2d7f42e 100644
--- a/tests/system-common-macros.at
+++ b/tests/system-common-macros.at
@@ -266,7 +266,12 @@  m4_define([OVS_CHECK_VXLAN_GPE],
 
 # OVS_CHECK_GRE()
 m4_define([OVS_CHECK_GRE],
-    [AT_SKIP_IF([! ip link add foo type gretap help 2>&1 | grep gre >/dev/null])
+    [AT_SKIP_IF([! ip link add foo type gretap help 2>&1 | grep gretap >/dev/null])
+     OVS_CHECK_FIREWALL()])
+
+# OVS_CHECK_GRE_L3()
+m4_define([OVS_CHECK_GRE_L3],
+    [AT_SKIP_IF([! ip link add foo type gre help 2>&1 | grep "gre " >/dev/null])
      OVS_CHECK_FIREWALL()])
 
 # OVS_CHECK_GENEVE()