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

0

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

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

anonymous user

Anonymous

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>

<in-port>2</in-port>

<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
0

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

Moderators

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 192.168.100.5/24 where operations it will have 192.168.100.0/24 (both do the same thing but are seem to be different)

edit flag offensive delete publish link more
0

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

Comments

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

Stats

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

Seen: 334 times

Last updated: Dec 19 '14