2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-25 02:52:07 +00:00

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.
This commit is contained in:
Jarrod Johnson 2024-08-26 16:51:35 -04:00
parent d84a76dbc6
commit 7304c8e3b7

View File

@ -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