From 7304c8e3b7169afdda2b4b606a62c9e974550d8a Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Mon, 26 Aug 2024 16:51:35 -0400 Subject: [PATCH] Fix LLA request for deploycfg If a client uses IPv6 LLA, the '%' location may slip in. In such a case, disable client ip matching, since fe80:: is useless for that anyway. --- confluent_server/confluent/netutil.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/confluent_server/confluent/netutil.py b/confluent_server/confluent/netutil.py index b4b1fbb5..e5384f5d 100644 --- a/confluent_server/confluent/netutil.py +++ b/confluent_server/confluent/netutil.py @@ -443,7 +443,10 @@ def get_nic_config(configmanager, node, ip=None, mac=None, ifidx=None, if serverfam: serveripn = socket.inet_pton(serverfam, serverip) if clientip is not None: - if '.' in clientip: + if '%' in clientip: + # link local, don't even bother' + clientfam = None + elif '.' in clientip: clientfam = socket.AF_INET elif ':' in clientip: clientfam = socket.AF_INET6