test/nitsi/test/vpn/ipsec/n2n/vti/ipv6-via-ipv6 \
test/nitsi/test/vpn/ipsec/n2n/vti/ipv64-via-ipv4 \
test/nitsi/test/vpn/ipsec/n2n/vti/ipv64-via-ipv6 \
- test/nitsi/test/port-vlan
+ test/nitsi/test/port-vlan \
+ test/nitsi/test/port-bonding
EXTRA_DIST += \
test/nitsi/test/settings.in \
--- /dev/null
+include: setup
+
+# This contains the basic network configuration for all vpn-tests
+include: alice-port-vars
+include: bob-port-vars
+
+# Create an uplink zone
+all: network zone new upl0 bridge
+
+# Add IP addresses for Alice
+alice: network zone upl0 config new static 192.168.100.101/24
+
+# Add IP addresses for Bob
+bob: network zone upl0 config new static 192.168.100.102/24
+
+# Print what has been brought up
+all: network status
+
+all: network port new bonding +${p_net1} +${p_net2}
+
+# Check that editing works
+all: network port b0 edit +${p_net3}
+all: network port b0 edit -${p_net2}
+
+# Attach the bonding to the zone
+all: network zone upl0 port attach b0
+
+# Print what we have configured
+all: network status
+
+# Test if the bonding works by pinging bob
+alice: ping -c 5 192.168.100.102
+
+# Check if we can detach the port
+all: network zone upl0 port detach b0