#NEWLINE# def _get_internal_port( self , subnet_id ) : #NEWLINE# #INDENT# 'Return internal router port based on subnet_id.' #NEWLINE# router_ports = self . router . get ( l3_constants . INTERFACE_KEY , [ ] ) #NEWLINE# for port in router_ports : #NEWLINE# #INDENT# fips = port [ 'fixed_ips' ] #NEWLINE# for f in fips : #NEWLINE# #INDENT# if ( f [ 'subnet_id' ] == subnet_id ) : #NEWLINE# #INDENT# return port