]> git.ipfire.org Git - people/jschlag/network.git/blob - test/nitsi/test/port-bonding/recipe
Nitsi: Add test for port bonding
[people/jschlag/network.git] / test / nitsi / test / port-bonding / recipe
1 include: setup
2
3 # This contains the basic network configuration for all vpn-tests
4 include: alice-port-vars
5 include: bob-port-vars
6
7 # Create an uplink zone
8 all: network zone new upl0 bridge
9
10 # Add IP addresses for Alice
11 alice: network zone upl0 config new static 192.168.100.101/24
12
13 # Add IP addresses for Bob
14 bob: network zone upl0 config new static 192.168.100.102/24
15
16 # Print what has been brought up
17 all: network status
18
19 all: network port new bonding +${p_net1} +${p_net2}
20
21 # Check that editing works
22 all: network port b0 edit +${p_net3}
23 all: network port b0 edit -${p_net2}
24
25 # Attach the bonding to the zone
26 all: network zone upl0 port attach b0
27
28 # Print what we have configured
29 all: network status
30
31 # Test if the bonding works by pinging bob
32 alice: ping -c 5 192.168.100.102
33
34 # Check if we can detach the port
35 all: network zone upl0 port detach b0