tests: Reflect latest link executor changes
Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
This commit is contained in:
parent
2e6b3ca1ff
commit
58f010fe91
1 changed files with 14 additions and 14 deletions
|
@ -8,10 +8,10 @@ tests_init \
|
||||||
down \
|
down \
|
||||||
mtu \
|
mtu \
|
||||||
hwaddress \
|
hwaddress \
|
||||||
vlan_explicit_up \
|
vlan_explicit_pre_up \
|
||||||
vlan_explicit_down \
|
vlan_explicit_post_down \
|
||||||
vlan_guessed_up \
|
vlan_guessed_pre_up \
|
||||||
vlan_guessed_down \
|
vlan_guessed_post_down \
|
||||||
vlan_explicit_depend \
|
vlan_explicit_depend \
|
||||||
vlan_guessed_depend
|
vlan_guessed_depend
|
||||||
|
|
||||||
|
@ -39,29 +39,29 @@ hwaddress_body() {
|
||||||
${EXECUTOR}
|
${EXECUTOR}
|
||||||
}
|
}
|
||||||
|
|
||||||
vlan_explicit_up_body() {
|
vlan_explicit_pre_up_body() {
|
||||||
export IFACE=servers PHASE=up MOCK=echo \
|
export IFACE=servers PHASE=pre-up MOCK=echo \
|
||||||
IF_VLAN_RAW_DEVICE="eth0" IF_VLAN_ID="123"
|
IF_VLAN_RAW_DEVICE="eth0" IF_VLAN_ID="123"
|
||||||
atf_check -s exit:0 -o match:'ip link add link eth0 name servers type vlan id 123' \
|
atf_check -s exit:0 -o match:'ip link add link eth0 name servers type vlan id 123' \
|
||||||
${EXECUTOR}
|
${EXECUTOR}
|
||||||
}
|
}
|
||||||
|
|
||||||
vlan_explicit_down_body() {
|
vlan_explicit_post_down_body() {
|
||||||
export IFACE=servers PHASE=down MOCK=echo \
|
export IFACE=servers PHASE=post-down MOCK=echo \
|
||||||
IF_VLAN_RAW_DEVICE="eth0" IF_VLAN_ID="123"
|
IF_VLAN_RAW_DEVICE="eth0" IF_VLAN_ID="123"
|
||||||
atf_check -s exit:0 -o match:'ip link delete link eth0 name servers type vlan id 123' \
|
atf_check -s exit:0 -o match:'ip link del servers' \
|
||||||
${EXECUTOR}
|
${EXECUTOR}
|
||||||
}
|
}
|
||||||
|
|
||||||
vlan_guessed_up_body() {
|
vlan_guessed_pre_up_body() {
|
||||||
export IFACE=eth0.8 PHASE=up MOCK=echo
|
export IFACE=eth0.8 PHASE=pre-up MOCK=echo
|
||||||
atf_check -s exit:0 -o match:'ip link add link eth0 name eth0.8 type vlan id 8' \
|
atf_check -s exit:0 -o match:'ip link add link eth0 name eth0.8 type vlan id 8' \
|
||||||
${EXECUTOR}
|
${EXECUTOR}
|
||||||
}
|
}
|
||||||
|
|
||||||
vlan_guessed_down_body() {
|
vlan_guessed_post_down_body() {
|
||||||
export IFACE=eth0.8 PHASE=down MOCK=echo
|
export IFACE=eth0.8 PHASE=post-down MOCK=echo
|
||||||
atf_check -s exit:0 -o match:'ip link delete link eth0 name eth0.8 type vlan id 8' \
|
atf_check -s exit:0 -o match:'ip link del eth0.8' \
|
||||||
${EXECUTOR}
|
${EXECUTOR}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue