<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:14:31 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>[NETCONF-240] Data augmentation doesn&apos;t work with notifications</title>
                <link>https://jira.opendaylight.org/browse/NETCONF-240</link>
                <project id="10142" key="NETCONF">netconf</project>
                    <description>&lt;p&gt;Observed an interesting situation with notifications.&lt;/p&gt;

&lt;p&gt;when I have data that got augmented (by some other yang file),and use the base data for notification, it doesn&apos;t work.&lt;/p&gt;

&lt;p&gt;I think as per RFC (&lt;a href=&quot;https://tools.ietf.org/pdf/rfc6020.pdf&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://tools.ietf.org/pdf/rfc6020.pdf&lt;/a&gt;) it is supposed to work.&lt;/p&gt;


&lt;p&gt;I keep getting the following error(and similar ones) during Delivery.&lt;/p&gt;

&lt;p&gt;2016-07-27 13:57:06,788 | ERROR | pool-28-thread-1 | DOMNotificationRouterEvent       | 115 - org.opendaylight.controller.sal-broker-impl - 1.3.1.Beryllium-SR1 | Delivery of notification org.opendaylight.controller.md.sal.binding.impl.LazySerializedDOMNotification@5baeac9 caused an error in listener org.opendaylight.netconf.sal.streams.listeners.NotificationListenerAdapter@c087ae7&lt;br/&gt;
org.opendaylight.yangtools.binding.data.codec.impl.IncorrectNestingException:  Child interface org.opendaylight.yang.gen.v1.urn.infinera.params.xml.ns.yang.infn.otn.service.rev160425.TunnelUpdateTimeAugment is not valid child.&lt;br/&gt;
	at org.opendaylight.yangtools.binding.data.codec.impl.IncorrectNestingException.create(IncorrectNestingException.java:28)&lt;br/&gt;
	at org.opendaylight.yangtools.binding.data.codec.impl.DataContainerCodecContext.childNonNull(DataContainerCodecContext.java:180)&lt;span class=&quot;error&quot;&gt;&amp;#91;66:org.opendaylight.mdsal.binding-dom-codec:0.8.1.Beryllium-SR1&amp;#93;&lt;/span&gt;&lt;br/&gt;
	at o&lt;/p&gt;

&lt;p&gt;I will update the bug with more details&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="21253">NETCONF-240</key>
            <summary>Data augmentation doesn&apos;t work with notifications</summary>
                <type id="10104" iconUrl="https://jira.opendaylight.org/secure/viewavatar?size=xsmall&amp;avatarId=10303&amp;avatarType=issuetype">Bug</type>
                                                <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="10002">Duplicate</resolution>
                                        <assignee username="jakubtoth-0">Jakub Toth</assignee>
                                    <reporter username="hari@harinath.in">Harinath Mallepally</reporter>
                        <labels>
                    </labels>
                <created>Thu, 28 Jul 2016 22:30:53 +0000</created>
                <updated>Fri, 15 Mar 2019 22:22:27 +0000</updated>
                            <resolved>Mon, 28 Nov 2016 12:37:36 +0000</resolved>
                                                                    <component>restconf-nb</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="39541" author="hari@harinath.in" created="Mon, 1 Aug 2016 21:11:53 +0000"  >&lt;p&gt;Additional inputs&lt;/p&gt;

&lt;p&gt;The we I could make it work is in all yang files that I used for data augmentation, I duplicated it to augment notification data too.&lt;/p&gt;

&lt;p&gt;example:&lt;/p&gt;


&lt;p&gt;    augment &quot;/te:te/te:tunnels/te:tunnel/te:config/te:endpoint&quot; &lt;/p&gt;
{
        description
                &quot;Augment with additional parameters required for OTN service.&quot;;
        ext:augment-identifier otn-tunnel-endpoint-config-augment;
        uses otn-tunnel-endpoint;
    }


&lt;p&gt;     augment &quot;/te:tunnel-lifecycle-event/te:config/te:endpoint&quot; &lt;/p&gt;
{
        description
                &quot;Augment the tunnel lifecycle event with additional parameters required for OTN service.&quot;;
        ext:augment-identifier tunnel-lifecycle-event-otn-tunnel-endpoint-config-augment;
        uses otn-tunnel-endpoint;
    }





&lt;p&gt;Then I could make it work, but this is error prone right?  I think we should have the augmented data be processed through notification without any explicit augmentation again, as this will result in duplicate code (mostly) and if missed, it will cause notifications delivery to fail.&lt;/p&gt;</comment>
                            <comment id="39542" author="martin.ciglan" created="Mon, 17 Oct 2016 12:44:36 +0000"  >&lt;p&gt;1. based on discussion with Jakub Toth, moving this bug to Restconf.&lt;br/&gt;
He will come back with tests if this stays as restconf bug or we should&lt;br/&gt;
move it to mdsal or yangtools (based on his results).&lt;br/&gt;
2. since latest beryllium SR4 code freeze happened yesterday,&lt;br/&gt;
this should be fixed for Boron onwards.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10000">
                    <name>Blocks</name>
                                                                <inwardlinks description="is blocked by">
                                        <issuelink>
            <issuekey id="21258">NETCONF-245</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10002">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="21258">NETCONF-245</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_10208" key="com.atlassian.jira.plugin.system.customfieldtypes:textfield">
                        <customfieldname>External issue ID</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>6301</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10201" key="com.atlassian.jira.plugin.system.customfieldtypes:url">
                        <customfieldname>External issue URL</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[https://bugs.opendaylight.org/show_bug.cgi?id=6301]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10206" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Issue Type</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10300"><![CDATA[Bug]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10204" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>ODL SR Target Milestone</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10335"><![CDATA[Boron-2]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                    <customfield id="customfield_10000" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i01xbj:</customfieldvalue>

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