#NEWLINE# def parse_common_args( client , parsed_args ) : #NEWLINE# #INDENT# if parsed_args . firewall_rules : #NEWLINE# #INDENT# _firewall_rules = [ ] #NEWLINE# for f in parsed_args . firewall_rules : #NEWLINE# #INDENT# _firewall_rules . append ( neutronv20 . find_resourceid_by_name_or_id ( client , 'firewall_rule' , f ) ) #NEWLINE# #UNINDENT# body = { #NEWLINE# #INDENT# 'firewall_rules' : _firewall_rules , #NEWLINE# #UNINDENT# } #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# body = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# #UNINDENT# neutronv20 . update_dict ( parsed_args , body , [ 'name' , 'description' , 'shared' , 'audited' , 'tenant_id' ] ) #NEWLINE# return { #NEWLINE# #INDENT# 'firewall_policy' : _firewall_rules , #NEWLINE# #UNINDENT# }