Introduction

Mininet library. This library is useful for tests using mininet tool to simulate devices.

Keywords

Arguments

mininet_conn
= ${EMPTY}
flow_count
= 0

Documentation

Sync with mininet to match exact number of flows

Arguments

action
= break
member_index_list
= ${EMPTY}

Documentation

Break and restore controller to mininet connection via iptables.

Documentation

Get all the hosts from mininet

Documentation

Copy and install certificates in simulator.

Arguments

* host_list

Documentation

Do one round of ping from one host to all other hosts in mininet. Note that a single ping failure will exit the loop and return a non zero value.

Arguments

host1 host2 pingcount
= 2

Documentation

Ping between mininet hosts. Must be used only after a mininet session is in place. Returns non zero value if there is 100% packet loss.

Arguments

mininet_conn
= ${EMPTY}
cmd
= help

Documentation

Sends Command ${cmd} to Mininet session ${mininet_conn} and returns read buffer response.

Arguments

mininet_conn_list cmd
= help

Documentation

Sends Command ${cmd} to Mininet sessions in ${mininet_conn_list} and returns list of read buffer responses.

Arguments

switches mininet
= ${TOOLS_SYSTEM_IP}
controller
= ${ODL_SYSTEM_IP}
ofversion
= 13
ofport
= ${ODL_OF_PORT}
hosts
= 0
mininet_timeout
= ${DEFAULT_TIMEOUT}

Documentation

Start a custom mininet topology.

Arguments

switches mininet
= ${TOOLS_SYSTEM_IP}
controller
= ${ODL_SYSTEM_IP}
ofversion
= 13
ofport
= ${ODL_OF_PORT}
mininet_timeout
= ${DEFAULT_TIMEOUT}

Documentation

Start mininet linear topology with ${switches} nodes.

Arguments

mininet
= ${TOOLS_SYSTEM_IP}
controller_index_list
= ${EMPTY}
options
= --topo tree,1
custom
= ${EMPTY}
ofversion
= 13
ofport
= ${ODL_OF_PORT}
protocol
= tcp
timeout
= ${DEFAULT_TIMEOUT}

Documentation

Start Mininet with custom topology and connect to list of controllers in ${controller_index_list} or all if no list is provided.

Arguments

hosts mininet
= ${TOOLS_SYSTEM_IP}
controller
= ${ODL_SYSTEM_IP}
ofversion
= 13
ofport
= ${ODL_OF_PORT}
mininet_timeout
= ${DEFAULT_TIMEOUT}

Documentation

Start mininet 1 switch with ${hosts} hosts attached.

Arguments

mininet
= ${TOOLS_SYSTEM_IP}
controller
= ${ODL_SYSTEM_IP}
options
= --topo tree,1
custom
= ${EMPTY}
ofversion
= 13
ofport
= ${ODL_OF_PORT}
timeout
= ${DEFAULT_TIMEOUT}

Documentation

Start Mininet with custom topology and connect to controller.

Arguments

mininet_conn
= ${EMPTY}

Documentation

Stops Mininet and exits session ${mininet_conn}

Arguments

mininet_conn_list

Documentation

Stops Mininet and exits sessions in ${mininet_conn_list}.

Arguments

mininet_conn
= ${EMPTY}
flow_count
= 0
time_out
= 0s

Documentation

Verify flow count per switch

Arguments

host1 host2

Documentation

Send ping from mininet and verify no conectivity.

Arguments

host1 host2

Documentation

Send ping from mininet and verify connectivity.

MininetKeywords

image/svg+xml