0
votes

I try to add flows to the switches via DLUX YangUI (using Beryllium). So, I go to the API opendaylight-iventory rev.2013-08-19 -> config -> nodes -> node ->table -> flow and start to add a flow like this (Preview): http://localhost:8181/restconf/config.. . { "flow": [ { "id": "1", "match": { "in-port": "2", "ethernet-match": { "ethernet-type": { "type": "0x0800" } }, "ip-match": { "ip-dscp": "0x2e" } }, "out port": "1", "flow-name": "mod1", "priority": "30000", "tableid": "2" } ] }

There is no subitem to set actions=ouput or something like that. Everytime I put a flow like that one above the instruction "out_port":"1" is ignored because the action is automatically set to "drop".

How can I set "actions" in the YangUI?

1

1 Answers

0
votes

Flow actions has to be embedded in below format. Refer this Opendaylight wiki for flow samples with different set of match criteria & actions.

<instructions>
    <instruction>
        <order>0</order>
        <apply-actions>
            <action>
                <order>0</order>
                <output-action>
                    <output-node-connector>1</output-node-connector>
                    <max-length>60</max-length>
                </output-action>
            </action>
        </apply-actions>
    </instruction>
</instructions>