mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-22 09:32:21 +00:00
Put brakes on configuration if no gateway and target is remote
This configuration would certainly destroy remote connectivity.
This commit is contained in:
parent
7341164f36
commit
2c7b58d47a
@ -594,6 +594,8 @@ class NodeHandler(immhandler.NodeHandler):
|
||||
}
|
||||
if netconfig['ipv4_gateway']:
|
||||
statargs['ENET_IPv4GatewayIPAddr'] = netconfig['ipv4_gateway']
|
||||
elif not netutil.address_is_local(newip):
|
||||
raise exc.InvalidArgumentException('Will not remotely configure a device with no gateway')
|
||||
wc.grab_json_response('/api/dataset', statargs)
|
||||
elif self.ipaddr.startswith('fe80::'):
|
||||
self.configmanager.set_node_attributes(
|
||||
|
Loading…
Reference in New Issue
Block a user