Software Defined Networking
cancel
Showing results for 
Search instead for 
Did you mean: 

REST API to create flow with action "enqueue" for QoS.

 
Highlighted
Senior Member

REST API to create flow with action "enqueue" for QoS.

We have seen REST APIs for metering support.
But to achive this in openflow spec v1.0, we are looking for flow creation with enqueue action.

We could not find a REST API that can support enqueue action. Is this option supported?

 

Thanks in advance.

6 REPLIES 6
Highlighted
Advisor

Re: REST API to create flow with action "enqueue" for QoS.

Check out the "Flow creation via REST API" post

 

This will show you how to get the JSON schema.

There you should see that "enqueue" can be used as an action when creating a flow.

 

Hope this helps. 

 

-- Dave

Technical Marketing Engineer @ HP and self-proclaimed SDN ninja. Words are my own...
Highlighted
Senior Member

Re: REST API to create flow with action "enqueue" for QoS.

Thanks Dave.

 

I had doubt on my controller version, so I have upgraded to 2.0.0. But still, I am seeing the same issue with "enqueue" action.

Please see the screenshot for the reported issue.

 

 

Highlighted
Advisor

Re: REST API to create flow with action "enqueue" for QoS.

I just had a quick look at the OpenFlow spec.... (see links below)

The "set-queue" action doesn't appear to be a valid action in 1.0 (but it is in 1.3).

It appears HP's OpenFlow library does some magic mapping between "set_queue" and "enqueue" and this might be where the error comes from...

 

Could you try using "enqueue" for now to see if this works?

 

Let me know how you get on!

 

Resources:

 

OpenFlow spec 1.0

OpenFlow spec 1.3

Technical Marketing Engineer @ HP and self-proclaimed SDN ninja. Words are my own...
Highlighted
Senior Member

Re: REST API to create flow with action "enqueue" for QoS.

 

Yes Dave. "enqueue" action is mentioned in the 1.0 and our application currently support 1.0. We tried using "enqueue" action, but it appears that action enum type as "ENQUEUE" is not defined.(see the attached screenshot)

 

Whereas, it seems "set_queue" action was accpeted as valid enum. But it throws a different error. (as shown in previous screenshot).

 

 

Thanks

Sudeep

Highlighted
Respected Contributor

Re: REST API to create flow with action "enqueue" for QoS.

Maybe the vlan priority can help to put the traffic in the right queue.

 

so:

{"instructions":[{"apply_actions":[{"set_field":{"vlan_pcp":2}},{"output":4}]}]}

Highlighted
Respected Contributor

Re: REST API to create flow with action "enqueue" for QoS.

with OF 1.3 and above you can also use rate limiters. I need to dig into this part how to use it.