<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 19:58:44 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>[DOCS-126] YANG Tools Developer Guide out of date (incorrect code examples)</title>
                <link>https://jira.opendaylight.org/browse/DOCS-126</link>
                <project id="10121" key="DOCS">docs</project>
                    <description>&lt;p&gt;version: Magnesium&lt;br/&gt;
 page: developer-guide/yang-tools&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;While trying out this developers guide (as I want to start using the Yang tools) I realized the code in the example no longer matches the current libraries&lt;/p&gt;

&lt;p&gt;I suspect the content of this page hasn&apos;t been updated for a while. I am not sure if the&#160; diagrams are still correct but some of the code definitely is wrong. Some examples&lt;/p&gt;

&lt;p&gt;1)&#160;new YangStatementSourceImpl(&quot;/example.yang&quot;, false); I&lt;/p&gt;

&lt;p&gt;This is no longer a valid contructor. Instead&#160; the code should be something like this:&lt;/p&gt;

&lt;p&gt;YangTextSchemaSource source = YangTextSchemaSource.forFile(new File(&quot;/exampleI.yang&quot;));&lt;br/&gt;
 StatementStreamSource yangModuleSource = YangStatementStreamSource.create(source);&lt;/p&gt;

&lt;p&gt;2)&#160;YangInferencePipeline.RFC6020_REACTOR.newBuild();&#160; refers to a class that no longer exists!&lt;/p&gt;

&lt;p&gt;instead I used&lt;/p&gt;

&lt;p&gt;CrossSourceStatementReactor.BuildAction reactor = RFC7950Reactors.defaultReactor().newBuild();&lt;/p&gt;

&lt;p&gt;3)&#160;Set&amp;lt;DataSchemaNodes&amp;gt; dataSchemaNodes = schemaContext.getDataDefinitions();&lt;/p&gt;

&lt;p&gt;Is might just be a typo but DataSchemaNodes (plural) is incorrect, it should be&lt;/p&gt;

&lt;p&gt;Set&amp;lt;DataSchemaNode&amp;gt; dataSchemaNodes = schemaContext.getDataDefinitions();&lt;/p&gt;

&lt;p&gt;4) Note the use of double == instead of =&lt;/p&gt;

&lt;p&gt;I suspect there are more issues with the remainder of the code but I didn&apos;t explore. Its probably best left to someone that is familiar with yang tools to reproduce all the samples using the current libraries and update the code (and possibly diagrams)&lt;/p&gt;</description>
                <environment></environment>
        <key id="33056">DOCS-126</key>
            <summary>YANG Tools Developer Guide out of date (incorrect code examples)</summary>
                <type id="10104" iconUrl="https://jira.opendaylight.org/secure/viewavatar?size=xsmall&amp;avatarId=10303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.opendaylight.org/images/icons/priorities/major.svg">Medium</priority>
                        <status id="1" iconUrl="https://jira.opendaylight.org/images/icons/statuses/open.png" description="The issue is open and ready for the assignee to start work on it.">Open</status>
                    <statusCategory id="2" key="new" colorName="blue-gray"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="clavoy">Charles La Voy</assignee>
                                    <reporter username="ToineSiebelink">Toine Siebelink</reporter>
                        <labels>
                    </labels>
                <created>Wed, 15 Jul 2020 08:53:26 +0000</created>
                <updated>Wed, 15 Jul 2020 13:56:26 +0000</updated>
                                                                            <component>Developer Guide</component>
                    <component>General</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                        <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|i03tsf:</customfieldvalue>

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