diff --git a/bin/netvm-names.sh b/bin/netvm-names.sh index 0886381..f00e490 100755 --- a/bin/netvm-names.sh +++ b/bin/netvm-names.sh @@ -9,6 +9,9 @@ netvm_names() { VETH="ve-${_tag}" VPEER="vp-${_tag}" _idx=$(( 0x${_tag:0:3} % 200 + 10 )) - CDP_PORT=$(( 9222 + 0x${_tag:4:3} % 2000 )) + # CDP_PORT_OVERRIDE lets provisioners assign clean sequential ports + # (9410, 9420, ...) instead of the hash-derived default. + # Unset = previous behavior. + CDP_PORT=${CDP_PORT_OVERRIDE:-$(( 9222 + 0x${_tag:4:3} % 2000 ))} GW="10.201.${_idx}.1"; PEER_IP="10.201.${_idx}.2"; SUB="10.201.${_idx}.0/30" } diff --git a/bin/netvm-provision-node.sh b/bin/netvm-provision-node.sh new file mode 100755 index 0000000..1c5958c --- /dev/null +++ b/bin/netvm-provision-node.sh @@ -0,0 +1,81 @@ +#!/usr/bin/env bash +# netvm-provision-node.sh