<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:15:47 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-745] Device Notification </title>
                <link>https://jira.opendaylight.org/browse/NETCONF-745</link>
                <project id="10142" key="NETCONF">netconf</project>
                    <description>&lt;p&gt;&lt;b&gt;HTTP client should be able to get Device notification after subscription.&lt;/b&gt;&lt;br/&gt;
**&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Implementation Details -&lt;/b&gt;&lt;br/&gt;
prerequisite - Notification stream should be enable in device. .&lt;/p&gt;

&lt;p&gt;1. Added a new Device Notification Yang for Rest request which takes&lt;br/&gt;
input of Device mount point path&lt;br/&gt;
2. Added a DeviceNotificationListenerAdaptor which is get registered&lt;br/&gt;
in Device Notification server (on Mount point)&lt;br/&gt;
3. Created a dynamic Rest Notification SSE HTTP rest url (Response of 1st rest&lt;br/&gt;
call )&lt;br/&gt;
4. Updated Test tool for Notification&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Sample -&lt;/b&gt;&lt;br/&gt;
&lt;b&gt;1. Enable notification in device -&lt;/b&gt;&lt;br/&gt;
Post - /rests/operations/network-topology:network-topology/topology=topology-netconf/node=device_ios/yang-ext:mount/notifications:create-subscription&lt;br/&gt;
payload:&#160;&lt;br/&gt;
{&lt;br/&gt;
&#160; &quot;input&quot;: &lt;/p&gt;
{
&#160; &#160; &quot;stream&quot;: &quot;NETCONF&quot;
&#160; }
&lt;p&gt;}&lt;/p&gt;



&lt;p&gt;&lt;b&gt;2. Create functionality to add/ register a listener in Netconf module for particular mount point of device&lt;/b&gt;&#160;&lt;br/&gt;
&lt;b&gt;Rest call -&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;POST - /rests/operations/odl-device-notification:subscribe-device-notification&lt;br/&gt;
Payload -&lt;br/&gt;
{&lt;br/&gt;
&quot;input&quot;:&lt;/p&gt;

{ &quot;path&quot;:&quot;/network-topology:network-topology/topology[topology-id=&apos;topology-netconf&apos;]/node[node-id=&apos;device&apos;]&quot; }

&lt;p&gt;}&lt;/p&gt;

&lt;p&gt;Response -&lt;br/&gt;
{&lt;br/&gt;
&quot;odl-device-notification:output&quot;: &lt;/p&gt;
{
&quot;stream-path&quot;: &quot;http://localhost:8181/rests/notif/device_ios?notificationType=device&quot;
}
&lt;p&gt;}&lt;br/&gt;
&lt;b&gt;3. Add functionality for above rest call to start SSE Http connection to receive device notification for given mount point&lt;/b&gt;&#160;&lt;/p&gt;</description>
                <environment></environment>
        <key id="33607">NETCONF-745</key>
            <summary>Device Notification </summary>
                <type id="10103" iconUrl="https://jira.opendaylight.org/secure/viewavatar?size=xsmall&amp;avatarId=10311&amp;avatarType=issuetype">New Feature</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="10000">Done</resolution>
                                        <assignee username="nikhil.soni.lumina">Nikhil Soni</assignee>
                                    <reporter username="nikhil.soni.lumina">Nikhil Soni</reporter>
                        <labels>
                    </labels>
                <created>Sun, 29 Nov 2020 13:42:27 +0000</created>
                <updated>Mon, 6 Feb 2023 11:43:14 +0000</updated>
                            <resolved>Wed, 11 Jan 2023 00:41:08 +0000</resolved>
                                                    <fixVersion>5.0.0</fixVersion>
                                    <component>restconf-nb</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>5</watches>
                                                                                                                <comments>
                            <comment id="71109" author="JIRAUSER12934" created="Thu, 26 May 2022 04:16:26 +0000"  >&lt;p&gt;Observations - &lt;/p&gt;

&lt;p&gt;1. We can execute RPC create subscription from Restconf to Device which enables Notification in Device&lt;br/&gt;
2. After  1st point device ( odl netconf test tool) starts sending notifications &lt;br/&gt;
3. Notifications can be seen in ODL logs &lt;/p&gt;

&lt;p&gt;There is no restconf api where user can subscribe ( technically register notification  listener on device mount point) &lt;/p&gt;

&lt;p&gt;Solution- we may required to augment of exiting Yang and need to update restconf code to support this functionality  &lt;/p&gt;


</comment>
                            <comment id="71423" author="kowsalyachandru" created="Tue, 23 Aug 2022 09:24:46 +0000"  >&lt;p&gt;Hi Nikhil,&lt;/p&gt;

&lt;p&gt;I&apos;m testing this feature, after subscription I&apos;m getting the stream path.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://localhost:8181/rests/notif/network-topology:network-topology/topology=topology-netconf/node=testtool1/yang-ext:mount&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://localhost:8181/rests/notif/network-topology:network-topology/topology=topology-netconf/node=testtool1/yang-ext:mount&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;but I&apos;m not getting any notifications from the device. Did i miss any configuration. Please find the screenshot for the msg available in the sse http link.&lt;/p&gt;

&lt;p&gt;I have tested in both confd and testtool. In both I&apos;m getting the &quot;:&#160; ping&quot; msg only.&lt;/p&gt;

&lt;p&gt;Please help me to test this feature.&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;image-wrap&quot; style=&quot;&quot;&gt;&lt;a id=&quot;18005_thumb&quot; href=&quot;https://jira.opendaylight.org/secure/attachment/18005/18005_Screenshot+from+2022-08-22+22-43-17.png&quot; title=&quot;Screenshot from 2022-08-22 22-43-17.png&quot; file-preview-type=&quot;image&quot; file-preview-id=&quot;18005&quot; file-preview-title=&quot;Screenshot from 2022-08-22 22-43-17.png&quot;&gt;&lt;img src=&quot;https://jira.opendaylight.org/secure/thumbnail/18005/_thumb_18005.png&quot; style=&quot;border: 0px solid black&quot; role=&quot;presentation&quot;/&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10003">
                    <name>Relates</name>
                                            <outwardlinks description="relates to">
                                        <issuelink>
            <issuekey id="36243">NETCONF-907</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="36244">NETCONF-908</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="18005" name="Screenshot from 2022-08-22 22-43-17.png" size="104247" author="KowsalyaChandru" created="Tue, 23 Aug 2022 09:21:43 +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|i03wh3:</customfieldvalue>

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