Could you show why random flow IDs appear in operational data store? How could I reset operational data store without reset ODL karaf?
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
This thread is public, all members of ask.opendaylight.org can read this page.
Asked: 2016-02-16 03:16:32 -0700
Seen: 111 times
Last updated: Feb 17 '16
© 2014 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a trademark of The OpenDaylight Project, Inc.
Linux Foundation is a registered trademark of The Linux Foundation.
Linux is a registered trademark of Linus Torvalds.