[MDSAL-37] Usability: Config subsystem - "How do I know what values to use in the Yang / XML to get MD-SAL services?" Created: 01/Jul/14  Updated: 09/Mar/18  Resolved: 29/Apr/16

Status: Resolved
Project: mdsal
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement
Reporter: Devin Avery Assignee: Tony Tkacik
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: Mac OS
Platform: PC



 Description   

A usability was pointed out - when we changed the name of the data broker in the config sub system people were not clear on how to even start figuring out what the correct values are.

It would be great if we can try to answer this question in a quick, distinct way. Here is the e-mail snippet from the controller-dev list.

==========

Does anyone know the answer to this? What do I need to put in my yang files and config files to get the new API? I have no idea how I'd even figure this out.

There's a million yang files and everything has the same name as everything else.

-Rob

On Mon, Jun 30, 2014 at 3:26 PM, Rob Adams <readams@readams.net> wrote:
Also, what is the magic incantation I would need in order to use this? In terms of what I need to put into the config XML file, pom file, etc.
The old one looks like this:

container data-broker {
uses config:service-ref {
refine type

{ mandatory true; config:required-identity mdsal:binding-data-broker; }

}
}

and
<data-broker>
<type xmlns:binding="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding">binding:binding-data-broker</type>
<name>binding-data-broker</name>
</data-broker>

On Mon, Jun 30, 2014 at 3:07 PM, Rob Adams <readams@readams.net> wrote:
Thanks, so it looks like in the new API there is a way to do this. This is much better.

One thing to ask though, based on the design of the new API: are we committing to notifications always and forever more being single threaded? The current API design is not threadsafe if you can get notifications on multiple threads. Given that the design of MD-SAL depends on these update notifications for potentially performance-critical paths, this may not be a good idea.

-Rob



 Comments   
Comment by Tony Tkacik [ 19/Mar/15 ]

https://wiki.opendaylight.org/view/Controller_Core_Functionality_Tutorials:Main provide guide for this.

Comment by Devin Avery [ 19/Mar/15 ]

Reopening this bug as the provided link is the general tutorial and does not answer the question asked.

Even the more specific config subsystem pages doesn't answer the question: https://wiki.opendaylight.org/view/OpenDaylight_Controller:MD-SAL:MD-SAL_Document_Review:Config_SubSystem

If we are relying on the documentation on the wiki to explain this then we need to give concrete examples. The specific item listed below was asked. Another example would be the schema service etc. In general we are looking to not only understand how the config system is built to work but how we can search for existing services.

Thank you!

Generated at Wed Feb 07 20:08:29 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.