vlan tests: fix bpf_pcp test
We now allow net.link.vlan.mtag_pcp to be set per-vnet, so we must set it in the correct vnet, not on the host.
This commit is contained in:
parent
de64aa32c8
commit
31566b98b8
@ -214,7 +214,6 @@ atf_test_case "bpf_pcp" "cleanup"
|
|||||||
bpf_pcp_head()
|
bpf_pcp_head()
|
||||||
{
|
{
|
||||||
atf_set descr 'Set VLAN PCP through BPF'
|
atf_set descr 'Set VLAN PCP through BPF'
|
||||||
atf_set require.config 'allow_sysctl_side_effects'
|
|
||||||
atf_set require.user root
|
atf_set require.user root
|
||||||
atf_set require.progs scapy
|
atf_set require.progs scapy
|
||||||
}
|
}
|
||||||
@ -233,7 +232,7 @@ bpf_pcp_body()
|
|||||||
jexec alcatraz ifconfig ${vlan} up
|
jexec alcatraz ifconfig ${vlan} up
|
||||||
jexec alcatraz ifconfig ${epair}b up
|
jexec alcatraz ifconfig ${epair}b up
|
||||||
|
|
||||||
sysctl net.link.vlan.mtag_pcp=1
|
jexec alcatraz sysctl net.link.vlan.mtag_pcp=1
|
||||||
|
|
||||||
jexec alcatraz dhclient ${vlan} &
|
jexec alcatraz dhclient ${vlan} &
|
||||||
atf_check -s exit:1 -o ignore -e ignore $(atf_get_srcdir)/pcp.py \
|
atf_check -s exit:1 -o ignore -e ignore $(atf_get_srcdir)/pcp.py \
|
||||||
|
Loading…
Reference in New Issue
Block a user