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.
During a flow POST request to the ONOS REST Apis the passed json file can contain in the criteria different objects. This is an example of a json file with alle the possible criterias.
Code Block |
---|
{
"priority": 400000,
"timeout": 0,
"isPermanent": true,
"deviceId": "of:0000000000000001",
"treatment": {
"instructions": [
{
"type": "OUTPUT",
"port": "CONTROLLER"
}
]
},
"selector": {
"criteria": [
{
"description1": "ETH_TYPE",
"ethType": "0x88cc"
},
{
"description1": "ETH_TYPE",
"ethType": "0x88cc"
}
]
}
} |