<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:16:39 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-1090] Swagger document for a specific module in a specific mounted device not showing the name of the device</title>
                <link>https://jira.opendaylight.org/browse/NETCONF-1090</link>
                <project id="10142" key="NETCONF">netconf</project>
                    <description>&lt;p&gt;After connecting a device with a name of `device-17830` and then requesting only swagger document for a specific model, the summary of the paths is incorrect/incomplete when it does not show the name of the device, which is different if we request all the models.&lt;/p&gt;

&lt;p&gt;Steps to reproduce:&lt;br/&gt;
 1. prepare schemas in directory&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;
~/test-schemas&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt; 2. start karaf&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;
netconf$ karaf/target/assembly/bin/karaf clean&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt; 3. run in karaf:&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;
feature:install odl-netconf-topology odl-restconf-all&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt; 4. start netconf testool&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;
netconf/netconf/tools/netconf-testtool/target$ java -jar netconf-testtool-7.0.0-SNAPSHOT-executable.jar --device-count 1 --debug &lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt; --schemas-dir ~/test-schemas&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt; 5. connect a device&lt;br/&gt;
 6. in browser, go to&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;
http:&lt;span class=&quot;code-comment&quot;&gt;//localhost:8181/openapi/explorer/index.html&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;you should see generated swagger document&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt; 7. go to&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;
http:&lt;span class=&quot;code-comment&quot;&gt;//localhost:8181/openapi/api/v3/mounts/1&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;you should see swagger document for all modules&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt; 8. check summary of random path (get /rests/data/network-topology:network-topology/topology=topology-netconf/node=device-17830/yang-ext:mount/toaster:toaster) -&amp;gt; &lt;b&gt;&quot;GET - device-17830 - toaster - toaster&quot;&lt;/b&gt;&lt;br/&gt;
 9. &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;
http:&lt;span class=&quot;code-comment&quot;&gt;//localhost:8181/openapi/api/v3/mounts/1/toaster(2009-11-20)&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;if you have toaster module with that revision you should see document only for that module&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt; 10. check summary of path (get /rests/data/network-topology:network-topology/topology=topology-netconf/node=device-17830/yang-ext:mount/toaster:toaster) -&amp;gt; &lt;b&gt;&quot;GET - toaster - toaster&quot;&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;Similar problem with `tags`, where the value is &lt;b&gt;&quot;mounted device-17830 toaster&quot;&lt;/b&gt; when requesting all modules (correct output), but is &lt;b&gt;&quot;controller toaster&quot;&lt;/b&gt; when requesting only the specific module&lt;/p&gt;</description>
                <environment></environment>
        <key id="37115">NETCONF-1090</key>
            <summary>Swagger document for a specific module in a specific mounted device not showing the name of the device</summary>
                <type id="10104" iconUrl="https://jira.opendaylight.org/secure/viewavatar?size=xsmall&amp;avatarId=10303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="4" iconUrl="https://jira.opendaylight.org/images/icons/priorities/minor.svg">Low</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="simon0pt">&#352;imon Uku&#353;</assignee>
                                    <reporter username="simon0pt">&#352;imon Uku&#353;</reporter>
                        <labels>
                            <label>pt</label>
                    </labels>
                <created>Mon, 17 Jul 2023 13:30:17 +0000</created>
                <updated>Fri, 11 Aug 2023 11:14:07 +0000</updated>
                            <resolved>Fri, 11 Aug 2023 11:14:07 +0000</resolved>
                                                    <fixVersion>7.0.0</fixVersion>
                    <fixVersion>4.0.9</fixVersion>
                    <fixVersion>5.0.8</fixVersion>
                    <fixVersion>6.0.2</fixVersion>
                                    <component>restconf-openapi</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|i045rz:</customfieldvalue>

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