Add rc.local for host* that explains which vpp:port it is connected to
This commit is contained in:
5
build/bird/hvn0.lab.ipng.ch/host0-0/etc/rc.local
Normal file
5
build/bird/hvn0.lab.ipng.ch/host0-0/etc/rc.local
Normal file
@@ -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
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
echo "* Fixing permissions of rc.local"
|
||||||
|
chmod 755 /etc/rc.local
|
||||||
5
build/bird/hvn0.lab.ipng.ch/host0-1/etc/rc.local
Normal file
5
build/bird/hvn0.lab.ipng.ch/host0-1/etc/rc.local
Normal file
@@ -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
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
echo "* Fixing permissions of rc.local"
|
||||||
|
chmod 755 /etc/rc.local
|
||||||
5
build/bird/hvn1.lab.ipng.ch/host1-0/etc/rc.local
Normal file
5
build/bird/hvn1.lab.ipng.ch/host1-0/etc/rc.local
Normal file
@@ -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
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
echo "* Fixing permissions of rc.local"
|
||||||
|
chmod 755 /etc/rc.local
|
||||||
5
build/bird/hvn1.lab.ipng.ch/host1-1/etc/rc.local
Normal file
5
build/bird/hvn1.lab.ipng.ch/host1-1/etc/rc.local
Normal file
@@ -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
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
echo "* Fixing permissions of rc.local"
|
||||||
|
chmod 755 /etc/rc.local
|
||||||
5
build/frr/hvn0.lab.ipng.ch/host0-0/etc/rc.local
Normal file
5
build/frr/hvn0.lab.ipng.ch/host0-0/etc/rc.local
Normal file
@@ -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
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
echo "* Fixing permissions of rc.local"
|
||||||
|
chmod 755 /etc/rc.local
|
||||||
5
build/frr/hvn0.lab.ipng.ch/host0-1/etc/rc.local
Normal file
5
build/frr/hvn0.lab.ipng.ch/host0-1/etc/rc.local
Normal file
@@ -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
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
echo "* Fixing permissions of rc.local"
|
||||||
|
chmod 755 /etc/rc.local
|
||||||
5
build/frr/hvn1.lab.ipng.ch/host1-0/etc/rc.local
Normal file
5
build/frr/hvn1.lab.ipng.ch/host1-0/etc/rc.local
Normal file
@@ -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
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
echo "* Fixing permissions of rc.local"
|
||||||
|
chmod 755 /etc/rc.local
|
||||||
5
build/frr/hvn1.lab.ipng.ch/host1-1/etc/rc.local
Normal file
5
build/frr/hvn1.lab.ipng.ch/host1-1/etc/rc.local
Normal file
@@ -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
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
echo "* Fixing permissions of rc.local"
|
||||||
|
chmod 755 /etc/rc.local
|
||||||
6
overlays/_common/host/etc/rc.local.j2
Normal file
6
overlays/_common/host/etc/rc.local.j2
Normal file
@@ -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
|
||||||
|
|
||||||
5
overlays/_common/host/root/lab-build/rc-local-perms
Normal file
5
overlays/_common/host/root/lab-build/rc-local-perms
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
echo "* Fixing permissions of rc.local"
|
||||||
|
chmod 755 /etc/rc.local
|
||||||
|
|
||||||
@@ -5,3 +5,4 @@ for i in vpp vppcfg bird-dataplane frr; do
|
|||||||
rm -f /etc/systemd/system/multi-user.target.wants/${i}.service
|
rm -f /etc/systemd/system/multi-user.target.wants/${i}.service
|
||||||
ln -sf /dev/null /etc/systemd/system/${i}.service
|
ln -sf /dev/null /etc/systemd/system/${i}.service
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user