#NEWLINE# def get_ports( self , context , filters = None ) : #NEWLINE# #INDENT# query_filters = dict ( ) #NEWLINE# if filters : #NEWLINE# #INDENT# query_filters . update ( filters ) #NEWLINE# #UNINDENT# if ( not context . is_admin ) : #NEWLINE# #INDENT# query_filters [ 'tenant_id' ] = [ context . tenant_id ] #NEWLINE# #UNINDENT# result = self . _get_query_answer ( self . _port_list , query_filters ) #NEWLINE# return result