test: add test for vrf static route support

This commit is contained in:
Ariadne Conill 2020-08-20 03:20:26 -06:00
parent 0928f07af5
commit 4fdd91beee

View file

@ -22,6 +22,7 @@ tests_init \
vrf_dependency \ vrf_dependency \
vrf_ifupdown2_rewrite \ vrf_ifupdown2_rewrite \
vrf_ifupdown2_dependency \ vrf_ifupdown2_dependency \
vrf_implicit_static_gateway \
ppp_dependency \ ppp_dependency \
ppp_legacy_rewrite \ ppp_legacy_rewrite \
tunnel_dependency \ tunnel_dependency \
@ -139,6 +140,11 @@ vrf_ifupdown2_dependency_body() {
ifquery -E $EXECUTORS_LINUX -i $FIXTURES/vrf-ifupdown2.interfaces eth0 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() { ppp_dependency_body() {
atf_check -s exit:0 -o match:"requires eth0" \ atf_check -s exit:0 -o match:"requires eth0" \
ifquery -E $EXECUTORS_LINUX -i $FIXTURES/ppp.interfaces ppp0 ifquery -E $EXECUTORS_LINUX -i $FIXTURES/ppp.interfaces ppp0