]> git.ipfire.org Git - people/ms/network.git/blobdiff - test/nitsi/test/port-vlan/recipe
vlan: Rename PARENT_DEVICE to PARENT_PORT
[people/ms/network.git] / test / nitsi / test / port-vlan / recipe
index e2c992681adef56543be89703a6e2eb9cf0ebf0b..7a99251b5e6161c6a8cdf45e587e6f67cfc489b2 100644 (file)
@@ -1,8 +1,8 @@
-include: ../../include/setup
+include: setup
 
 # This contains the basic network configuration for all vpn-tests
-include: ../../include/alice-port-vars
-include: ../../include/bob-port-vars
+include: alice-port-vars
+include: bob-port-vars
 
 # Create an uplink zone
 all: network zone new upl0 bridge --stp=off
@@ -17,8 +17,11 @@ bob: network zone upl0 config new static 192.168.100.102/24
 all: network status
 
 # Create a vlan device with parent port attached to net1
-all: network port new vlan --parent-device=${p_net1} --tag=42
+all: network port new vlan --port="${p_net1}" --tag=42
 all: network zone upl0 port attach "${p_net1}v42"
 
 # Test if the vlan works by pinging bob
 alice: ping -c 5 192.168.100.102
+
+# Test that we can detach the vlan port
+all: network zone upl0 port detach "${p_net1}v42"