#NEWLINE# def update_remote_dpid( self , dpid , port_no , remote_dpid ) : #NEWLINE# #INDENT# remote_dpid_ = self . dpids [ dpid ] . get ( port_no ) #NEWLINE# if ( remote_dpid_ is None ) : #NEWLINE# #INDENT# self . _add_remote_dpid ( dpid , port_no , remote_dpid ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( remote_dpid_ != remote_dpid ) : #NEWLINE# #INDENT# raise ryu_exc . RemoteDPIDAlreadyExist ( dpid = dpid , port = port_no , remote_dpid = remote_dpid )