tests: add mock vlan executor and vlan fixture

This commit is contained in:
Ariadne Conill 2020-08-04 12:38:05 -06:00
parent 072c1ea148
commit b27caaedf6
2 changed files with 9 additions and 0 deletions

7
tests/executors/vlan Executable file
View file

@ -0,0 +1,7 @@
#!/bin/sh
case "$PHASE" in
depend)
RAW_DEVICE="${IFACE%.*}"
echo "$RAW_DEVICE"
;;
esac

2
tests/fixtures/vlan.interfaces vendored Normal file
View file

@ -0,0 +1,2 @@
iface eth0.8
address 2001:db8:1000:2::2/64