Table Of Contents

This Page

nepi.resources.planetlab.openvswitch package

Submodules

nepi.resources.planetlab.openvswitch.ovs module

class nepi.resources.planetlab.openvswitch.ovs.PlanetlabOVSSwitch(ec, guid)[source]

Bases: nepi.resources.linux.application.LinuxApplication

Class Args :
Parameters:
  • ec (ExperimentController) – The Experiment controller
  • guid (int) – guid of the RM
assign_controller()[source]

Set the controller IP

check_sliver_ovs()[source]

Check if sliver-ovs exists. If it does not exist, the execution is stopped

create_bridge()[source]

Create the bridge/switch and check error during SSH connection

do_deploy()[source]

Deploy the OVS Switch : Turn on the server, create the bridges and assign the controller

do_provision()[source]
do_release()[source]

Delete the bridge and close the server.

to be released before releasing itself

node[source]

Node wthat run the switch

ovs_status()[source]

Print the status of the bridge

servers_on()[source]

Start the openvswitch servers and check it

valid_connection(guid)[source]

Check if the connection with the guid in parameter is possible. Only meaningful connections are allowed.

Parameters:guid (int) – Guid of the current RM
Return type:Boolean

nepi.resources.planetlab.openvswitch.ovsport module

class nepi.resources.planetlab.openvswitch.ovsport.PlanetlabOVSPort(ec, guid)[source]

Bases: nepi.resources.linux.application.LinuxApplication

Class Args :
Parameters:
  • ec (ExperimentController) – The Experiment controller
  • guid (int) – guid of the RM
check_status()[source]
create_port()[source]

Create the desired port

do_deploy()[source]

Deploy the OVS port after the OVS Switch

do_provision()[source]
do_release()[source]

Delete the port on the OVSwitch. It needs to wait for the tunnel to be released.

establish_udp_connection(remote_endpoint, connection_app_home, connection_run_home, port)[source]
initiate_udp_connection(remote_endpoint, connection_app_home, connection_run_home, cipher, cipher_key, bwlimit, txqueuelen)[source]

Get the local_endpoint of the port

node[source]

Node that run the switch and the ports

ovsswitch[source]

Switch where the port is created

port_number[source]
terminate_connection(endpoint, connection_app_home, connection_run_home)[source]
valid_connection(guid)[source]

Check if the connection is available.

Parameters:guid (int) – Guid of the current RM
Return type:Boolean
verify_connection(remote_endpoint, connection_app_home, connection_run_home)[source]

Module contents