feat(automation/deployment): Added script to autodeploy and setup wedge and nodes
Signed-off-by: Tuan-Dat Tran <tuan-dat.tran@tudattr.dev>
This commit is contained in:
12
scripts/31-configure_interfaces.sh
Normal file → Executable file
12
scripts/31-configure_interfaces.sh
Normal file → Executable file
@@ -6,26 +6,14 @@ IP=$3
|
||||
|
||||
# Add interfaces to namespaces
|
||||
ip link set "$IF" netns "$NS"
|
||||
ip link set "$IF" netns "$NS"
|
||||
ip link set "$IF" netns "$NS"
|
||||
ip link set "$IF" netns "$NS"
|
||||
|
||||
# Set IP Addresses
|
||||
ip netns exec "$NS" ip addr add dev "$IF" "$IP"
|
||||
ip netns exec "$NS" ip addr add dev "$IF" "$IP"
|
||||
ip netns exec "$NS" ip addr add dev "$IF" "$IP"
|
||||
ip netns exec "$NS" ip addr add dev "$IF" "$IP"
|
||||
|
||||
# Turn on Links
|
||||
ip netns exec "$NS" ip link set up "$IF"
|
||||
ip netns exec "$NS" ip link set up "$IF"
|
||||
ip netns exec "$NS" ip link set up "$IF"
|
||||
ip netns exec "$NS" ip link set up "$IF"
|
||||
|
||||
# For Debugging
|
||||
#
|
||||
# # Show interface info
|
||||
# ip netns exec "$NS" ip a s "$IF"
|
||||
# ip netns exec "$NS" ip a s "$IF"
|
||||
# ip netns exec "$NS" ip a s "$IF"
|
||||
# ip netns exec "$NS" ip a s "$IF"
|
||||
|
||||
Reference in New Issue
Block a user