<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:31:27 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-52] Flow statistics in RESTCONF Operational space not deleted after deleting a flow on OF13 switch, Missing Flow statistics in RESTCONF Operational space after adding a flow on OF10 switch</title>
                <link>https://jira.opendaylight.org/browse/OPNFLWPLUG-52</link>
                <project id="10155" key="OPNFLWPLUG">OpenFlowPlugin</project>
                    <description>&lt;p&gt;We configure this:&lt;/p&gt;

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

&lt;p&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.1/32&amp;lt;/ipv4-destination&amp;gt;&lt;br/&gt;
&amp;lt;/match&amp;gt;&lt;br/&gt;
&amp;lt;id&amp;gt;139&amp;lt;/id&amp;gt;&lt;br/&gt;
&amp;lt;table_id&amp;gt;2&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;In the operational we do not see the flow:&lt;/p&gt;

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

&lt;p&gt;{&lt;br/&gt;
  &quot;flow-node-inventory:table&quot;: [&lt;br/&gt;
    {&lt;br/&gt;
      &quot;opendaylight-flow-statistics:aggregate-flow-statistics&quot;: &lt;/p&gt;
{
        &quot;opendaylight-flow-statistics:byte-count&quot;: 0,
        &quot;opendaylight-flow-statistics:packet-count&quot;: 0,
        &quot;opendaylight-flow-statistics:flow-count&quot;: 0
      }
&lt;p&gt;,&lt;br/&gt;
      &quot;flow-node-inventory:id&quot;: 2,&lt;br/&gt;
      &quot;opendaylight-flow-table-statistics:flow-table-statistics&quot;: &lt;/p&gt;
{
        &quot;opendaylight-flow-table-statistics:active-flows&quot;: 0,
        &quot;opendaylight-flow-table-statistics:packets-looked-up&quot;: 0,
        &quot;opendaylight-flow-table-statistics:packets-matched&quot;: 0
      }
&lt;p&gt;    }&lt;br/&gt;
  ]&lt;br/&gt;
}&lt;/p&gt;

&lt;p&gt;However in the switch, we see a flow with actions=drop:&lt;/p&gt;

&lt;p&gt;odluser@odl-system-test:~/integration\&amp;gt; sudo ovs-ofctl -O OpenFlow10 dump-flows s1&lt;br/&gt;
NXST_FLOW reply (xid=0x4):&lt;br/&gt;
cookie=0x0, duration=7.633s, table=0, n_packets=0, n_bytes=0, idle_timeout=300, hard_timeout=600, idle_age=7, priority=2,ip,nw_dst=10.0.10.1 actions=drop&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: Windows&lt;br/&gt;
Platform: PC&lt;/p&gt;</environment>
        <key id="27320">OPNFLWPLUG-52</key>
            <summary>Flow statistics in RESTCONF Operational space not deleted after deleting a flow on OF13 switch, Missing Flow statistics in RESTCONF Operational space after adding a flow on OF10 switch</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="Avishnoi">Anil Vishnoi</assignee>
                                    <reporter username="madhusudhan.opendaylight@yahoo.com">Madhusudhan Ananderi</reporter>
                        <labels>
                    </labels>
                <created>Sat, 25 Jan 2014 01:55:11 +0000</created>
                <updated>Mon, 27 Sep 2021 09:01:03 +0000</updated>
                            <resolved>Thu, 30 Jan 2014 08:20:01 +0000</resolved>
                                                                    <component>General</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="55283" author="vishnoianil@gmail.com" created="Sat, 25 Jan 2014 16:32:13 +0000"  >&lt;p&gt;Hi MAdhusudhar,&lt;/p&gt;

&lt;p&gt;I pushed fix for this issue recently through following gerrits&lt;/p&gt;

&lt;p&gt;Controller repo : &lt;a href=&quot;http://git.opendaylight.org/gerrit/4766&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://git.opendaylight.org/gerrit/4766&lt;/a&gt;&lt;br/&gt;
Plugin : &lt;a href=&quot;http://git.opendaylight.org/gerrit/4765&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://git.opendaylight.org/gerrit/4765&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;and both of these gerrits are merged now.&lt;/p&gt;

&lt;p&gt;Thanks&lt;br/&gt;
Anil&lt;/p&gt;</comment>
                            <comment id="55284" author="madhusudhan.opendaylight@yahoo.com" created="Mon, 27 Jan 2014 19:15:41 +0000"  >&lt;p&gt;ANil,&lt;/p&gt;

&lt;p&gt;I have verified this issue. It found to be working fine for me.&lt;/p&gt;

&lt;p&gt;PUT &lt;a href=&quot;http://127.0.0.1:8080/restconf/config/opendaylight-inventory:nodes/node/openflow:1/table/2/flow/139&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://127.0.0.1:8080/restconf/config/opendaylight-inventory:nodes/node/openflow:1/table/2/flow/139&lt;/a&gt; (GOOD)&lt;/p&gt;

&lt;p&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.1/32&amp;lt;/ipv4-destination&amp;gt;&lt;br/&gt;
&amp;lt;/match&amp;gt;&lt;br/&gt;
&amp;lt;id&amp;gt;139&amp;lt;/id&amp;gt;&lt;br/&gt;
&amp;lt;table_id&amp;gt;2&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;In the switch, I see a flow with actions=&apos;dec_ttl&apos; (GOOD)&lt;/p&gt;

&lt;p&gt;sudo ovs-ofctl -O OpenFlow13 dump-flows s1&lt;br/&gt;
OFPST_FLOW reply (OF1.3) (xid=0x2):&lt;br/&gt;
 cookie=0x0, duration=5.677s, table=2, n_packets=0, n_bytes=0, idle_timeout=300, hard_timeout=600, send_flow_rem priority=2,ip,nw_dst=10.0.30.1 actions=dec_ttl&lt;/p&gt;

&lt;p&gt;When I place DELETE &lt;a href=&quot;http://127.0.0.1:8080/restconf/config/opendaylight-inventory:nodes/node/openflow:1/table/2/flow/139&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://127.0.0.1:8080/restconf/config/opendaylight-inventory:nodes/node/openflow:1/table/2/flow/139&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I still see the flow stats in Operational space i.e&lt;/p&gt;

&lt;p&gt;GET &lt;a href=&quot;http://127.0.0.1:8080/restconf/operational/opendaylight-inventory:nodes/node/openflow:1/table/2&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://127.0.0.1:8080/restconf/operational/opendaylight-inventory:nodes/node/openflow:1/table/2&lt;/a&gt;     (BAD)&lt;/p&gt;

&lt;p&gt;&amp;lt;table&amp;gt;&lt;br/&gt;
&amp;lt;aggregate-flow-statistics&amp;gt;&lt;br/&gt;
&amp;lt;byte-count&amp;gt;0&amp;lt;/byte-count&amp;gt;&lt;br/&gt;
&amp;lt;packet-count&amp;gt;0&amp;lt;/packet-count&amp;gt;&lt;br/&gt;
&amp;lt;flow-count&amp;gt;0&amp;lt;/flow-count&amp;gt;&lt;br/&gt;
&amp;lt;/aggregate-flow-statistics&amp;gt;&lt;br/&gt;
&amp;lt;id&amp;gt;2&amp;lt;/id&amp;gt;&lt;br/&gt;
&amp;lt;flow-table-statistics&amp;gt;&lt;br/&gt;
&amp;lt;packets-looked-up&amp;gt;0&amp;lt;/packets-looked-up&amp;gt;&lt;br/&gt;
&amp;lt;active-flows&amp;gt;0&amp;lt;/active-flows&amp;gt;&lt;br/&gt;
&amp;lt;packets-matched&amp;gt;0&amp;lt;/packets-matched&amp;gt;&lt;br/&gt;
&amp;lt;/flow-table-statistics&amp;gt;&lt;br/&gt;
&amp;lt;flow&amp;gt;&lt;br/&gt;
&amp;lt;flow-statistics&amp;gt;&lt;br/&gt;
&amp;lt;byte-count&amp;gt;0&amp;lt;/byte-count&amp;gt;&lt;br/&gt;
&amp;lt;cookie&amp;gt;0&amp;lt;/cookie&amp;gt;&lt;br/&gt;
&amp;lt;instructions/&amp;gt;&lt;br/&gt;
&amp;lt;idle-timeout&amp;gt;300&amp;lt;/idle-timeout&amp;gt;&lt;br/&gt;
&amp;lt;hard-timeout&amp;gt;600&amp;lt;/hard-timeout&amp;gt;&lt;br/&gt;
&amp;lt;duration&amp;gt;&lt;br/&gt;
&amp;lt;nanosecond&amp;gt;408000000&amp;lt;/nanosecond&amp;gt;&lt;br/&gt;
&amp;lt;second&amp;gt;66&amp;lt;/second&amp;gt;&lt;br/&gt;
&amp;lt;/duration&amp;gt;&lt;br/&gt;
&amp;lt;flags&amp;gt;SEND_FLOW_REM&amp;lt;/flags&amp;gt;&lt;br/&gt;
&amp;lt;match&amp;gt;&lt;br/&gt;
&amp;lt;ipv4-destination&amp;gt;10.0.10.1&amp;lt;/ipv4-destination&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;/match&amp;gt;&lt;br/&gt;
&amp;lt;packet-count&amp;gt;0&amp;lt;/packet-count&amp;gt;&lt;br/&gt;
&amp;lt;priority&amp;gt;2&amp;lt;/priority&amp;gt;&lt;br/&gt;
&amp;lt;table_id&amp;gt;2&amp;lt;/table_id&amp;gt;&lt;br/&gt;
&amp;lt;/flow-statistics&amp;gt;&lt;br/&gt;
&amp;lt;id&amp;gt;1201&amp;lt;/id&amp;gt;&lt;br/&gt;
&amp;lt;/flow&amp;gt;&lt;br/&gt;
&amp;lt;flow&amp;gt;&lt;br/&gt;
&amp;lt;flow-statistics&amp;gt;&lt;br/&gt;
&amp;lt;byte-count&amp;gt;0&amp;lt;/byte-count&amp;gt;&lt;br/&gt;
&amp;lt;cookie&amp;gt;0&amp;lt;/cookie&amp;gt;&lt;br/&gt;
&amp;lt;instructions/&amp;gt;&lt;br/&gt;
&amp;lt;idle-timeout&amp;gt;300&amp;lt;/idle-timeout&amp;gt;&lt;br/&gt;
&amp;lt;hard-timeout&amp;gt;600&amp;lt;/hard-timeout&amp;gt;&lt;br/&gt;
&amp;lt;duration&amp;gt;&lt;br/&gt;
&amp;lt;nanosecond&amp;gt;694000000&amp;lt;/nanosecond&amp;gt;&lt;br/&gt;
&amp;lt;second&amp;gt;74&amp;lt;/second&amp;gt;&lt;br/&gt;
&amp;lt;/duration&amp;gt;&lt;br/&gt;
&amp;lt;flags&amp;gt;SEND_FLOW_REM&amp;lt;/flags&amp;gt;&lt;br/&gt;
&amp;lt;match&amp;gt;&lt;br/&gt;
&amp;lt;ipv4-destination&amp;gt;10.0.30.1&amp;lt;/ipv4-destination&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;/match&amp;gt;&lt;br/&gt;
&amp;lt;packet-count&amp;gt;0&amp;lt;/packet-count&amp;gt;&lt;br/&gt;
&amp;lt;priority&amp;gt;2&amp;lt;/priority&amp;gt;&lt;br/&gt;
&amp;lt;table_id&amp;gt;2&amp;lt;/table_id&amp;gt;&lt;br/&gt;
&amp;lt;/flow-statistics&amp;gt;&lt;br/&gt;
&amp;lt;id&amp;gt;1202&amp;lt;/id&amp;gt;&lt;br/&gt;
&amp;lt;/flow&amp;gt;&lt;br/&gt;
&amp;lt;/table&amp;gt;&lt;/p&gt;

&lt;p&gt;I don&apos;t see the flow stats in Config space after DELETE request. (GOOD)&lt;/p&gt;

&lt;p&gt;Flow stats in the switch is verified. It is deleted. (GOOD)&lt;/p&gt;

&lt;p&gt;sudo ovs-ofctl -O OpenFlow13 dump-flows s1&lt;br/&gt;
OFPST_FLOW reply (OF1.3) (xid=0x2):&lt;/p&gt;</comment>
                            <comment id="55285" author="madhusudhan.opendaylight@yahoo.com" created="Mon, 27 Jan 2014 19:19:31 +0000"  >&lt;p&gt;PLEASE LOOK INTO MY PREVIOUS COMMENT&lt;/p&gt;</comment>
                            <comment id="55286" author="madhusudhan.opendaylight@yahoo.com" created="Mon, 27 Jan 2014 19:24:46 +0000"  >&lt;p&gt;I had a check on OF10 switch:&lt;/p&gt;

&lt;p&gt;Before that, I downloaded the latest controller at &lt;/p&gt;

&lt;p&gt;wget &lt;a href=&quot;https://jenkins.opendaylight.org/integration/job/integration-project-centralized-integration/lastSuccessfulBuild/artifact/distributions/base/target/distributions-base-0.1.0-SNAPSHOT-osgipackage.zip&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://jenkins.opendaylight.org/integration/job/integration-project-centralized-integration/lastSuccessfulBuild/artifact/distributions/base/target/distributions-base-0.1.0-SNAPSHOT-osgipackage.zip&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We still seeing the same issue as reported earlier.&lt;/p&gt;

&lt;p&gt;We configure this:&lt;/p&gt;

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

&lt;p&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.1/32&amp;lt;/ipv4-destination&amp;gt;&lt;br/&gt;
&amp;lt;/match&amp;gt;&lt;br/&gt;
&amp;lt;id&amp;gt;139&amp;lt;/id&amp;gt;&lt;br/&gt;
&amp;lt;table_id&amp;gt;2&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;In the operational we do not see the flow:&lt;/p&gt;

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

&lt;p&gt;{&lt;br/&gt;
  &quot;flow-node-inventory:table&quot;: [&lt;br/&gt;
    {&lt;br/&gt;
      &quot;opendaylight-flow-statistics:aggregate-flow-statistics&quot;: &lt;/p&gt;
{
        &quot;opendaylight-flow-statistics:byte-count&quot;: 0,
        &quot;opendaylight-flow-statistics:packet-count&quot;: 0,
        &quot;opendaylight-flow-statistics:flow-count&quot;: 0
      }
&lt;p&gt;,&lt;br/&gt;
      &quot;flow-node-inventory:id&quot;: 2,&lt;br/&gt;
      &quot;opendaylight-flow-table-statistics:flow-table-statistics&quot;: &lt;/p&gt;
{
        &quot;opendaylight-flow-table-statistics:active-flows&quot;: 0,
        &quot;opendaylight-flow-table-statistics:packets-looked-up&quot;: 0,
        &quot;opendaylight-flow-table-statistics:packets-matched&quot;: 0
      }
&lt;p&gt;    }&lt;br/&gt;
  ]&lt;br/&gt;
}&lt;/p&gt;

&lt;p&gt;However in the switch, we see a flow with actions=drop:&lt;/p&gt;

&lt;p&gt;odluser@odl-system-test:~/integration\&amp;gt; sudo ovs-ofctl -O OpenFlow10 dump-flows s1&lt;br/&gt;
NXST_FLOW reply (xid=0x4):&lt;br/&gt;
cookie=0x0, duration=7.633s, table=0, n_packets=0, n_bytes=0, idle_timeout=300, hard_timeout=600, idle_age=7, priority=2,ip,nw_dst=10.0.10.1 actions=drop&lt;/p&gt;

&lt;p&gt;Please let me know the steps on how this got resolved in your case.&lt;/p&gt;

&lt;p&gt;Thanks,&lt;/p&gt;</comment>
                            <comment id="55287" author="madhusudhan.opendaylight@yahoo.com" created="Mon, 27 Jan 2014 19:54:02 +0000"  >&lt;p&gt;I had a check on OF10 switch:&lt;/p&gt;

&lt;p&gt;Before that, I downloaded the latest controller at &lt;/p&gt;

&lt;p&gt;wget &lt;a href=&quot;https://jenkins.opendaylight.org/integration/job/integration-project-centralized-integration/lastSuccessfulBuild/artifact/distributions/base/target/distributions-base-0.1.0-SNAPSHOT-osgipackage.zip&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://jenkins.opendaylight.org/integration/job/integration-project-centralized-integration/lastSuccessfulBuild/artifact/distributions/base/target/distributions-base-0.1.0-SNAPSHOT-osgipackage.zip&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We still seeing the same issue as reported earlier.&lt;/p&gt;

&lt;p&gt;We configure this:&lt;/p&gt;

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

&lt;p&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.1/32&amp;lt;/ipv4-destination&amp;gt;&lt;br/&gt;
&amp;lt;/match&amp;gt;&lt;br/&gt;
&amp;lt;id&amp;gt;139&amp;lt;/id&amp;gt;&lt;br/&gt;
&amp;lt;table_id&amp;gt;2&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;In the operational we do not see the flow:&lt;/p&gt;

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

&lt;p&gt;{&lt;br/&gt;
  &quot;flow-node-inventory:table&quot;: [&lt;br/&gt;
    {&lt;br/&gt;
      &quot;opendaylight-flow-statistics:aggregate-flow-statistics&quot;: &lt;/p&gt;
{
        &quot;opendaylight-flow-statistics:byte-count&quot;: 0,
        &quot;opendaylight-flow-statistics:packet-count&quot;: 0,
        &quot;opendaylight-flow-statistics:flow-count&quot;: 0
      }
&lt;p&gt;,&lt;br/&gt;
      &quot;flow-node-inventory:id&quot;: 2,&lt;br/&gt;
      &quot;opendaylight-flow-table-statistics:flow-table-statistics&quot;: &lt;/p&gt;
{
        &quot;opendaylight-flow-table-statistics:active-flows&quot;: 0,
        &quot;opendaylight-flow-table-statistics:packets-looked-up&quot;: 0,
        &quot;opendaylight-flow-table-statistics:packets-matched&quot;: 0
      }
&lt;p&gt;    }&lt;br/&gt;
  ]&lt;br/&gt;
}&lt;/p&gt;

&lt;p&gt;However in the switch, we see a flow with actions=drop:&lt;/p&gt;

&lt;p&gt;odluser@odl-system-test:~/integration\&amp;gt; sudo ovs-ofctl -O OpenFlow10 dump-flows s1&lt;br/&gt;
NXST_FLOW reply (xid=0x4):&lt;br/&gt;
cookie=0x0, duration=7.633s, table=0, n_packets=0, n_bytes=0, idle_timeout=300, hard_timeout=600, idle_age=7, priority=2,ip,nw_dst=10.0.10.1 actions=drop&lt;/p&gt;

&lt;p&gt;Please let me know the steps on how this got resolved in your case.&lt;/p&gt;

&lt;p&gt;Thanks,&lt;/p&gt;</comment>
                            <comment id="55288" author="vishnoianil@gmail.com" created="Tue, 28 Jan 2014 15:10:50 +0000"  >&lt;p&gt;Hi Madhusudhan,&lt;/p&gt;

&lt;p&gt;Regarding Comment-2, I tried the same steps but I am not able to recreate this issue locally. Can you please test it with the latest build and see if you can still see this issue? Apart from that, just want to point out one thing (may be typo), you installing flow with ip &lt;/p&gt;

&lt;p&gt;&amp;lt;ipv4-destination&amp;gt;10.0.10.1/32&amp;lt;/ipv4-destination&amp;gt;&lt;/p&gt;

&lt;p&gt;but the flow you are dumping on switch has different ip (10.0.30.1)&lt;/p&gt;

&lt;p&gt;sudo ovs-ofctl -O OpenFlow13 dump-flows s1&lt;br/&gt;
OFPST_FLOW reply (OF1.3) (xid=0x2):&lt;br/&gt;
 cookie=0x0, duration=5.677s, table=2, n_packets=0, n_bytes=0, idle_timeout=300, hard_timeout=600, send_flow_rem priority=2,ip,nw_dst=10.0.30.1 actions=dec_ttl&lt;/p&gt;

&lt;p&gt;I think if you test this scenario with latest build, you won&apos;t see this bug.&lt;/p&gt;


&lt;p&gt;Regarding Comment - 4:&lt;/p&gt;

&lt;p&gt;OF1.0 enabled switches only have 1 table (table-0), but in this test you are trying to install flow in table/2 so it eventually getting installed in table=0. If you see the flow you dumped on switch &lt;/p&gt;

&lt;p&gt;odluser@odl-system-test:~/integration\&amp;gt; sudo ovs-ofctl -O OpenFlow10 dump-flows s1&lt;br/&gt;
NXST_FLOW reply (xid=0x4):&lt;br/&gt;
cookie=0x0, duration=7.633s, table=0, n_packets=0, n_bytes=0, idle_timeout=300, hard_timeout=600, idle_age=7, priority=2,ip,nw_dst=10.0.10.1 actions=drop&lt;/p&gt;

&lt;p&gt;It got installed in table=0. Now when statistics-manager fetches the flow statistics for flow, it return table=0 and not table=2, that user provided. So stats trying to match with flows in table=0 and it doesn&apos;t match to any of the flow already present in the config data store and hence statistics-manager augment/store these stats in table/0 with special id 1001. Format of the special flow ids is &lt;span class=&quot;error&quot;&gt;&amp;#91;1-tableid-0-flow counter&amp;#93;&lt;/span&gt;, but I changed this format in one of the recent gerrit &lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/4888/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/4888/&lt;/a&gt;). We call these flows unaccounted flows, and these unaccounted flows are not associated with any of the flows exist in the config data store. So whenever you delete your previously installed flow, it tries to clean the associated stats, but because there is no associated stats, it returns.&lt;/p&gt;

&lt;p&gt;All the unaccounted flow gets cleaned up when statistics manager don&apos;t see any stats update for that flow from switch for 2 stats collection cycle. So you will have to wait for around 30 seconds (current stats collection time interval = 15 sec) for these unaccounted flow to get cleaned up, given that you won&apos;t get any stats update from switch for these flows. There was one bug in this clean-up which i fixed and pushed through above mentioned gerrit.&lt;/p&gt;

&lt;p&gt;In the test you mentioned in comment 4, you are dumping stats for wrong table, if you dump stats for table/0, you probably will see the flow stats.&lt;/p&gt;

&lt;p&gt;Apart from that the reason you see action=drop is because you are trying to install flow with action = dec_nw_ttl, and that&apos;s not supported by openflow 1.0 enabled switch.So looks like plugin eventually discard that, and installs flow with no action and that resulted in action=drop.&lt;/p&gt;

&lt;p&gt;Can you please re-test this case with correct table id and see if you are still able to recreate this issue. I would recommend to use the latest build.&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>368</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=368]]></customfieldvalue>

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

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