SIGN IN SIGN UP

tests: split mtap0 cleanup into two apply calls

nmstate rejects deleting mtap0 as mac-vlan when it currently exists
as mac-vtap. Split the cleanup into two separate libnmstate.apply
calls: first deletes mtap0 as mac-vtap (matching the actual type),
then a second call cleans up any leftover mac-vlan profile with the
same name.

Without this fix, mtap0 stays on eth1 after test_macvtap_parent_ref_by_mac,
blocking macvlan/macvtap passthru and macsec tests that follow.

Signed-off-by: Vladimír Beneš <vbenes@redhat.com>
V
Vladimír Beneš committed
0036083f706d849c3f482e0fd07b6aa263285624
Parent: b40a6b9
Committed by Íñigo Huguet <ihuguet@riseup.net> on 5/20/2026, 7:52:21 PM