tests: Update tests to reflect create/destroy phase.
Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
This commit is contained in:
parent
af94d760d0
commit
d9e78e14fb
6 changed files with 35 additions and 29 deletions
|
|
@ -9,7 +9,7 @@ tests_init \
|
|||
member_bringup
|
||||
|
||||
leader_bringup_body() {
|
||||
export MOCK=echo IFACE=vrf-red PHASE=pre-up IF_VRF_TABLE=1 IF_VRF_MEMBER=
|
||||
export MOCK=echo IFACE=vrf-red PHASE=create IF_VRF_TABLE=1 IF_VRF_MEMBER=
|
||||
atf_check -s exit:0 \
|
||||
-o match:'ip link add vrf-red type vrf table 1' \
|
||||
-o match:'ip rule add iif vrf-red table 1' \
|
||||
|
|
@ -18,7 +18,7 @@ leader_bringup_body() {
|
|||
}
|
||||
|
||||
leader_teardown_body() {
|
||||
export MOCK=echo IFACE=vrf-red PHASE=post-down IF_VRF_TABLE=1 IF_VRF_MEMBER=
|
||||
export MOCK=echo IFACE=vrf-red PHASE=destroy IF_VRF_TABLE=1 IF_VRF_MEMBER=
|
||||
atf_check -s exit:0 \
|
||||
-o match:'ip link del vrf-red type vrf table 1' \
|
||||
-o match:'ip rule del iif vrf-red table 1' \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue