tests: add tests for deferred interface teardown (refcounting)
This commit is contained in:
parent
f139bc2416
commit
8de83fdd9a
5 changed files with 61 additions and 0 deletions
6
tests/fixtures/deferred-teardown-1.ifstate
vendored
Normal file
6
tests/fixtures/deferred-teardown-1.ifstate
vendored
Normal file
|
@ -0,0 +1,6 @@
|
|||
lo=lo 1
|
||||
br0=br0 1
|
||||
bond0=bond0 2
|
||||
eth0=eth0 3
|
||||
eth1=eth1 2
|
||||
tun0=tun0 1
|
9
tests/fixtures/deferred-teardown-1.interfaces
vendored
Normal file
9
tests/fixtures/deferred-teardown-1.interfaces
vendored
Normal file
|
@ -0,0 +1,9 @@
|
|||
auto br0
|
||||
iface br0
|
||||
requires bond0
|
||||
|
||||
iface bond0
|
||||
requires eth0 eth1
|
||||
|
||||
iface tun0
|
||||
requires eth0
|
5
tests/fixtures/deferred-teardown-2.ifstate
vendored
Normal file
5
tests/fixtures/deferred-teardown-2.ifstate
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
eth0=eth0 5
|
||||
tun0=tun0 1
|
||||
tun1=tun1 1
|
||||
tun2=tun2 1
|
||||
tun3=tun3 1
|
11
tests/fixtures/deferred-teardown-2.interfaces
vendored
Normal file
11
tests/fixtures/deferred-teardown-2.interfaces
vendored
Normal file
|
@ -0,0 +1,11 @@
|
|||
iface tun0
|
||||
requires eth0
|
||||
|
||||
iface tun1
|
||||
requires eth0
|
||||
|
||||
iface tun2
|
||||
requires eth0
|
||||
|
||||
iface tun3
|
||||
requires eth0
|
Loading…
Add table
Add a link
Reference in a new issue