#NEWLINE# def _ovs_vsctl( args ) : #NEWLINE# #INDENT# full_args = ( [ 'ovs-vsctl' , ( '--timeout=%s' % CONF . ovs_vsctl_timeout ) ] + args ) #NEWLINE# try : #NEWLINE# #INDENT# return utils . execute ( * full_args , run_as_root = True ) #NEWLINE# #UNINDENT# except Exception as e : #NEWLINE# #INDENT# LOG . error ( _LE ( 'Unable to execute %(cmd)s. Exception: %(exception)s' ) , { #NEWLINE# #INDENT# 'cmd' : full_args , #NEWLINE# 'exception' : e , #NEWLINE# #UNINDENT# } ) #NEWLINE# raise exception . OvsConfigurationFailure ( inner_exception = e )