<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:09:29 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>OpenDaylight JIRA</title>
    <link>https://jira.opendaylight.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>8.20.10</version>
        <build-number>820010</build-number>
        <build-date>22-06-2022</build-date>
    </build-info>


<item>
            <title>[MDSAL-308] leaf-ref to InstanceIdentifier</title>
                <link>https://jira.opendaylight.org/browse/MDSAL-308</link>
                <project id="10137" key="MDSAL">mdsal</project>
                    <description>&lt;p&gt;Given&#160; the model&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
leaf role-set {
 type leafref {
 path &lt;span class=&quot;code-quote&quot;&gt;&quot;/rpol:routing-policy/rpol:defined-sets/role-sets/role-set/role-set-name&quot;&lt;/span&gt;;
 }
 description &lt;span class=&quot;code-quote&quot;&gt;&quot;References a defined neighbor roles set&quot;&lt;/span&gt;;
}&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;when reading from DS and calling&#160;getRoleSet()&lt;/p&gt;

&lt;p&gt;where&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
/**
 * References a defined neighbor roles set
 *
 *
 *
 * @&lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; &amp;lt;code&amp;gt;java.lang.&lt;span class=&quot;code-object&quot;&gt;String&lt;/span&gt;&amp;lt;/code&amp;gt; &amp;lt;code&amp;gt;roleSet&amp;lt;/code&amp;gt;, or &amp;lt;code&amp;gt;&lt;span class=&quot;code-keyword&quot;&gt;null&lt;/span&gt;&amp;lt;/code&amp;gt; &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; not present
 */
java.lang.&lt;span class=&quot;code-object&quot;&gt;String&lt;/span&gt; getRoleSet();&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;I was not able to find a tool or way to do a direct conversion from this string&#160;&lt;/p&gt;

&lt;p&gt;to an InstanceIdentifier.&lt;/p&gt;</description>
                <environment></environment>
        <key id="29155">MDSAL-308</key>
            <summary>leaf-ref to InstanceIdentifier</summary>
                <type id="10100" iconUrl="https://jira.opendaylight.org/secure/viewavatar?size=xsmall&amp;avatarId=10310&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="3" iconUrl="https://jira.opendaylight.org/images/icons/priorities/major.svg">Medium</priority>
                        <status id="5" iconUrl="https://jira.opendaylight.org/images/icons/statuses/resolved.png" description="A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.">Resolved</status>
                    <statusCategory id="3" key="done" colorName="green"/>
                                    <resolution id="10001">Won&apos;t Do</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="cdgasparini">Claudio David Gasparini</reporter>
                        <labels>
                    </labels>
                <created>Mon, 5 Feb 2018 12:41:40 +0000</created>
                <updated>Thu, 28 Oct 2021 20:14:42 +0000</updated>
                            <resolved>Thu, 28 Oct 2021 20:14:42 +0000</resolved>
                                                                    <component>Binding runtime</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="61388" author="jiehan2017" created="Fri, 2 Mar 2018 08:43:56 +0000"  >&lt;p&gt;This feature could be properly provided by mdsal runtime of binding v2 after &lt;a href=&quot;https://jira.opendaylight.org/browse/MDSAL-17&quot; title=&quot;Simplify InstanceIdentifer creation&quot; class=&quot;issue-link&quot; data-issue-key=&quot;MDSAL-17&quot;&gt;&lt;del&gt;MDSAL-17&lt;/del&gt;&lt;/a&gt;.&lt;br/&gt;
but the Instance Identifier only identifies a specific TreeNode in the data tree, not a leaf node.&lt;/p&gt;</comment>
                            <comment id="63808" author="rovarga" created="Thu, 28 Jun 2018 23:44:00 +0000"  >&lt;p&gt;This boils down to resolving leafref types, which really is an XPath query on the data store.&lt;/p&gt;

&lt;p&gt;Codegen API contract should change, so that it returns an XPath query (which can be limited in terms of InstanceIdentifier wildcards?). That query then needs to be run against the datastore.&lt;/p&gt;</comment>
                            <comment id="70018" author="rovarga" created="Thu, 28 Oct 2021 20:10:50 +0000"  >&lt;p&gt;In this particular instance we want the reference to come from:&lt;/p&gt;


&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;    grouping role-set {
        description &quot;Data definition for a list of Odl Bgp roles which
            are matched as part of a policy&quot;;

        list role-set {
            key role-set-name;
            description &quot;List of the defined role sets&quot;;

            leaf role-set-name {
              type string;
              description
                &quot;name / label of the role set -- this is used to
                reference the set in match conditions&quot;;
            }

            leaf-list role {
                type rib:peer-role;
                description
                &quot;List of role expressions that are part of the set&quot;;
            }
      }
    }
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;From this follows, that if you want a (Yang)InstanceIdentifier, you want additional proof as to what the role set entry is. Why do we need this?&lt;/p&gt;

&lt;p&gt;If the need is to find the role-set, the returned string is what  you need to construct RoleSetKey with to point to what the correlation you are making with a particular instantiation.&lt;/p&gt;</comment>
                            <comment id="70019" author="rovarga" created="Thu, 28 Oct 2021 20:14:42 +0000"  >&lt;p&gt;If there is a gap that needs to be addressed, please reopen.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10003">
                    <name>Relates</name>
                                            <outwardlinks description="relates to">
                                        <issuelink>
            <issuekey id="26839">MDSAL-17</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                            <customfield id="customfield_11400" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10000" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i03a0n:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                </customfields>
    </item>
</channel>
</rss>