From 40a1a7c63358c569fe51194c4cb6ebb36db1ce80 Mon Sep 17 00:00:00 2001 From: Pim van Pelt Date: Mon, 23 Feb 2026 09:15:52 +0000 Subject: [PATCH] Add rc.local for host* that explains which vpp:port it is connected to --- build/bird/hvn0.lab.ipng.ch/host0-0/etc/rc.local | 5 +++++ .../hvn0.lab.ipng.ch/host0-0/root/lab-build/disable-vpp | 2 +- .../hvn0.lab.ipng.ch/host0-0/root/lab-build/rc-local-perms | 4 ++++ build/bird/hvn0.lab.ipng.ch/host0-1/etc/rc.local | 5 +++++ .../hvn0.lab.ipng.ch/host0-1/root/lab-build/disable-vpp | 2 +- .../hvn0.lab.ipng.ch/host0-1/root/lab-build/rc-local-perms | 4 ++++ .../bird/hvn0.lab.ipng.ch/tap0-0/root/lab-build/disable-vpp | 2 +- build/bird/hvn1.lab.ipng.ch/host1-0/etc/rc.local | 5 +++++ .../hvn1.lab.ipng.ch/host1-0/root/lab-build/disable-vpp | 2 +- .../hvn1.lab.ipng.ch/host1-0/root/lab-build/rc-local-perms | 4 ++++ build/bird/hvn1.lab.ipng.ch/host1-1/etc/rc.local | 5 +++++ .../hvn1.lab.ipng.ch/host1-1/root/lab-build/disable-vpp | 2 +- .../hvn1.lab.ipng.ch/host1-1/root/lab-build/rc-local-perms | 4 ++++ .../bird/hvn1.lab.ipng.ch/tap1-0/root/lab-build/disable-vpp | 2 +- build/frr/hvn0.lab.ipng.ch/host0-0/etc/rc.local | 5 +++++ .../frr/hvn0.lab.ipng.ch/host0-0/root/lab-build/disable-vpp | 2 +- .../hvn0.lab.ipng.ch/host0-0/root/lab-build/rc-local-perms | 4 ++++ build/frr/hvn0.lab.ipng.ch/host0-1/etc/rc.local | 5 +++++ .../frr/hvn0.lab.ipng.ch/host0-1/root/lab-build/disable-vpp | 2 +- .../hvn0.lab.ipng.ch/host0-1/root/lab-build/rc-local-perms | 4 ++++ .../frr/hvn0.lab.ipng.ch/tap0-0/root/lab-build/disable-vpp | 2 +- build/frr/hvn1.lab.ipng.ch/host1-0/etc/rc.local | 5 +++++ .../frr/hvn1.lab.ipng.ch/host1-0/root/lab-build/disable-vpp | 2 +- .../hvn1.lab.ipng.ch/host1-0/root/lab-build/rc-local-perms | 4 ++++ build/frr/hvn1.lab.ipng.ch/host1-1/etc/rc.local | 5 +++++ .../frr/hvn1.lab.ipng.ch/host1-1/root/lab-build/disable-vpp | 2 +- .../hvn1.lab.ipng.ch/host1-1/root/lab-build/rc-local-perms | 4 ++++ .../frr/hvn1.lab.ipng.ch/tap1-0/root/lab-build/disable-vpp | 2 +- overlays/_common/host/etc/rc.local.j2 | 6 ++++++ overlays/_common/host/root/lab-build/rc-local-perms | 5 +++++ overlays/_common/tap/root/lab-build/disable-vpp | 1 + 31 files changed, 96 insertions(+), 12 deletions(-) create mode 100644 build/bird/hvn0.lab.ipng.ch/host0-0/etc/rc.local create mode 100644 build/bird/hvn0.lab.ipng.ch/host0-0/root/lab-build/rc-local-perms create mode 100644 build/bird/hvn0.lab.ipng.ch/host0-1/etc/rc.local create mode 100644 build/bird/hvn0.lab.ipng.ch/host0-1/root/lab-build/rc-local-perms create mode 100644 build/bird/hvn1.lab.ipng.ch/host1-0/etc/rc.local create mode 100644 build/bird/hvn1.lab.ipng.ch/host1-0/root/lab-build/rc-local-perms create mode 100644 build/bird/hvn1.lab.ipng.ch/host1-1/etc/rc.local create mode 100644 build/bird/hvn1.lab.ipng.ch/host1-1/root/lab-build/rc-local-perms create mode 100644 build/frr/hvn0.lab.ipng.ch/host0-0/etc/rc.local create mode 100644 build/frr/hvn0.lab.ipng.ch/host0-0/root/lab-build/rc-local-perms create mode 100644 build/frr/hvn0.lab.ipng.ch/host0-1/etc/rc.local create mode 100644 build/frr/hvn0.lab.ipng.ch/host0-1/root/lab-build/rc-local-perms create mode 100644 build/frr/hvn1.lab.ipng.ch/host1-0/etc/rc.local create mode 100644 build/frr/hvn1.lab.ipng.ch/host1-0/root/lab-build/rc-local-perms create mode 100644 build/frr/hvn1.lab.ipng.ch/host1-1/etc/rc.local create mode 100644 build/frr/hvn1.lab.ipng.ch/host1-1/root/lab-build/rc-local-perms create mode 100644 overlays/_common/host/etc/rc.local.j2 create mode 100644 overlays/_common/host/root/lab-build/rc-local-perms diff --git a/build/bird/hvn0.lab.ipng.ch/host0-0/etc/rc.local b/build/bird/hvn0.lab.ipng.ch/host0-0/etc/rc.local new file mode 100644 index 0000000..4241b33 --- /dev/null +++ b/build/bird/hvn0.lab.ipng.ch/host0-0/etc/rc.local @@ -0,0 +1,5 @@ +#!/bin/sh + +for port in 0 1 2 3; do + ip link set enp16s0f${port} up mtu 1500 alias "vpp0-${port}:Gi10/0/2" +done diff --git a/build/bird/hvn0.lab.ipng.ch/host0-0/root/lab-build/disable-vpp b/build/bird/hvn0.lab.ipng.ch/host0-0/root/lab-build/disable-vpp index 3d56a99..f9bda5d 100644 --- a/build/bird/hvn0.lab.ipng.ch/host0-0/root/lab-build/disable-vpp +++ b/build/bird/hvn0.lab.ipng.ch/host0-0/root/lab-build/disable-vpp @@ -4,4 +4,4 @@ echo " * Disabling VPP, Bird and FRR" for i in vpp vppcfg bird-dataplane frr; do rm -f /etc/systemd/system/multi-user.target.wants/${i}.service ln -sf /dev/null /etc/systemd/system/${i}.service -done \ No newline at end of file +done diff --git a/build/bird/hvn0.lab.ipng.ch/host0-0/root/lab-build/rc-local-perms b/build/bird/hvn0.lab.ipng.ch/host0-0/root/lab-build/rc-local-perms new file mode 100644 index 0000000..ce5b509 --- /dev/null +++ b/build/bird/hvn0.lab.ipng.ch/host0-0/root/lab-build/rc-local-perms @@ -0,0 +1,4 @@ +#!/bin/sh + +echo "* Fixing permissions of rc.local" +chmod 755 /etc/rc.local diff --git a/build/bird/hvn0.lab.ipng.ch/host0-1/etc/rc.local b/build/bird/hvn0.lab.ipng.ch/host0-1/etc/rc.local new file mode 100644 index 0000000..a3784ee --- /dev/null +++ b/build/bird/hvn0.lab.ipng.ch/host0-1/etc/rc.local @@ -0,0 +1,5 @@ +#!/bin/sh + +for port in 0 1 2 3; do + ip link set enp16s0f${port} up mtu 1500 alias "vpp0-${port}:Gi10/0/3" +done diff --git a/build/bird/hvn0.lab.ipng.ch/host0-1/root/lab-build/disable-vpp b/build/bird/hvn0.lab.ipng.ch/host0-1/root/lab-build/disable-vpp index 3d56a99..f9bda5d 100644 --- a/build/bird/hvn0.lab.ipng.ch/host0-1/root/lab-build/disable-vpp +++ b/build/bird/hvn0.lab.ipng.ch/host0-1/root/lab-build/disable-vpp @@ -4,4 +4,4 @@ echo " * Disabling VPP, Bird and FRR" for i in vpp vppcfg bird-dataplane frr; do rm -f /etc/systemd/system/multi-user.target.wants/${i}.service ln -sf /dev/null /etc/systemd/system/${i}.service -done \ No newline at end of file +done diff --git a/build/bird/hvn0.lab.ipng.ch/host0-1/root/lab-build/rc-local-perms b/build/bird/hvn0.lab.ipng.ch/host0-1/root/lab-build/rc-local-perms new file mode 100644 index 0000000..ce5b509 --- /dev/null +++ b/build/bird/hvn0.lab.ipng.ch/host0-1/root/lab-build/rc-local-perms @@ -0,0 +1,4 @@ +#!/bin/sh + +echo "* Fixing permissions of rc.local" +chmod 755 /etc/rc.local diff --git a/build/bird/hvn0.lab.ipng.ch/tap0-0/root/lab-build/disable-vpp b/build/bird/hvn0.lab.ipng.ch/tap0-0/root/lab-build/disable-vpp index 3d56a99..f9bda5d 100644 --- a/build/bird/hvn0.lab.ipng.ch/tap0-0/root/lab-build/disable-vpp +++ b/build/bird/hvn0.lab.ipng.ch/tap0-0/root/lab-build/disable-vpp @@ -4,4 +4,4 @@ echo " * Disabling VPP, Bird and FRR" for i in vpp vppcfg bird-dataplane frr; do rm -f /etc/systemd/system/multi-user.target.wants/${i}.service ln -sf /dev/null /etc/systemd/system/${i}.service -done \ No newline at end of file +done diff --git a/build/bird/hvn1.lab.ipng.ch/host1-0/etc/rc.local b/build/bird/hvn1.lab.ipng.ch/host1-0/etc/rc.local new file mode 100644 index 0000000..bd03662 --- /dev/null +++ b/build/bird/hvn1.lab.ipng.ch/host1-0/etc/rc.local @@ -0,0 +1,5 @@ +#!/bin/sh + +for port in 0 1 2 3; do + ip link set enp16s0f${port} up mtu 1500 alias "vpp1-${port}:Gi10/0/2" +done diff --git a/build/bird/hvn1.lab.ipng.ch/host1-0/root/lab-build/disable-vpp b/build/bird/hvn1.lab.ipng.ch/host1-0/root/lab-build/disable-vpp index 3d56a99..f9bda5d 100644 --- a/build/bird/hvn1.lab.ipng.ch/host1-0/root/lab-build/disable-vpp +++ b/build/bird/hvn1.lab.ipng.ch/host1-0/root/lab-build/disable-vpp @@ -4,4 +4,4 @@ echo " * Disabling VPP, Bird and FRR" for i in vpp vppcfg bird-dataplane frr; do rm -f /etc/systemd/system/multi-user.target.wants/${i}.service ln -sf /dev/null /etc/systemd/system/${i}.service -done \ No newline at end of file +done diff --git a/build/bird/hvn1.lab.ipng.ch/host1-0/root/lab-build/rc-local-perms b/build/bird/hvn1.lab.ipng.ch/host1-0/root/lab-build/rc-local-perms new file mode 100644 index 0000000..ce5b509 --- /dev/null +++ b/build/bird/hvn1.lab.ipng.ch/host1-0/root/lab-build/rc-local-perms @@ -0,0 +1,4 @@ +#!/bin/sh + +echo "* Fixing permissions of rc.local" +chmod 755 /etc/rc.local diff --git a/build/bird/hvn1.lab.ipng.ch/host1-1/etc/rc.local b/build/bird/hvn1.lab.ipng.ch/host1-1/etc/rc.local new file mode 100644 index 0000000..f16a00d --- /dev/null +++ b/build/bird/hvn1.lab.ipng.ch/host1-1/etc/rc.local @@ -0,0 +1,5 @@ +#!/bin/sh + +for port in 0 1 2 3; do + ip link set enp16s0f${port} up mtu 1500 alias "vpp1-${port}:Gi10/0/3" +done diff --git a/build/bird/hvn1.lab.ipng.ch/host1-1/root/lab-build/disable-vpp b/build/bird/hvn1.lab.ipng.ch/host1-1/root/lab-build/disable-vpp index 3d56a99..f9bda5d 100644 --- a/build/bird/hvn1.lab.ipng.ch/host1-1/root/lab-build/disable-vpp +++ b/build/bird/hvn1.lab.ipng.ch/host1-1/root/lab-build/disable-vpp @@ -4,4 +4,4 @@ echo " * Disabling VPP, Bird and FRR" for i in vpp vppcfg bird-dataplane frr; do rm -f /etc/systemd/system/multi-user.target.wants/${i}.service ln -sf /dev/null /etc/systemd/system/${i}.service -done \ No newline at end of file +done diff --git a/build/bird/hvn1.lab.ipng.ch/host1-1/root/lab-build/rc-local-perms b/build/bird/hvn1.lab.ipng.ch/host1-1/root/lab-build/rc-local-perms new file mode 100644 index 0000000..ce5b509 --- /dev/null +++ b/build/bird/hvn1.lab.ipng.ch/host1-1/root/lab-build/rc-local-perms @@ -0,0 +1,4 @@ +#!/bin/sh + +echo "* Fixing permissions of rc.local" +chmod 755 /etc/rc.local diff --git a/build/bird/hvn1.lab.ipng.ch/tap1-0/root/lab-build/disable-vpp b/build/bird/hvn1.lab.ipng.ch/tap1-0/root/lab-build/disable-vpp index 3d56a99..f9bda5d 100644 --- a/build/bird/hvn1.lab.ipng.ch/tap1-0/root/lab-build/disable-vpp +++ b/build/bird/hvn1.lab.ipng.ch/tap1-0/root/lab-build/disable-vpp @@ -4,4 +4,4 @@ echo " * Disabling VPP, Bird and FRR" for i in vpp vppcfg bird-dataplane frr; do rm -f /etc/systemd/system/multi-user.target.wants/${i}.service ln -sf /dev/null /etc/systemd/system/${i}.service -done \ No newline at end of file +done diff --git a/build/frr/hvn0.lab.ipng.ch/host0-0/etc/rc.local b/build/frr/hvn0.lab.ipng.ch/host0-0/etc/rc.local new file mode 100644 index 0000000..4241b33 --- /dev/null +++ b/build/frr/hvn0.lab.ipng.ch/host0-0/etc/rc.local @@ -0,0 +1,5 @@ +#!/bin/sh + +for port in 0 1 2 3; do + ip link set enp16s0f${port} up mtu 1500 alias "vpp0-${port}:Gi10/0/2" +done diff --git a/build/frr/hvn0.lab.ipng.ch/host0-0/root/lab-build/disable-vpp b/build/frr/hvn0.lab.ipng.ch/host0-0/root/lab-build/disable-vpp index 3d56a99..f9bda5d 100644 --- a/build/frr/hvn0.lab.ipng.ch/host0-0/root/lab-build/disable-vpp +++ b/build/frr/hvn0.lab.ipng.ch/host0-0/root/lab-build/disable-vpp @@ -4,4 +4,4 @@ echo " * Disabling VPP, Bird and FRR" for i in vpp vppcfg bird-dataplane frr; do rm -f /etc/systemd/system/multi-user.target.wants/${i}.service ln -sf /dev/null /etc/systemd/system/${i}.service -done \ No newline at end of file +done diff --git a/build/frr/hvn0.lab.ipng.ch/host0-0/root/lab-build/rc-local-perms b/build/frr/hvn0.lab.ipng.ch/host0-0/root/lab-build/rc-local-perms new file mode 100644 index 0000000..ce5b509 --- /dev/null +++ b/build/frr/hvn0.lab.ipng.ch/host0-0/root/lab-build/rc-local-perms @@ -0,0 +1,4 @@ +#!/bin/sh + +echo "* Fixing permissions of rc.local" +chmod 755 /etc/rc.local diff --git a/build/frr/hvn0.lab.ipng.ch/host0-1/etc/rc.local b/build/frr/hvn0.lab.ipng.ch/host0-1/etc/rc.local new file mode 100644 index 0000000..a3784ee --- /dev/null +++ b/build/frr/hvn0.lab.ipng.ch/host0-1/etc/rc.local @@ -0,0 +1,5 @@ +#!/bin/sh + +for port in 0 1 2 3; do + ip link set enp16s0f${port} up mtu 1500 alias "vpp0-${port}:Gi10/0/3" +done diff --git a/build/frr/hvn0.lab.ipng.ch/host0-1/root/lab-build/disable-vpp b/build/frr/hvn0.lab.ipng.ch/host0-1/root/lab-build/disable-vpp index 3d56a99..f9bda5d 100644 --- a/build/frr/hvn0.lab.ipng.ch/host0-1/root/lab-build/disable-vpp +++ b/build/frr/hvn0.lab.ipng.ch/host0-1/root/lab-build/disable-vpp @@ -4,4 +4,4 @@ echo " * Disabling VPP, Bird and FRR" for i in vpp vppcfg bird-dataplane frr; do rm -f /etc/systemd/system/multi-user.target.wants/${i}.service ln -sf /dev/null /etc/systemd/system/${i}.service -done \ No newline at end of file +done diff --git a/build/frr/hvn0.lab.ipng.ch/host0-1/root/lab-build/rc-local-perms b/build/frr/hvn0.lab.ipng.ch/host0-1/root/lab-build/rc-local-perms new file mode 100644 index 0000000..ce5b509 --- /dev/null +++ b/build/frr/hvn0.lab.ipng.ch/host0-1/root/lab-build/rc-local-perms @@ -0,0 +1,4 @@ +#!/bin/sh + +echo "* Fixing permissions of rc.local" +chmod 755 /etc/rc.local diff --git a/build/frr/hvn0.lab.ipng.ch/tap0-0/root/lab-build/disable-vpp b/build/frr/hvn0.lab.ipng.ch/tap0-0/root/lab-build/disable-vpp index 3d56a99..f9bda5d 100644 --- a/build/frr/hvn0.lab.ipng.ch/tap0-0/root/lab-build/disable-vpp +++ b/build/frr/hvn0.lab.ipng.ch/tap0-0/root/lab-build/disable-vpp @@ -4,4 +4,4 @@ echo " * Disabling VPP, Bird and FRR" for i in vpp vppcfg bird-dataplane frr; do rm -f /etc/systemd/system/multi-user.target.wants/${i}.service ln -sf /dev/null /etc/systemd/system/${i}.service -done \ No newline at end of file +done diff --git a/build/frr/hvn1.lab.ipng.ch/host1-0/etc/rc.local b/build/frr/hvn1.lab.ipng.ch/host1-0/etc/rc.local new file mode 100644 index 0000000..bd03662 --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/host1-0/etc/rc.local @@ -0,0 +1,5 @@ +#!/bin/sh + +for port in 0 1 2 3; do + ip link set enp16s0f${port} up mtu 1500 alias "vpp1-${port}:Gi10/0/2" +done diff --git a/build/frr/hvn1.lab.ipng.ch/host1-0/root/lab-build/disable-vpp b/build/frr/hvn1.lab.ipng.ch/host1-0/root/lab-build/disable-vpp index 3d56a99..f9bda5d 100644 --- a/build/frr/hvn1.lab.ipng.ch/host1-0/root/lab-build/disable-vpp +++ b/build/frr/hvn1.lab.ipng.ch/host1-0/root/lab-build/disable-vpp @@ -4,4 +4,4 @@ echo " * Disabling VPP, Bird and FRR" for i in vpp vppcfg bird-dataplane frr; do rm -f /etc/systemd/system/multi-user.target.wants/${i}.service ln -sf /dev/null /etc/systemd/system/${i}.service -done \ No newline at end of file +done diff --git a/build/frr/hvn1.lab.ipng.ch/host1-0/root/lab-build/rc-local-perms b/build/frr/hvn1.lab.ipng.ch/host1-0/root/lab-build/rc-local-perms new file mode 100644 index 0000000..ce5b509 --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/host1-0/root/lab-build/rc-local-perms @@ -0,0 +1,4 @@ +#!/bin/sh + +echo "* Fixing permissions of rc.local" +chmod 755 /etc/rc.local diff --git a/build/frr/hvn1.lab.ipng.ch/host1-1/etc/rc.local b/build/frr/hvn1.lab.ipng.ch/host1-1/etc/rc.local new file mode 100644 index 0000000..f16a00d --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/host1-1/etc/rc.local @@ -0,0 +1,5 @@ +#!/bin/sh + +for port in 0 1 2 3; do + ip link set enp16s0f${port} up mtu 1500 alias "vpp1-${port}:Gi10/0/3" +done diff --git a/build/frr/hvn1.lab.ipng.ch/host1-1/root/lab-build/disable-vpp b/build/frr/hvn1.lab.ipng.ch/host1-1/root/lab-build/disable-vpp index 3d56a99..f9bda5d 100644 --- a/build/frr/hvn1.lab.ipng.ch/host1-1/root/lab-build/disable-vpp +++ b/build/frr/hvn1.lab.ipng.ch/host1-1/root/lab-build/disable-vpp @@ -4,4 +4,4 @@ echo " * Disabling VPP, Bird and FRR" for i in vpp vppcfg bird-dataplane frr; do rm -f /etc/systemd/system/multi-user.target.wants/${i}.service ln -sf /dev/null /etc/systemd/system/${i}.service -done \ No newline at end of file +done diff --git a/build/frr/hvn1.lab.ipng.ch/host1-1/root/lab-build/rc-local-perms b/build/frr/hvn1.lab.ipng.ch/host1-1/root/lab-build/rc-local-perms new file mode 100644 index 0000000..ce5b509 --- /dev/null +++ b/build/frr/hvn1.lab.ipng.ch/host1-1/root/lab-build/rc-local-perms @@ -0,0 +1,4 @@ +#!/bin/sh + +echo "* Fixing permissions of rc.local" +chmod 755 /etc/rc.local diff --git a/build/frr/hvn1.lab.ipng.ch/tap1-0/root/lab-build/disable-vpp b/build/frr/hvn1.lab.ipng.ch/tap1-0/root/lab-build/disable-vpp index 3d56a99..f9bda5d 100644 --- a/build/frr/hvn1.lab.ipng.ch/tap1-0/root/lab-build/disable-vpp +++ b/build/frr/hvn1.lab.ipng.ch/tap1-0/root/lab-build/disable-vpp @@ -4,4 +4,4 @@ echo " * Disabling VPP, Bird and FRR" for i in vpp vppcfg bird-dataplane frr; do rm -f /etc/systemd/system/multi-user.target.wants/${i}.service ln -sf /dev/null /etc/systemd/system/${i}.service -done \ No newline at end of file +done diff --git a/overlays/_common/host/etc/rc.local.j2 b/overlays/_common/host/etc/rc.local.j2 new file mode 100644 index 0000000..eb879c7 --- /dev/null +++ b/overlays/_common/host/etc/rc.local.j2 @@ -0,0 +1,6 @@ +#!/bin/sh + +for port in 0 1 2 3; do + ip link set enp16s0f${port} up mtu 1500 alias "vpp{{lab.id}}-${port}:Gi10/0/{{ 2 + node.id }}" +done + diff --git a/overlays/_common/host/root/lab-build/rc-local-perms b/overlays/_common/host/root/lab-build/rc-local-perms new file mode 100644 index 0000000..cc19a13 --- /dev/null +++ b/overlays/_common/host/root/lab-build/rc-local-perms @@ -0,0 +1,5 @@ +#!/bin/sh + +echo "* Fixing permissions of rc.local" +chmod 755 /etc/rc.local + diff --git a/overlays/_common/tap/root/lab-build/disable-vpp b/overlays/_common/tap/root/lab-build/disable-vpp index f9bda5d..edf17fd 100644 --- a/overlays/_common/tap/root/lab-build/disable-vpp +++ b/overlays/_common/tap/root/lab-build/disable-vpp @@ -5,3 +5,4 @@ for i in vpp vppcfg bird-dataplane frr; do rm -f /etc/systemd/system/multi-user.target.wants/${i}.service ln -sf /dev/null /etc/systemd/system/${i}.service done +