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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user