<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 19:52:09 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>[CONTROLLER-89] RESTCONF implementation does not support depth parameter</title>
                <link>https://jira.opendaylight.org/browse/CONTROLLER-89</link>
                <project id="10113" key="CONTROLLER">controller</project>
                    <description>&lt;p&gt;&lt;a href=&quot;http://tools.ietf.org/html/draft-bierman-netconf-restconf-02#section-3.8.1&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://tools.ietf.org/html/draft-bierman-netconf-restconf-02#section-3.8.1&lt;/a&gt; does not seem to work.&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="24643">CONTROLLER-89</key>
            <summary>RESTCONF implementation does not support depth parameter</summary>
                <type id="10100" iconUrl="https://jira.opendaylight.org/secure/viewavatar?size=xsmall&amp;avatarId=10310&amp;avatarType=issuetype">Improvement</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="10000">Done</resolution>
                                        <assignee username="tpantelis">Tom Pantelis</assignee>
                                    <reporter username="rovarga">Robert Varga</reporter>
                        <labels>
                    </labels>
                <created>Wed, 11 Dec 2013 15:56:33 +0000</created>
                <updated>Tue, 25 Jul 2023 08:22:54 +0000</updated>
                            <resolved>Wed, 18 Jun 2014 12:34:52 +0000</resolved>
                                                                    <component>restconf</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>8</watches>
                                                                                                                <comments>
                            <comment id="47457" author="rao.shweta@tcs.com" created="Thu, 16 Jan 2014 06:10:07 +0000"  >&lt;p&gt;Please provide the details to replicate the bug and the problem being faced .&lt;/p&gt;

&lt;p&gt;Thankyou&lt;/p&gt;</comment>
                            <comment id="47458" author="priyanka.chopra@tcs.com" created="Thu, 16 Jan 2014 11:58:48 +0000"  >&lt;p&gt;Please share the process or setup you gone through where in you are facing problem like steps you follow to get depth or nest level.&lt;/p&gt;

&lt;p&gt;Thankyou&lt;/p&gt;</comment>
                            <comment id="47459" author="rao.shweta@tcs.com" created="Tue, 21 Jan 2014 10:55:58 +0000"  >&lt;p&gt;As per as the &lt;a href=&quot;http://tools.ietf.org/html/draft-bierman-netconf-restconf-02#section-3.8.1&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://tools.ietf.org/html/draft-bierman-netconf-restconf-02#section-3.8.1&lt;/a&gt; link says,&lt;/p&gt;

&lt;p&gt;I run my controller from eclipse and produces topology through mininet.I could see the topology on &lt;a href=&quot;http://localhost:8080/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://localhost:8080/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;1.) I tried creating new data resources by POST on RESTclient &lt;/p&gt;

&lt;p&gt; POST &lt;a href=&quot;http://localhost:8080/restconf/config&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://localhost:8080/restconf/config&lt;/a&gt; HTTP/1.1&lt;br/&gt;
      Host: example.com&lt;br/&gt;
      Content-Type: application/yang.data+json&lt;br/&gt;
Body: &lt;/p&gt;
{ &quot;example-jukebox:jukebox&quot; : [null] }

&lt;p&gt;but i am getting a error on Restclient as follows :&lt;br/&gt;
type Status report&lt;br/&gt;
message Not Found&lt;br/&gt;
description The requested resource is not available.&lt;/p&gt;

&lt;p&gt;2.) Also i tried to add flows through the CLI :&lt;/p&gt;

&lt;p&gt; curl -u admin:admin -H &apos;Content-type: application/json&apos; -X PUT -d &apos;{&quot;installInHw&quot;:&quot;true&quot;, &quot;name&quot;:&quot;flow1&quot;, &quot;node&quot;: &lt;/p&gt;
{&quot;id&quot;:&quot;00:00:00:00:00:00:00:02&quot;, &quot;type&quot;:&quot;OF&quot;}
&lt;p&gt;, &quot;ingressPort&quot;:&quot;2&quot;, &quot;etherType&quot;: &quot;0x800&quot;, &quot;protocol&quot;: &quot;6&quot;, &quot;tpDst&quot;: &quot;80&quot;, &quot;priority&quot;:&quot;65535&quot;,&quot;actions&quot;:&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;quot;DROP&amp;quot;&amp;#93;&lt;/span&gt;}&apos; &apos;http://localhost:8080/controller/nb/v2/flowprogrammer/default/node/OF/00:00:00:00:00:00:00:02/staticFlow/flow1&apos;&lt;/p&gt;

&lt;p&gt;from which i was able to add flows but when i try see the flows on &lt;br/&gt;
&lt;a href=&quot;http://192.168.1.16:8080/restconf/config/opendaylight-inventory:nodes/node/openflow:1/table/0/flow/1&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://192.168.1.16:8080/restconf/config/opendaylight-inventory:nodes/node/openflow:1/table/0/flow/1&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;It gives a reply : No data exists.&lt;/p&gt;

&lt;p&gt;3.) I even tried to add flows on the link given:&lt;br/&gt;
 curl -u admin:admin -H &apos;Content-type: application/json&apos; -X PUT -d &apos;{&quot;installInHw&quot;:&quot;true&quot;, &quot;name&quot;:&quot;flow1&quot;, &quot;node&quot;: &lt;/p&gt;
{&quot;id&quot;:&quot;00:00:00:00:00:00:00:02&quot;, &quot;type&quot;:&quot;OF&quot;}
&lt;p&gt;, &quot;ingressPort&quot;:&quot;2&quot;, &quot;etherType&quot;: &quot;0x800&quot;, &quot;protocol&quot;: &quot;6&quot;, &quot;tpDst&quot;: &quot;80&quot;, &quot;priority&quot;:&quot;65535&quot;,&quot;actions&quot;:&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;quot;DROP&amp;quot;&amp;#93;&lt;/span&gt;}&apos; &apos;http://192.168.1.16:8080/restconf/config/opendaylight-inventory:nodes/node/openflow:1/table/0/flow/1&apos;&lt;/p&gt;

&lt;p&gt;It gives error not allowing the flows to be added.&lt;/p&gt;


&lt;p&gt;I am not able to add new data resource on  &lt;a href=&quot;http://192.168.1.16:8080/restconf/config/opendaylight-inventory:nodes/node/openflow:1/table/0/flow/1&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://192.168.1.16:8080/restconf/config/opendaylight-inventory:nodes/node/openflow:1/table/0/flow/1&lt;/a&gt; path due to which GET,POST,PUT method is showing error in Restclient.&lt;/p&gt;

&lt;p&gt;So please share the steps you follow. Also did adding openflow plugin can help in retrieving the URI??&lt;/p&gt;</comment>
                            <comment id="47460" author="rao.shweta@tcs.com" created="Wed, 22 Jan 2014 11:57:39 +0000"  >&lt;p&gt;I am not able to replicate the issue given, so i am assigning the bug back to controller-bugs@lists.opendaylight.org&lt;/p&gt;</comment>
                            <comment id="47461" author="jgloncak" created="Fri, 14 Feb 2014 12:02:05 +0000"  >&lt;p&gt;depth parameter support was added&lt;br/&gt;
Change-Id: I44d99f9886e3837a1bb13eda84aec3c4cc6b21ae&lt;/p&gt;</comment>
                            <comment id="47462" author="devin.avery@brocade.com" created="Thu, 29 May 2014 13:14:20 +0000"  >&lt;p&gt;Note - looks like the gerrit mentioned was never merged - attempting to follow up and get that functionality merged.&lt;/p&gt;</comment>
                            <comment id="47463" author="tony.tkacik@gmail.com" created="Fri, 30 May 2014 08:09:09 +0000"  >&lt;p&gt;Original commit was still using xtend and was not fully clear. Restconf implementation has changed since then, and maybe this will require additional work.&lt;/p&gt;</comment>
                            <comment id="47464" author="devin.avery@brocade.com" created="Fri, 30 May 2014 12:35:15 +0000"  >&lt;p&gt;Looks like this bug as of right now is not assigned out to anyone, so we should assume it is open for work. The code changes in the work item definitely need to be changed and merged with master. That said, there is a clear starting point for who ever wants to take this on.&lt;/p&gt;</comment>
                            <comment id="47465" author="tpantelis" created="Tue, 3 Jun 2014 15:58:46 +0000"  >&lt;p&gt;The definition of depth in Draft 2 of the spec is a little confusing and non-intuitive. It states the &lt;/p&gt;

&lt;p&gt;   &quot;&quot;depth&quot; parameter is used to specify the number of nest levels&lt;br/&gt;
    returned in a response for a GET method.  A nest-level consists of&lt;br/&gt;
    the target resource and any child nodes which are contained within&lt;br/&gt;
    the target resource node&quot;&lt;/p&gt;

&lt;p&gt;I think people naturally equate depth to tree levels and not nested levels. &lt;/p&gt;

&lt;p&gt;It also states:&lt;/p&gt;

&lt;p&gt;   &quot;the server will include all sub-resources within a&lt;br/&gt;
    retrieved resource, which have the same resource type as the&lt;br/&gt;
    requested resource type. Only only level of sub-resources with a&lt;br/&gt;
    different media type than the target resource will be returned.&quot;&lt;/p&gt;

&lt;p&gt;I find this a bit confusing even without the grammar error.&lt;/p&gt;

&lt;p&gt;Draft 3 re-defines the depth param :&lt;/p&gt;

&lt;p&gt;   &quot;The &quot;depth&quot; parameter is used to limit the number of levels of sub-&lt;br/&gt;
    resources that are returned by the server for a GET method request.&quot;&lt;/p&gt;

&lt;p&gt;So a depth of 1 retrieves just the target resource and no children. This is a way to determine if the resource exists. A depth of 2 retrieves the target resource and just its direct children - a child container would be empty.&lt;/p&gt;

&lt;p&gt;Also Draft 3 doesn&apos;t put any confusing restrictions on resource type.&lt;/p&gt;

&lt;p&gt;I think this is more intuitive so I propose we implement depth as defined in  Draft 3.&lt;/p&gt;</comment>
                            <comment id="47466" author="jgloncak" created="Fri, 13 Jun 2014 08:08:10 +0000"  >&lt;p&gt;Patch set 4 under &lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/5325/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/5325/&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10000">
                    <name>Blocks</name>
                                            <outwardlinks description="blocks">
                                        <issuelink>
            <issuekey id="24841">CONTROLLER-287</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>225</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=225]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10202" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Priority</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10304"><![CDATA[Low]]></customfieldvalue>

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

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