<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:44:03 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>[TRNSPRTPCE-773] Issue in yang files with mandatory leaf  and mandatory statement in List container</title>
                <link>https://jira.opendaylight.org/browse/TRNSPRTPCE-773</link>
                <project id="10178" key="TRNSPRTPCE">transportpce</project>
                    <description>&lt;p&gt;In the scope of migrating functional tests from Honeynode to Lightynode simulator (derived from lighty.io Netconf simulator), we successfully migrated them for openroadm data models version 1.2.1 and 2.2.1 but we face some issues with functional tests using openroadm 7.1.0 models.&lt;/p&gt;

&lt;p&gt;This issue would be related to yangtools which seems not to correctly manage &#8220;mandatory&#8221; leaf as well as the management of the &#8220;when&#8221; statement.&lt;/p&gt;



&lt;p&gt;Since the openroadm yang models are quite complex, we summarize the following issues in a small yang model attached in the zip file, highlighted these two cases and report it in the &#8216;trace_MainBugWhenStatement.log&#8217; file:&lt;/p&gt;



&lt;p&gt;1/ When a container has a &#8220;leaf&#8221; set to &#8220;mandatory&#8221;, we can write this container into datastore even if this lead has not been set (not an issue so far for us).&lt;/p&gt;

&lt;p&gt;2/ When a list container has a &#8220;leaf&#8221; with a &#8220;mandatory statement&#8221;, this leaf must always be set even if we have a when statement which is false (this is our issue).&lt;/p&gt;



&lt;p&gt;This is typically the second case we encounter with functional test migration in TransportPCE and especially with &lt;span class=&quot;nobr&quot;&gt;&lt;a href=&quot;mailto:org-openroadm-maintenance-testsignal@2020-0529.yang&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;org-openroadm-maintenance-testsignal@2020-0529.yang&lt;sup&gt;&lt;img class=&quot;rendericon&quot; src=&quot;https://jira.opendaylight.org/images/icons/mail_small.gif&quot; height=&quot;12&quot; width=&quot;13&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/sup&gt;&lt;/a&gt;&lt;/span&gt; with the leaf &#8216;testPattern&#8217; which is mandatory even if the when statement with the leaf &#8216;enabled&#8217; is false. &lt;/p&gt;</description>
                <environment></environment>
        <key id="37907">TRNSPRTPCE-773</key>
            <summary>Issue in yang files with mandatory leaf  and mandatory statement in List container</summary>
                <type id="10104" iconUrl="https://jira.opendaylight.org/secure/viewavatar?size=xsmall&amp;avatarId=10303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="1" iconUrl="https://jira.opendaylight.org/images/icons/priorities/blocker.svg">Highest</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="-1">Unassigned</assignee>
                                    <reporter username="cbetoule">Christophe BETOULE</reporter>
                        <labels>
                    </labels>
                <created>Tue, 16 Jan 2024 13:31:21 +0000</created>
                <updated>Thu, 18 Jan 2024 18:02:22 +0000</updated>
                                                            <fixVersion>PotassiumSR1</fixVersion>
                    <fixVersion>Calcium</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                    <issuelinks>
                            <issuelinktype id="10000">
                    <name>Blocks</name>
                                                                <inwardlinks description="is blocked by">
                                        <issuelink>
            <issuekey id="23108">YANGTOOLS-688</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="19700" name="BugWriteToDatastore.zip" size="68819" author="cbetoule" created="Tue, 16 Jan 2024 13:30:05 +0000"/>
                            <attachment id="19701" name="trace_MainBugWhenStatement.log" size="3890" author="cbetoule" created="Tue, 16 Jan 2024 13:29:58 +0000"/>
                    </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|i0477z:</customfieldvalue>

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