From 7f049db21f499ed61179cea9c2ef1d2c1e6e4fe3 Mon Sep 17 00:00:00 2001 From: Tobias Waldekranz Date: Thu, 23 Nov 2023 00:16:30 +0100 Subject: [PATCH] confd: Remove -6 option from gen-interfaces With the behavior introduced in the referenced commit, port interfaces (i.e. all ports on many systems) no longer get any SLAAC address, leaving the user with no way of reaching the system. Comment says this is by design, but that seems like an awkward default. Remove the option, and simplify gen_interfaces to either - Enable SLAAC, if the port is not going to be part of any bridge, or - Disabel SLAAC, if the port is going to be part of a bridge If necessary, we can add an inverse option at a later date. Fixes: d0f3960 ("confd: add -6 option to gen-interfaces for SLACC on port interfaces") --- src/confd/bin/gen-interfaces | 45 +++++++++++++++--------------------- 1 file changed, 19 insertions(+), 26 deletions(-) diff --git a/src/confd/bin/gen-interfaces b/src/confd/bin/gen-interfaces index 39137d1d..778e0b22 100755 --- a/src/confd/bin/gen-interfaces +++ b/src/confd/bin/gen-interfaces @@ -22,13 +22,6 @@ # can be used to enable IPv4 and DHCP on a single service interface if # needed. # -# Note: interfaces classified as ports, i.e., switchcore interfaces, or -# have been classified 'group port' by other means will by default -# *not* get an IPv6 address. This is by design, some may want to -# have port isolation and *no* IP communication by default. But, -# if you want IPv6 SLAAC on your port interfaces by default, add -# the -6 option to GEN_IFACE_OPTS in your /etc/confdrc.local -# ### Bridge Mode ######################################################## # The '-b brname' option triggers the bridge mode, creating a 'brname' # bridge interface using all interfaces classified in 'group port' by @@ -48,46 +41,49 @@ set -e bridge= ipv4=false -ipv6=false dhcp= usage() { cat <