The interface configuration allows users to configure information about ports of devices connected to the system. The information can be used by ONOS and its applications to drive certain behaviors.
Basic definitions
- Ports represent physical ports of devices connected to ONOS
- Interfaces are subset of ports distinguished inside a port by a VLAN
Configuration structure
Following is reported a typical interface configuration used for SDN-IP
Example of interface configuration
{ "ports" : { "of:0000000000000001/1" : { "interfaces" : [ { "name" : "Interface 1 sw 1", "ips" : [ "1.1.1.1/24", "10.10.10.1/24" ], "mac" : "00:00:00:00:00:01" } ] }, "of:0000000000000002/1" : { "interfaces" : [ { "name" : "Interface 1 sw 2", "ips" : [ "2.2.2.2/24" ], "mac" : "00:00:00:00:00:02" }, { "name" : "Interface 2 sw 2", "ips" : [ "3.3.3.3/24" ], "mac" : "00:00:00:00:00:03" } ] } }
Interfaces