Have questions? Stuck? Please check our FAQ for some common questions and answers.

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

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.

{
  "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"
      }
    ]
  }
}
  • No labels