kytos-ng / flow_manager

Kytos NApp that manages OpenFlow 1.3 entries
https://kytos-ng.github.io/api/flow_manager.html
MIT License
0 stars 7 forks source link

Restrict one instruction type per instruction #169

Open Alopalao opened 1 year ago

Alopalao commented 1 year ago

There are 7 types of instructions:

There should not be duplicated intruction_type when creating a flow. For example the following should not be accepted:

            "instructions": [
                {   
                    "instruction_type": "apply_actions", 
                    "actions": [{"port": 11, "action_type": "output"}]
                },
                {
                    "instruction_type": "apply_actions", 
                    "actions": [{"port": 10, "action_type": "output"}]
                }
            ]