From: Jonatan Schlag Date: Sat, 15 Sep 2018 11:59:24 +0000 (+0200) Subject: Add recipe for port vars X-Git-Tag: 010~117^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a69c9fb97169ae1c6af25bee1efc312ddff3abcd;p=network.git Add recipe for port vars These vars contain the port name which is plugged into the virtual network. As this relation changes every reboot these vars make it possible to write recipes which depends on correct links between two ports. Signed-off-by: Jonatan Schlag --- diff --git a/test/nitsi/include/alice-port-vars b/test/nitsi/include/alice-port-vars new file mode 100644 index 00000000..9f9c9a66 --- /dev/null +++ b/test/nitsi/include/alice-port-vars @@ -0,0 +1,6 @@ +# These command store the name of each port in a variable +#which is named like the virtual network +alice: p_net1="$(network raw device-get-by-mac-address "52:54:00:8a:b8:b5")" +alice: p_net2="$(network raw device-get-by-mac-address "52:54:00:ea:62:65")" +alice: p_net3="$(network raw device-get-by-mac-address "52:54:00:49:0f:04")" +alice: p_net4="$(network raw device-get-by-mac-address "52:54:00:33:67:4a")" \ No newline at end of file diff --git a/test/nitsi/include/bob-port-vars b/test/nitsi/include/bob-port-vars new file mode 100644 index 00000000..6bc6d1b9 --- /dev/null +++ b/test/nitsi/include/bob-port-vars @@ -0,0 +1,6 @@ +# These command store the name of each port in a variable +#which is named like the virtual network +bob: p_net1="$(network raw device-get-by-mac-address "52:54:00:36:ba:7d")" +bob: p_net2="$(network raw device-get-by-mac-address "52:54:00:e3:cb:28")" +bob: p_net3="$(network raw device-get-by-mac-address "52:54:00:b6:95:a5")" +bob: p_net4="$(network raw device-get-by-mac-address "52:54:00:f8:ce:4b")" \ No newline at end of file