Due to a ransomware attack, the wiki was reverted to a July 2022 version. . We apologize for the lack of a more recent valid backup.
...
- Ports represent physical ports of devices connected to ONOS. They act as containers of one or more interfaces that actually hold the real configuration
- Interfaces are subset of physical ports distinguished inside a port by a VLANby different parameters, such as i.e. VLANs, IPs, MAC addresses
Configuration structure
Following is reported a typical interface configuration used for SDN-IP
| Code Block | ||
|---|---|---|
| ||
{
"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
1 to 1 mapping between an interface and a port
Configurations attributes written directly under a physical port won't be parsed. In case you like to apply a specific configuration to an entire physical port, just add one interface to it and specify inside its parameters.