#NEWLINE# def get_local_port_ids( self ) : #NEWLINE# #INDENT# br_int = idlutils . row_by_value ( self . idl , 'Bridge' , 'name' , 'br-int' ) #NEWLINE# port_ids = set ( ) #NEWLINE# for port in br_int . ports : #NEWLINE# #INDENT# if ( port . name == 'br-int' ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# if ( 'df-chassis-id' in port . external_ids ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# for interface in port . interfaces : #NEWLINE# #INDENT# if ( 'iface-id' in interface . external_ids ) : #NEWLINE# #INDENT# port_ids . add ( br_int . external_ids [ 'iface-id' ] ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# return port_ids