From 21fce4098bf9e43203bf04931e7fe79b283828d9 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Fri, 3 Nov 2017 10:36:32 -0400 Subject: [PATCH] Add ability to list all configuration supported --- confluent_client/bin/nodeconfig | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/confluent_client/bin/nodeconfig b/confluent_client/bin/nodeconfig index 739dbdc2..62dab9fd 100644 --- a/confluent_client/bin/nodeconfig +++ b/confluent_client/bin/nodeconfig @@ -46,7 +46,7 @@ argparser = optparse.OptionParser() (options, args) = argparser.parse_args() cfgpaths = { - 'bmc.ipv4': ( + 'bmc.ipv4_address': ( 'configuration/management_controller/net_interfaces/management', 'ipv4_address'), 'bmc.ipv4_method': ( @@ -58,7 +58,7 @@ cfgpaths = { } autodeps = { - 'bmc.ipv4': (('bmc.ipv4_method', 'static'),) + 'bmc.ipv4_address': (('bmc.ipv4_method', 'static'),) } try: @@ -71,6 +71,13 @@ assignment = {} queryparms = {} +if len(args) == 1: + for candidate in cfgpaths: + path, attrib = cfgpaths[candidate] + path = '/noderange/{0}/{1}'.format(noderange, path) + if path not in queryparms: + queryparms[path] = {} + queryparms[path][attrib] = candidate for param in args[1:]: if '=' in param: if setmode is None: