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


Flow id in operational DB is not matching the flow id in config DB

asked 2014-12-19 12:58:10 -0700

anonymous user


I added the below flow(id:111) into a node :

<flow xmlns="urn:opendaylight:flow:inventory"> <strict>false</strict> <instructions> <instruction> <order>0</order> <apply-actions> <action> <order>0</order> <output-action> <output-node-connector>3</output-node-connector> </output-action> </action> </apply-actions> </instruction> </instructions></flow>

<table_id>0</table_id> <id>111</id> <cookie_mask>10</cookie_mask> <out_port>3</out_port>

<match> <ethernet-match> <ethernet-type> <type>2048</type> </ethernet-type></ethernet-match></match>


<hard-timeout>0</hard-timeout> <cookie>10</cookie> <idle-timeout>0</idle-timeout> <flow-name>TESTFLOW1</flow-name> <priority>200</priority> <barrier>false</barrier>

After the flow gets added, I did GET on config DB, and in the response i can see that the flow got added with the ID i gave in my XML request (which is "111"). When I do GET On the config DB, I can see my flow in the response...but with a diff ID : "id": "#UF$TABLE*0-363""

Is this intentional or a bug? Why is the flow ID not showing as "111" ?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2014-12-19 19:51:33 -0700


updated 2014-12-19 19:57:28 -0700

It's a known issue when Statistics manager doesn't find the matching flow. IE the cookie and cookie mask could be report different from the openflow device, it's a bug maybe related to cookie/cookie mask so can you open a bug.

Can u see check that cookie and cookie_mask are the same in operation and config.

some openflow devices will change things like for config it will have where operations it will have (both do the same thing but are seem to be different)

edit flag offensive delete publish link more

answered 2014-12-19 22:16:09 -0700

sak gravatar image

Cookie value is the same, but cookie_mask is not displayed in the Operation DB response.

edit flag offensive delete publish link more


Ok then, maybe your switch doesn't support cookie_mask. But yea as the flow's don't match then it creates it's own ID

Chris O'Shea ( 2014-12-20 03:38:22 -0700 )edit
Login/Signup to Answer


Asked: 2014-12-19 12:58:10 -0700

Seen: 369 times

Last updated: Dec 19 '14