Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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"
      }
    ]
  }
}