#NEWLINE# @ utils . arg ( '-p' , '--profile' , metavar = '<PROFILE>' , required = True , help = _ ( 'Profile Id used for this node.' ) ) #NEWLINE# @ utils . arg ( '-c' , '--cluster' , metavar = '<CLUSTER>' , help = _ ( 'Cluster Id for this node.' ) ) #NEWLINE# @ utils . arg ( '-r' , '--role' , metavar = '<ROLE>' , help = _ ( 'Role for this node in the specific cluster.' ) ) #NEWLINE# @ utils . arg ( '-M' , '--metadata' , metavar = '<KEY1=VALUE1;KEY2=VALUE2...>' , help = _ ( 'Metadata values to be attached to the node. This can be specified multiple times, or once with key-value pairs separated by a semicolon.' ) , action = 'append' ) #NEWLINE# @ utils . arg ( 'name' , metavar = '<NODE_NAME>' , help = _ ( 'Name of the node to create.' ) ) #NEWLINE# def do_node_create( service , args ) : #NEWLINE# #INDENT# 'Create the node.' #NEWLINE# show_deprecated ( 'senlin node-create' , 'openstack cluster node create' ) #NEWLINE# attrs = { #NEWLINE# #INDENT# 'name' : args . name , #NEWLINE# 'cluster_id' : args . cluster , #NEWLINE# 'profile_id' : args . profile , #NEWLINE# 'role' : args . role , #NEWLINE# 'metadata' : utils . format_parameters ( args . metadata ) , #NEWLINE# #UNINDENT# } #NEWLINE# node = service . create_node ( ** attrs ) #NEWLINE# _show_node ( service , node . id )