mirror of
https://github.com/xcat2/confluent.git
synced 2025-01-15 04:07:51 +00:00
Support get_full_net_config without serverip
When trying to get a configuration without a network context, it would fail. Now, as intended, it generates network configuration without autosense in such a case.
This commit is contained in:
parent
98d8aaffe8
commit
21c0372a5b
@ -294,7 +294,7 @@ def get_full_net_config(configmanager, node, serverip=None):
|
||||
if iface not in attribs:
|
||||
attribs[iface] = {}
|
||||
attribs[iface][attrib] = val
|
||||
myaddrs = None
|
||||
myaddrs = []
|
||||
if serverip:
|
||||
myaddrs = get_addresses_by_serverip(serverip)
|
||||
nm = NetManager(myaddrs, node, configmanager)
|
||||
|
Loading…
x
Reference in New Issue
Block a user