Commit 90d8d4d1 authored by Sebastian Gebhard's avatar Sebastian Gebhard Committed by Klaus Aehlig
Browse files

Add RPC functionality for creating OpenvSwitches

This patches adds the needed RPC functions in order to create the
OpenvSwitches on the nodes.
Signed-off-by: default avatarSebastian Gebhard <>
Signed-off-by: default avatarKlaus Aehlig <>
Reviewed-by: default avatarKlaus Aehlig <>
parent 8baa9ca7
......@@ -501,6 +501,10 @@ _NODE_CALLS = [
("hypervisor", None, "Hypervisor type"),
("hvparams", None, "Hypervisor parameters"),
], None, None, "Tries to powercycle a node"),
("node_configure_ovs", SINGLE, None, constants.RPC_TMO_NORMAL, [
("ovs_name", None, "Name of the OpenvSwitch to create"),
("ovs_link", None, "Link of the OpenvSwitch to the outside"),
], None, None, "This will create and setup the OpenvSwitch"),
......@@ -831,6 +831,14 @@ class NodeRequestHandler(http.server.HttpServerHandler):
(hypervisor_type, hvparams) = params
return backend.PowercycleNode(hypervisor_type, hvparams)
def perspective_node_configure_ovs(params):
"""Sets up OpenvSwitch on the node.
(ovs_name, ovs_link) = params
return backend.ConfigureOVS(ovs_name, ovs_link)
# cluster --------------------------
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