From f35f1768608dd9212cc080dee52dee12b04f74bc Mon Sep 17 00:00:00 2001 From: Richard Alpe Date: Mon, 29 Jan 2024 14:16:50 +0100 Subject: [PATCH] confd: identify virtio interfaces as "etherlike" Instead of "ethernet". Prior to this patch virtio interfaces where identified as "ethernet", which resulted in /run/net trying to enable autoneg on them. Which isn't supported and resulted in an ABANDONED "default config". Signed-off-by: Richard Alpe --- src/confd/bin/gen-interfaces | 59 ++++++++++++++++++++++++------------ 1 file changed, 40 insertions(+), 19 deletions(-) diff --git a/src/confd/bin/gen-interfaces b/src/confd/bin/gen-interfaces index 42f9ec6b..45e3b961 100755 --- a/src/confd/bin/gen-interfaces +++ b/src/confd/bin/gen-interfaces @@ -57,15 +57,16 @@ EOF } # shellcheck disable=SC3043 -gen_interface() +gen_iface_json() { - local ifname="$1" - local br="$2" + local iftype="$1" + local ifname="$2" + local br="$3" cat <