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:
Kristof Provost 2022-02-15 07:52:45 +01:00
parent de64aa32c8
commit 31566b98b8

View File

@ -214,7 +214,6 @@ atf_test_case "bpf_pcp" "cleanup"
bpf_pcp_head()
{
atf_set descr 'Set VLAN PCP through BPF'
atf_set require.config 'allow_sysctl_side_effects'
atf_set require.user root
atf_set require.progs scapy
}
@ -233,7 +232,7 @@ bpf_pcp_body()
jexec alcatraz ifconfig ${vlan} 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} &
atf_check -s exit:1 -o ignore -e ignore $(atf_get_srcdir)/pcp.py \