#NEWLINE# def args2body( self , parsed_args ) : #NEWLINE# #INDENT# client = self . get_client ( ) #NEWLINE# _network_id = neutronV20 . find_resourceid_by_name_or_id ( client , 'network' , parsed_args . network_id ) #NEWLINE# body = { #NEWLINE# #INDENT# 'admin_state_up' : parsed_args . admin_state , #NEWLINE# 'network_id' : _network_id , #NEWLINE# #UNINDENT# } #NEWLINE# _updatable_args2body ( parsed_args , body , client ) #NEWLINE# neutronV20 . update_dict ( parsed_args , body , [ 'mac_address' , 'tenant_id' ] ) #NEWLINE# if parsed_args . vnic_type : #NEWLINE# #INDENT# body [ 'binding:vnic_type' ] = parsed_args . vnic_type #NEWLINE# #UNINDENT# if parsed_args . binding_profile : #NEWLINE# #INDENT# body [ 'binding:profile' ] = jsonutils . loads ( parsed_args . binding_profile ) #NEWLINE# #UNINDENT# self . args2body_secgroup ( parsed_args , body ) #NEWLINE# self . args2body_extradhcpopt ( self , body ) #NEWLINE# self . args2body_qos_policy ( parsed_args , body ) #NEWLINE# self . args2body_allowedaddresspairs ( parsed_args , body ) #NEWLINE# dns . args2body_dns_create ( parsed_args , body , 'name' ) #NEWLINE# return { #NEWLINE# #INDENT# 'port' : body , #NEWLINE# #UNINDENT# }