From 4fdd91beee8bf7d659b4061854ab0153655c1761 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Thu, 20 Aug 2020 03:20:26 -0600 Subject: [PATCH] test: add test for vrf static route support --- tests/ifquery_test | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/ifquery_test b/tests/ifquery_test index 3c4361e..a53c22c 100755 --- a/tests/ifquery_test +++ b/tests/ifquery_test @@ -22,6 +22,7 @@ tests_init \ vrf_dependency \ vrf_ifupdown2_rewrite \ vrf_ifupdown2_dependency \ + vrf_implicit_static_gateway \ ppp_dependency \ ppp_legacy_rewrite \ tunnel_dependency \ @@ -139,6 +140,11 @@ vrf_ifupdown2_dependency_body() { ifquery -E $EXECUTORS_LINUX -i $FIXTURES/vrf-ifupdown2.interfaces eth0 } +vrf_implicit_static_gateway_body() { + atf_check -s exit:0 -o match:"use static" \ + ifquery -E $EXECUTORS_LINUX -i $FIXTURES/vrf.interfaces vrf-red +} + ppp_dependency_body() { atf_check -s exit:0 -o match:"requires eth0" \ ifquery -E $EXECUTORS_LINUX -i $FIXTURES/ppp.interfaces ppp0