Mininet: REST API

Mininet is an excellent extensible network emulation tool, however, currently is designed for human input...

Get Nodes

GET http://localhost/mn/api/nodes

This endpoint allows you to get a list of nodes within the topology.

Query Parameters

Name
Type
Description

class

string

Only return nodes of a given python class

{
  "c0": {
    "class": "Controller"
  },
  "h2": {
    "class": "Host"
  },
  "s1": {
    "class": "OVSSwitch"
  },
  "h1": {
    "class": "Host"
  }
}

Get Node Information

GET http://localhost/mn/api/node/:node_name

Get the information regarding a given node

Path Parameters

Name
Type
Description

node_name

string

The name of the node to get get the information of

Ping a Host Set

GET http://localhost/mn/api/pingset

Run a ping to a host pair matrix

Query Parameters

Name
Type
Description

hosts

string

a comma-separated set of host names

Ping all hosts

GET http://localhost/mn/api/pingall

Ping a complete host set

Run iperf between 2 hosts

GET http://localhost/mn/api/iperf

Query Parameters

Name
Type
Description

time

integer

number of seconds to run for ( >0, < 31)

type

string

l4 type to run [tcp, udp]

client

string

host to run as iperf client

server

string

host to run as iperf server

Last updated

Was this helpful?