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


REST XML syntax documentation

asked 2015-01-28 13:45:07 -0700

whabeck gravatar image

Does anyone know where to find documentation and/or examples for using XML to program flows? I am using Postman to push flows to a Helium controller.

The ODL Wiki has the following page:

This shows examples, but mostly for Matching and not Actions. There must be something out there, but I have not been able to find it.

Example... I need to set the VLAN ID as an action, but cannot find how to do this.


edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2015-01-29 01:50:11 -0700

mawil gravatar image

There are other examples in the Openflowplugin repository. You can clone the repository with:

git clone

The examples are used for Openflowplugin test-scripts and located in "test-scripts" -> "xmls". If you want to push a vlan id, you can look at "test-scripts" -> "xmls" -> "f110.xml"

For example (quoting from f110.xml):

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<flow xmlns="urn:opendaylight:flow:inventory">
edit flag offensive delete publish link more


Thank you. I will test this on my system and let everyone know how it goes.

whabeck ( 2015-01-29 08:09:32 -0700 )edit

@whabeck did the example work for you? If yes any chance you can accept (above little tick on the left) and upvote the answer?

mawil ( 2015-02-03 05:33:59 -0700 )edit

did not get to test, but i believe this is what I was looking for.

whabeck ( 2015-02-05 10:43:40 -0700 )edit

I've tried this example and others of my own. None of them seem to work correctly. The flow that is entered into ovs does not reflect the vlan-id that is provided. Here is the resulting flow from ovs: cookie=0x0, duration=39.439s, table=0, n_packets=n/a, n_bytes=656, priority=1,in_port=12 actions=push_vlan:0x88a8,set_field:4162->vlan_vid,output:1 Note that the vlan-id is set to 4162. This is not the id I provided in the xml. Any ideas on how to correct this? And where does 4162 come from? Is there some encoding issue? Thanks

jpete2477 ( 2015-07-28 10:14:49 -0700 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2015-01-28 13:45:07 -0700

Seen: 652 times

Last updated: Mar 18 '15