#NEWLINE# def is_uplink_already_added( root_helper , br_ex , port_name ) : #NEWLINE# #INDENT# ( br , port_exist ) = ovs_lib . port_exists_glob ( root_helper , port_name ) #NEWLINE# if ( not port_exist ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( br == br_ex ) : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# LOG . error ( _LE ( 'Port %(port)s added to wrong bridge %(br)s Given %(br_ex)s' ) , { #NEWLINE# #INDENT# 'port' : port_name , #NEWLINE# 'br' : root_helper , #NEWLINE# 'br_ex' : br_ex , #NEWLINE# #UNINDENT# } ) #NEWLINE# return False