#NEWLINE# def delete_subnet_ports( self , subnet_id ) : #NEWLINE# #INDENT# ports = self . shell . quantum . list_ports ( ) [ 'ports' ] #NEWLINE# for port in ports : #NEWLINE# #INDENT# delete = False #NEWLINE# for fixed_ip in port [ 'fixed_ips' ] : #NEWLINE# #INDENT# if ( fixed_ip [ 'subnet_id' ] == self ) : #NEWLINE# #INDENT# delete = True #NEWLINE# break #NEWLINE# #UNINDENT# #UNINDENT# if delete : #NEWLINE# #INDENT# self . shell . quantum . delete_port ( port [ 'id' ] ) #NEWLINE# #UNINDENT# #UNINDENT# return 1