2
0
mirror of https://github.com/xcat2/confluent.git synced 2026-07-15 10:21:00 +00:00

Do not set 0.0.0.0 gateway

This commit is contained in:
Jarrod Johnson
2026-06-24 15:58:45 -04:00
parent d369dcac55
commit f8366a50ef
@@ -208,7 +208,7 @@ class NetplanManager(object):
gws.append(stgs.get('ipv4_gateway', None))
gws.append(stgs.get('ipv6_gateway', None))
for gwaddr in gws:
if gwaddr:
if gwaddr and gwaddr != '0.0.0.0':
cfgroutes = self.getcfgarrpath([devname, 'routes'])
for rinfo in cfgroutes:
if rinfo.get('via', None) == gwaddr: