mirror of
https://github.com/xcat2/confluent.git
synced 2024-12-25 12:41:39 +00:00
Automatically request static when setting ip
If someone is setting IP address, they are implying static. Change that implicit reality to explicit statement.
This commit is contained in:
parent
7f4ea287bc
commit
8eca6b156b
@ -57,6 +57,10 @@ cfgpaths = {
|
||||
'ipv4_gateway'),
|
||||
}
|
||||
|
||||
autodeps = {
|
||||
'bmc.ipv4': (('bmc.ipv4_method', 'static'),)
|
||||
}
|
||||
|
||||
try:
|
||||
noderange = args[0]
|
||||
except IndexError:
|
||||
@ -76,6 +80,8 @@ for param in args[1:]:
|
||||
key, _, value = param.partition('=')
|
||||
if key not in cfgpaths:
|
||||
bailout('Unrecognized setting: {0}'.format(key))
|
||||
for depkey, depval in autodeps.get(key, []):
|
||||
assignment[depkey] = depval
|
||||
assignment[key] = value
|
||||
else:
|
||||
if setmode is None:
|
||||
|
Loading…
Reference in New Issue
Block a user