Ask is moving to Stack Overflow and Serverfault.com! Please use the "opendaylight" tag on either of these sites. This site is now in Read-Only mode

Revision history [back]

click to hide/show revision 1
initial version

I don't find the option to set action in YANG UI. You can set action using the third party tool eg. postman . Please refer the below example to set the action in a flow.

{ "flow": { "strict": "false", "flow-name": "0", "id": "0", "cookiemask": "255", "cookie": "103", "tableid": "0", "priority": "2", "hard-timeout": "1200", "idle-timeout": "3400", "installHw": "false", "instructions": { "instruction": { "order": "0", "apply-actions": { "action": { "order": "0", "output-action": { "output-node-connector": "1", "max-length": "60" }

      }
    }
  }
},
"match": {
  "ethernet-match": {
    "ethernet-type": {
      "type": "2048"
    },
    "ethernet-destination": {
      "address": "ff:ff:29:01:19:61"
    },
    "ethernet-source": {
      "address": "00:00:00:11:23:ae"
    }
  },
  "ipv4-source": "17.1.2.3/8",
  "ipv4-destination": "172.168.5.6/16",
  "ip-match": {
    "ip-protocol": "6",
    "ip-dscp": "2",
    "ip-ecn": "2"
  },
  "tcp-source-port": "1234",
  "tcp-destination-port": "9999"
}

} }

I don't find the option to set action in YANG UI. You can set action using the third party tool eg. postman . Please refer the below example to set the action in a flow.

{ "flow": { "strict": "false", "flow-name": "0", "id": "0", "cookiemask": "255", "cookie": "103", "tableid": "0", "priority": "2", "hard-timeout": "1200", "idle-timeout": "3400", "installHw": "false", "instructions": { "instruction": { "order": "0", "apply-actions": { "action": { "order": "0", "output-action": { "output-node-connector": "1", "max-length": "60" }
} } } }, "match": { "ethernet-match": { "ethernet-type": { "type": "2048" }, "ethernet-destination": { "address": "ff:ff:29:01:19:61" }, "ethernet-source": { "address": "00:00:00:11:23:ae" } }, "ipv4-source": "17.1.2.3/8", "ipv4-destination": "172.168.5.6/16", "ip-match": { "ip-protocol": "6", "ip-dscp": "2", "ip-ecn": "2" }, "tcp-source-port": "1234", "tcp-destination-port": "9999" } }
}

      }
    }
  }
},
"match": {
  "ethernet-match": {
    "ethernet-type": {
      "type": "2048"
    },
    "ethernet-destination": {
      "address": "ff:ff:29:01:19:61"
    },
    "ethernet-source": {
      "address": "00:00:00:11:23:ae"
    }
  },
  "ipv4-source": "17.1.2.3/8",
  "ipv4-destination": "172.168.5.6/16",
  "ip-match": {
    "ip-protocol": "6",
    "ip-dscp": "2",
    "ip-ecn": "2"
  },
  "tcp-source-port": "1234",
  "tcp-destination-port": "9999"
}

} }

I don't You can find the option action options under instruction. Underneath you have to set action in YANG UI. choose order id and instruction as apply-actions-case.

Also, You can set action using the third party tool eg. postman . Please refer the below example to set the action in a flow.

{ "flow": { "strict": "false", "flow-name": "0", "id": "0", "cookiemask": "255", "cookie": "103", "tableid": "0", "priority": "2", "hard-timeout": "1200", "idle-timeout": "3400", "installHw": "false", "instructions": { "instruction": { "order": "0", "apply-actions": { "action": { "order": "0", "output-action": { "output-node-connector": "1", "max-length": "60" }
} } } }, "match": { "ethernet-match": { "ethernet-type": { "type": "2048" }, "ethernet-destination": { "address": "ff:ff:29:01:19:61" }, "ethernet-source": { "address": "00:00:00:11:23:ae" } }, "ipv4-source": "17.1.2.3/8", "ipv4-destination": "172.168.5.6/16", "ip-match": { "ip-protocol": "6", "ip-dscp": "2", "ip-ecn": "2" }, "tcp-source-port": "1234", "tcp-destination-port": "9999" } } }