#NEWLINE# def run_vsctl( self , args ) : #NEWLINE# #INDENT# full_args = ( ( [ 'ovs-vsctl' ] + args . opts ) + args ) #NEWLINE# try : #NEWLINE# #INDENT# return utils . execute ( full_args , run_as_root = True , log_fail_as_error = False ) . rstrip ( ) #NEWLINE# #UNINDENT# except Exception as e : #NEWLINE# #INDENT# with excutils . save_and_reraise_exception ( ) as ctxt : #NEWLINE# #INDENT# if self . log_errors : #NEWLINE# #INDENT# LOG . error ( _LE ( 'Unable to execute %(cmd)s. Exception: %(exception)s' ) , { #NEWLINE# #INDENT# 'cmd' : full_args , #NEWLINE# 'exception' : e , #NEWLINE# #UNINDENT# } ) #NEWLINE# #UNINDENT# if ( not self . check_error ) : #NEWLINE# #INDENT# ctxt . reraise = False