Commit a1578ccf authored by Sebastian Gebhard's avatar Sebastian Gebhard Committed by Klaus Aehlig

Fix TypeError in backend/ConfigureOVS

In case of running into a failure during Open vSwitch creation, the error is
not given, but a TypeError is thrown. This is because the number of arguments
for the format string was not equal to the place holders.

This fixes the issue.
Signed-off-by: default avatarSebastian Gebhard <>
Signed-off-by: default avatarKlaus Aehlig <>
Reviewed-by: default avatarKlaus Aehlig <>
parent 25ea5b98
......@@ -4340,16 +4340,16 @@ def ConfigureOVS(ovs_name, ovs_link):
# Initialize the OpenvSwitch
result = utils.RunCmd(["ovs-vsctl", "add-br", ovs_name])
if result.failed:
_Fail("Failed to create openvswitch %s. Script return value: %s, output:"
" '%s'" % result.exit_code, result.output, log=True)
_Fail("Failed to create openvswitch. Script return value: %s, output: '%s'"
% (result.exit_code, result.output), log=True)
# And connect it to a physical interface, if given
if ovs_link:
result = utils.RunCmd(["ovs-vsctl", "add-port", ovs_name, ovs_link])
if result.failed:
_Fail("Failed to connect openvswitch to interface %s. Script return"
" value: %s, output: '%s'" % ovs_link, result.exit_code,
result.output, log=True)
" value: %s, output: '%s'" % (ovs_link, result.exit_code,
result.output), log=True)
class HooksRunner(object):
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment