Skip to content

Commit a1aa6b3

Browse files
author
root
committed
site: sync perfSONAR pbr/orchestrator site copy with docs; update sha
1 parent 9eb71c5 commit a1aa6b3

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

site/perfsonar/tools_scripts/perfSONAR-orchestrator.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ step_generate_config() {
143143
[ "$AUTO_YES" = true ] && gen_cmd+=(--yes)
144144
run "${gen_cmd[@]}"
145145
echo "Edit /etc/perfSONAR-multi-nic-config.conf if needed (gateways, DEFAULT_ROUTE_NIC)."
146+
echo "Note: The auto-generator will skip NICs that have neither an IPv4 nor an IPv6 gateway (management-only NICs) unless they are set as DEFAULT_ROUTE_NIC."
146147
if [ "$NON_INTERACTIVE" != true ]; then
147148
${EDITOR:-vi} /etc/perfSONAR-multi-nic-config.conf || true
148149
fi

site/perfsonar/tools_scripts/perfSONAR-pbr-nm.sh

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,12 @@ Options:
8383
--debug Run commands in debug mode (bash -x)
8484
--rebuild-all Destructive full rebuild (remove all NM connections and rules first)
8585
--apply-inplace Explicitly select in-place apply (non-destructive, default)
86+
87+
Note:
88+
--generate-config-auto will skip NICs that do not have either an IPv4 or
89+
IPv6 gateway (i.e., management-only NICs) to avoid creating non-functional
90+
NM connection files unless they are explicitly set as DEFAULT_ROUTE_NIC
91+
or provided with a gateway.
8692
EOF
8793
}
8894

@@ -352,6 +358,12 @@ run_shellcheck() {
352358
# (or prints a preview in debug/dry-run mode).
353359
# - Side effect (export): sets DEFAULT_ROUTE_NIC in the current shell so
354360
# the caller can inspect which interface was chosen.
361+
#
362+
# Note: The auto-generator will skip NICs that lack both an IPv4 and IPv6
363+
# gateway (for example, management-only NICs) to avoid generating
364+
# non-functional NetworkManager connection profiles. The device will be
365+
# preserved if it is explicitly marked as DEFAULT_ROUTE_NIC or if you set an
366+
# explicit gateway.
355367
generate_config_from_system() {
356368
log "Auto-detecting network interfaces to generate $CONFIG_FILE"
357369

@@ -451,6 +463,14 @@ generate_config_from_system() {
451463
continue
452464
fi
453465

466+
# If a NIC lacks both IPv4 and IPv6 gateways (i.e., management-only NIC without a gateway),
467+
# ignore it by default (skip). Keep the device if it is the DEFAULT_ROUTE_NIC so the system
468+
# default route device remains considered.
469+
if [ "$dev" != "$DEFAULT_ROUTE_NIC" ] && [ "${gw4:-}" = "-" ] && [ "${gw6:-}" = "-" ]; then
470+
log "Skipping device $dev: no IPv4/IPv6 gateway detected"
471+
continue
472+
fi
473+
454474
NIC_NAMES+=("$dev")
455475
NIC_IPV4_ADDRS+=("$ipv4_addr")
456476
NIC_IPV4_PREFIXES+=("$ipv4_prefix")

0 commit comments

Comments
 (0)