#NEWLINE# def __init__( self , row , idl_nb ) : #NEWLINE# #INDENT# self . id = row . logical_port #NEWLINE# self . mac = row . mac [ 0 ] #NEWLINE# self . chassis = row . chassis [ 0 ] . name #NEWLINE# self . network_id = str ( row . logical_datapath ) #NEWLINE# self . tunnel_key = row . tunnel_key #NEWLINE# self . external_dict = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# self . idl_nb = idl_nb #NEWLINE# self . lport = idlutils . row_by_value ( self . idl_nb , 'Logical_Port' , 'name' , self . id ) #NEWLINE# ips = getattr ( self . lport , 'ips' , [ ] ) #NEWLINE# self . ip = ips [ 0 ]