#NEWLINE# def args2body( self , parsed_args ) : #NEWLINE# #INDENT# _rule = '' #NEWLINE# if parsed_args . firewall_rule_id : #NEWLINE# #INDENT# _rule = neutronv20 . find_resourceid_by_name_or_id ( self . get_client ( ) , 'firewall_rule' , parsed_args . firewall_rule_id ) #NEWLINE# #UNINDENT# _insert_before = '' #NEWLINE# if ( 'insert_before' in parsed_args ) : #NEWLINE# #INDENT# if parsed_args . insert_before : #NEWLINE# #INDENT# _insert_before = neutronv20 . find_resourceid_by_name_or_id ( self . get_client ( ) , 'firewall_rule' , parsed_args . insert_before ) #NEWLINE# #UNINDENT# #UNINDENT# _insert_after = '' #NEWLINE# if ( 'insert_after' in parsed_args ) : #NEWLINE# #INDENT# if parsed_args . insert_after : #NEWLINE# #INDENT# _insert_after = neutronv20 . find_resourceid_by_name_or_id ( self . get_client ( ) , 'firewall_rule' , parsed_args . insert_after ) #NEWLINE# #UNINDENT# #UNINDENT# body = { #NEWLINE# #INDENT# 'firewall_rule_id' : _rule , #NEWLINE# 'insert_before' : _insert_before , #NEWLINE# 'insert_after' : _insert_after , #NEWLINE# #UNINDENT# } #NEWLINE# return body