<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:31:28 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>[OPNFLWPLUG-63] No of active flows are not getting updated for the respective table in http://localhost:8080/restconf/datastore/opendaylight-inventory:nodes/node/openflow:1</title>
                <link>https://jira.opendaylight.org/browse/OPNFLWPLUG-63</link>
                <project id="10155" key="OPNFLWPLUG">OpenFlowPlugin</project>
                    <description>&lt;p&gt;Steps that I tried in my setup.&lt;/p&gt;

&lt;p&gt;Start the controller with -of13 option.&lt;br/&gt;
Start the mininet i.e., sudo mn --controller=remote,ip=127.0.0.1 --topo tree,2 --switch ovsk,protocols=OpenFlow13&lt;/p&gt;

&lt;p&gt;1. PUT &lt;a href=&quot;http://localhost:8080/restconf/datastore/opendaylight-inventory:nodes/node/openflow:1/table/248/flow/1&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://localhost:8080/restconf/datastore/opendaylight-inventory:nodes/node/openflow:1/table/248/flow/1&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&amp;gt;&lt;br/&gt;
&amp;lt;flow xmlns=&quot;urn:opendaylight:flow:inventory&quot;&amp;gt;&lt;br/&gt;
    &amp;lt;priority&amp;gt;2&amp;lt;/priority&amp;gt;&lt;br/&gt;
    &amp;lt;flow-name&amp;gt;Foo&amp;lt;/flow-name&amp;gt;&lt;br/&gt;
    &amp;lt;match&amp;gt;&lt;br/&gt;
        &amp;lt;ethernet-match&amp;gt;&lt;br/&gt;
            &amp;lt;ethernet-type&amp;gt;&lt;br/&gt;
                &amp;lt;type&amp;gt;2048&amp;lt;/type&amp;gt;&lt;br/&gt;
            &amp;lt;/ethernet-type&amp;gt;&lt;br/&gt;
        &amp;lt;/ethernet-match&amp;gt;&lt;br/&gt;
        &amp;lt;ipv4-destination&amp;gt;10.0.10.2/24&amp;lt;/ipv4-destination&amp;gt;&lt;br/&gt;
    &amp;lt;/match&amp;gt;&lt;br/&gt;
    &amp;lt;id&amp;gt;1&amp;lt;/id&amp;gt;&lt;br/&gt;
    &amp;lt;table_id&amp;gt;248&amp;lt;/table_id&amp;gt;&lt;br/&gt;
    &amp;lt;instructions&amp;gt;&lt;br/&gt;
        &amp;lt;instruction&amp;gt;&lt;br/&gt;
            &amp;lt;order&amp;gt;0&amp;lt;/order&amp;gt;&lt;br/&gt;
            &amp;lt;apply-actions&amp;gt;&lt;br/&gt;
                &amp;lt;action&amp;gt;&lt;br/&gt;
                   &amp;lt;order&amp;gt;0&amp;lt;/order&amp;gt;&lt;br/&gt;
                   &amp;lt;dec-nw-ttl/&amp;gt;&lt;br/&gt;
                &amp;lt;/action&amp;gt;&lt;br/&gt;
            &amp;lt;/apply-actions&amp;gt;&lt;br/&gt;
        &amp;lt;/instruction&amp;gt;&lt;br/&gt;
    &amp;lt;/instructions&amp;gt;&lt;br/&gt;
&amp;lt;/flow&amp;gt;&lt;/p&gt;


&lt;p&gt;2. GET &lt;a href=&quot;http://localhost:8080/restconf/datastore/opendaylight-inventory:nodes/node/openflow:1&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://localhost:8080/restconf/datastore/opendaylight-inventory:nodes/node/openflow:1&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Check the respective table (Here in this example, find &quot;flow-node-inventory:id&quot;: 248,and see the field active flows gets updated i.e, in this case, it should be &lt;br/&gt;
&quot;opendaylight-flow-table-statistics:active-flows&quot;: 1, whereas in the response it is still showing &quot;opendaylight-flow-table-statistics:active-flows&quot;: 0&lt;/p&gt;

&lt;p&gt;Repeat Step 2 and see if that works for now. If not proceed to the next step.&lt;/p&gt;

&lt;p&gt;3. GET &lt;a href=&quot;http://localhost:8080/restconf/datastore/opendaylight-inventory:nodes/node/openflow:1/table/248/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://localhost:8080/restconf/datastore/opendaylight-inventory:nodes/node/openflow:1/table/248/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;see the field active flows gets updated i.e, in this case, it should be &lt;br/&gt;
&quot;opendaylight-flow-table-statistics:active-flows&quot;: 1. If not, resend this request again and check the same. (Its actually works!)&lt;/p&gt;

&lt;p&gt;4. Again, repeat the step 2 and you will see it is updated as see the field active flows gets updated i.e, in this case, it should be &lt;br/&gt;
&quot;opendaylight-flow-table-statistics:active-flows&quot;: 1,&lt;/p&gt;

&lt;p&gt;Issue: Whenever you create a table, the active flows doesn&apos;t updated at  &lt;/p&gt;

&lt;p&gt;GET &lt;a href=&quot;http://localhost:8080/restconf/datastore/opendaylight-inventory:nodes/node/openflow:1&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://localhost:8080/restconf/datastore/opendaylight-inventory:nodes/node/openflow:1&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;until you send the below request&lt;/p&gt;

&lt;p&gt;GET &lt;a href=&quot;http://localhost:8080/restconf/datastore/opendaylight-inventory:nodes/node/openflow:1/table/248/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://localhost:8080/restconf/datastore/opendaylight-inventory:nodes/node/openflow:1/table/248/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Issue: Whenever you create a table, the active flows doesn&apos;t updated in&lt;br/&gt;
GET &lt;a href=&quot;http://localhost:8080/restconf/datastore/opendaylight-inventory:nodes/node/openflow:1&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://localhost:8080/restconf/datastore/opendaylight-inventory:nodes/node/openflow:1&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;until you send the below request&lt;br/&gt;
GET &lt;a href=&quot;http://localhost:8080/restconf/datastore/opendaylight-inventory:nodes/node/openflow:1/table/248/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://localhost:8080/restconf/datastore/opendaylight-inventory:nodes/node/openflow:1/table/248/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;-------------------------------------------------------------------------------&lt;/p&gt;

&lt;p&gt;Issue for OF10 is, the active flows doesn&apos;t gets updated even if you try to follow the above steps!&lt;/p&gt;

&lt;p&gt;Start the mininet i.e., sudo mn --controller=remote,ip=127.0.0.1 --topo tree,2&lt;/p&gt;

&lt;p&gt;1. PUT &lt;a href=&quot;http://localhost:8080/restconf/datastore/opendaylight-inventory:nodes/node/openflow:1/table/248/flow/1&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://localhost:8080/restconf/datastore/opendaylight-inventory:nodes/node/openflow:1/table/248/flow/1&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&amp;gt;&lt;br/&gt;
&amp;lt;flow xmlns=&quot;urn:opendaylight:flow:inventory&quot;&amp;gt;&lt;br/&gt;
    &amp;lt;priority&amp;gt;2&amp;lt;/priority&amp;gt;&lt;br/&gt;
    &amp;lt;flow-name&amp;gt;Foo&amp;lt;/flow-name&amp;gt;&lt;br/&gt;
    &amp;lt;match&amp;gt;&lt;br/&gt;
        &amp;lt;ethernet-match&amp;gt;&lt;br/&gt;
            &amp;lt;ethernet-type&amp;gt;&lt;br/&gt;
                &amp;lt;type&amp;gt;2048&amp;lt;/type&amp;gt;&lt;br/&gt;
            &amp;lt;/ethernet-type&amp;gt;&lt;br/&gt;
        &amp;lt;/ethernet-match&amp;gt;&lt;br/&gt;
        &amp;lt;ipv4-destination&amp;gt;10.0.10.2/24&amp;lt;/ipv4-destination&amp;gt;&lt;br/&gt;
    &amp;lt;/match&amp;gt;&lt;br/&gt;
    &amp;lt;id&amp;gt;1&amp;lt;/id&amp;gt;&lt;br/&gt;
    &amp;lt;table_id&amp;gt;250&amp;lt;/table_id&amp;gt;&lt;br/&gt;
    &amp;lt;instructions&amp;gt;&lt;br/&gt;
        &amp;lt;instruction&amp;gt;&lt;br/&gt;
            &amp;lt;order&amp;gt;0&amp;lt;/order&amp;gt;&lt;br/&gt;
            &amp;lt;apply-actions&amp;gt;&lt;br/&gt;
                &amp;lt;action&amp;gt;&lt;br/&gt;
                   &amp;lt;order&amp;gt;0&amp;lt;/order&amp;gt;&lt;br/&gt;
                   &amp;lt;dec-nw-ttl/&amp;gt;&lt;br/&gt;
                &amp;lt;/action&amp;gt;&lt;br/&gt;
            &amp;lt;/apply-actions&amp;gt;&lt;br/&gt;
        &amp;lt;/instruction&amp;gt;&lt;br/&gt;
    &amp;lt;/instructions&amp;gt;&lt;br/&gt;
&amp;lt;/flow&amp;gt;&lt;/p&gt;


&lt;p&gt;2. GET &lt;a href=&quot;http://localhost:8080/restconf/datastore/opendaylight-inventory:nodes/node/openflow:1&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://localhost:8080/restconf/datastore/opendaylight-inventory:nodes/node/openflow:1&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Check the respective table (Here in this example, find &quot;flow-node-inventory:id&quot;: 248,and see the field active flows gets updated i.e, in this case, it should be &lt;br/&gt;
&quot;opendaylight-flow-table-statistics:active-flows&quot;: 1, whereas in the response it is still showing &quot;opendaylight-flow-table-statistics:active-flows&quot;: 0&lt;/p&gt;

&lt;p&gt;Repeat Step 2 and see if that works for now. If not proceed to the next step.&lt;/p&gt;

&lt;p&gt;3. GET &lt;a href=&quot;http://localhost:8080/restconf/datastore/opendaylight-inventory:nodes/node/openflow:1/table/250/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://localhost:8080/restconf/datastore/opendaylight-inventory:nodes/node/openflow:1/table/250/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;see the field active flows gets updated i.e, in this case, it should be &lt;br/&gt;
&quot;opendaylight-flow-table-statistics:active-flows&quot;: 1. If not, resend this request again and check the same. (Its actually works!)&lt;/p&gt;

&lt;p&gt;4. Again, repeat the step 2 and here, you will NOT see it updated. See the field active flows gets updated or not i.e, in this case, it should be &lt;br/&gt;
&quot;opendaylight-flow-table-statistics:active-flows&quot;: 1,&lt;/p&gt;

&lt;p&gt;Let me know if you need any more information about this!&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
Madhusudhan&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: Windows&lt;br/&gt;
Platform: PC&lt;/p&gt;</environment>
        <key id="27331">OPNFLWPLUG-63</key>
            <summary>No of active flows are not getting updated for the respective table in http://localhost:8080/restconf/datastore/opendaylight-inventory:nodes/node/openflow:1</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="10003">Cannot Reproduce</resolution>
                                        <assignee username="Avishnoi">Anil Vishnoi</assignee>
                                    <reporter username="madhusudhan.opendaylight@yahoo.com">Madhusudhan Ananderi</reporter>
                        <labels>
                    </labels>
                <created>Thu, 30 Jan 2014 03:13:00 +0000</created>
                <updated>Mon, 27 Sep 2021 09:01:04 +0000</updated>
                            <resolved>Thu, 30 Jan 2014 07:21:39 +0000</resolved>
                                                                    <component>General</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="55348" author="vishnoianil@gmail.com" created="Thu, 30 Jan 2014 07:20:55 +0000"  >&lt;p&gt;Hi Madhusudhan,&lt;/p&gt;

&lt;p&gt;Aggregate flow statistics and Flow table statistics get updated after a time interval of 15 seconds. Statistics manager send these request at a periodic interval of 15 seconds. But it has some exceptional cases, like when you add flow, it will immediately send an individual flow statistics request to fetch the flow stats. Similarly we do this whenever any new node/group/meter/queue added. But aggregate flow statistics and flow table statistics request being send in every 15 seconds rather then on flow updates, because of performance reason.&lt;/p&gt;

&lt;p&gt;So if you wait for 15 seconds after adding flow, you will see flow stats even on following URI&lt;/p&gt;

&lt;p&gt;GET &lt;a href=&quot;http://localhost:8080/restconf/datastore/opendaylight-inventory:nodes/node/openflow:1&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://localhost:8080/restconf/datastore/opendaylight-inventory:nodes/node/openflow:1&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;because /node/openflow:1/table/248, is just one level deeper, but both the URI shows the same stats.&lt;/p&gt;

&lt;p&gt;In case of Openflow10 mininet, it only support one table, and that is table=0. So even if you are trying to install flow in table=250, it will get installed in table =0. That&apos;s the reason you are not seeing any update in flow statistics of table 250, but if you dump statistics of table=0, you will see the updates in count.&lt;/p&gt;

&lt;p&gt;Thanks&lt;br/&gt;
ANil&lt;/p&gt;</comment>
                    </comments>
                    <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>390</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=390]]></customfieldvalue>

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

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