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


Operation datastore reset

asked 2016-02-16 03:16:32 -0800

aljoby gravatar image

Could you show why random flow IDs appear in operational data store? How could I reset operational data store without reset ODL karaf?


edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2016-02-16 12:37:55 -0800

saisujithreddy gravatar image

updated 2016-02-17 11:34:08 -0800

When we input something it goes in to config datastore with out any modifications. At this point of time yang validation is done so it is successfully placed in config data store. This doesn't guarantee that flow which is injected contains all the correct content. The exact flow id will be populated in operational data store only if it matches / satisfies all the criteria mentioned (please go through java code which pushes flow from config to operational - applications/statistics-manager should be a good start).

Once you clone openflowplugin repository, you can find it here --> openflowplugin/applications/statistics.manager/impl/helper/flowcomparator. There the comparison happens at areObjectEquals level . This is pure java which i think you only need to touch assuming your body is 100% true. I suggest you to make sure the body is correct before modifying any java code. Sample input of body which works for me while injecting a flow is as follows.

edit flag offensive delete publish link more


Many thanks. How can I find applications/statistics-manager, please? I am pushing flows through RESTCONF APIs. Thanks again

aljoby ( 2016-02-16 23:18:25 -0800 )edit

edited the answer, please let me know.

saisujithreddy ( 2016-02-17 11:34:38 -0800 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2016-02-16 03:16:32 -0800

Seen: 353 times

Last updated: Feb 17 '16