Ask Your Question
0

Operation datastore reset

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

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?

Thanks

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

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

saisujithreddy gravatar image

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

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. http://pastebin.com/x3Y5hCE

edit flag offensive delete publish link more

Comments

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 -0700 )edit

edited the answer, please let me know.

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

Question Tools

Follow
1 follower

Stats

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

Seen: 144 times

Last updated: Feb 17 '16