<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:32:01 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-269] of-flow: sal-flow:update-flow return 400</title>
                <link>https://jira.opendaylight.org/browse/OPNFLWPLUG-269</link>
                <project id="10155" key="OPNFLWPLUG">OpenFlowPlugin</project>
                    <description>&lt;p&gt;odl:&lt;br/&gt;
org.opendaylight.controller.version = 0.1&lt;br/&gt;
org.opendaylight.controller.build.scm.version = 15e9db7d90e46f014aeba760263623094bc48f14&lt;br/&gt;
org.opendaylight.controller.build.user = jenkins-controller&lt;br/&gt;
org.opendaylight.controller.build.workspace = **********&lt;br/&gt;
org.opendaylight.controller.build.timestamp = 1410248111419&lt;br/&gt;
org.opendaylight.controller.build.machine = **********&lt;/p&gt;


&lt;p&gt;when trying to use /restconf/operations/sal-flow:update-flow i get 400, the same xml works for add-flow, so the problem should be somewhere else.&lt;/p&gt;

&lt;p&gt;POST /restconf/operations/sal-flow:update-flow HTTP/1.1&lt;br/&gt;
Host: 10.25.2.9:8080&lt;br/&gt;
Content-Length: 899&lt;br/&gt;
Accept-Encoding: gzip, deflate&lt;br/&gt;
Accept: &lt;b&gt;/&lt;/b&gt;&lt;br/&gt;
User-Agent: python-requests/2.3.0 CPython/2.7.3 Linux/3.10.12-100.fc18.x86_64&lt;br/&gt;
Content-Type: application/xml&lt;br/&gt;
Authorization: Basic YWRtaW46YWRtaW4=&lt;/p&gt;

&lt;p&gt;&amp;lt;input xmlns=&quot;urn:opendaylight:flow:service&quot;&amp;gt;&lt;br/&gt;
    &amp;lt;strict&amp;gt;false&amp;lt;/strict&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;drop-action /&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;table_id&amp;gt;2&amp;lt;/table_id&amp;gt;&lt;br/&gt;
    &amp;lt;cookie_mask&amp;gt;255&amp;lt;/cookie_mask&amp;gt;&lt;br/&gt;
    &amp;lt;installHw&amp;gt;false&amp;lt;/installHw&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.1.0/24&amp;lt;/ipv4-destination&amp;gt;&lt;br/&gt;
    &amp;lt;/match&amp;gt;&lt;br/&gt;
    &amp;lt;cookie&amp;gt;1&amp;lt;/cookie&amp;gt;&lt;br/&gt;
    &amp;lt;flow-name&amp;gt;FooXf1&amp;lt;/flow-name&amp;gt;&lt;br/&gt;
    &amp;lt;priority&amp;gt;1&amp;lt;/priority&amp;gt;&lt;br/&gt;
    &amp;lt;barrier&amp;gt;false&amp;lt;/barrier&amp;gt;&lt;br/&gt;
&amp;lt;node xmlns:inv=&quot;urn:opendaylight:inventory&quot;&amp;gt;/inv:nodes/inv:node&lt;span class=&quot;error&quot;&gt;&amp;#91;inv:id=&amp;quot;openflow:1&amp;quot;&amp;#93;&lt;/span&gt;&amp;lt;/node&amp;gt;&amp;lt;/input&amp;gt;&lt;/p&gt;


&lt;p&gt;HTTP/1.1 400 Bad Request&lt;br/&gt;
Server: Apache-Coyote/1.1&lt;br/&gt;
Content-Type: &lt;b&gt;/&lt;/b&gt;&lt;br/&gt;
Transfer-Encoding: chunked&lt;br/&gt;
Date: Tue, 09 Sep 2014 09:29:51 GMT&lt;br/&gt;
Connection: close&lt;/p&gt;

&lt;p&gt;146&lt;br/&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;errors xmlns=&quot;urn:ietf:params:xml:ns:yang:ietf-restconf&quot;&amp;gt;&lt;br/&gt;
    &amp;lt;error&amp;gt;&lt;br/&gt;
        &amp;lt;error-type&amp;gt;application&amp;lt;/error-type&amp;gt;&lt;br/&gt;
        &amp;lt;error-tag&amp;gt;unknown-element&amp;lt;/error-tag&amp;gt;&lt;br/&gt;
        &amp;lt;error-message&amp;gt;Schema node &quot;strict&quot; was not found in module.&amp;lt;/error-message&amp;gt;&lt;br/&gt;
    &amp;lt;/error&amp;gt;&lt;br/&gt;
&amp;lt;/errors&amp;gt;&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: Linux&lt;br/&gt;
Platform: PC&lt;/p&gt;</environment>
        <key id="27537">OPNFLWPLUG-269</key>
            <summary>of-flow: sal-flow:update-flow return 400</summary>
                <type id="10104" iconUrl="https://jira.opendaylight.org/secure/viewavatar?size=xsmall&amp;avatarId=10303&amp;avatarType=issuetype">Bug</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="michal.rehak">Michal Rehak</assignee>
                                    <reporter username="pgubka@cisco.com">Peter Gubka</reporter>
                        <labels>
                    </labels>
                <created>Tue, 9 Sep 2014 09:58:18 +0000</created>
                <updated>Mon, 27 Sep 2021 09:01:19 +0000</updated>
                            <resolved>Wed, 24 Sep 2014 17:40:40 +0000</resolved>
                                                                    <component>General</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="56099" author="mirehak@cisco.com" created="Tue, 16 Sep 2014 17:02:42 +0000"  >&lt;p&gt;This is kind of expected behavior. By using rpc to update flow there is different input model (dataStore takes care of creating it if some flow data get changed).&lt;/p&gt;

&lt;p&gt;In order for this update via rpc to work you need following xml:&lt;br/&gt;
(I changed action (drop -&amp;gt; dec-nw-ttl)). In case that match/priority is changed this does not work correctly - flow gets removed from device. In case of action change it works.&lt;/p&gt;

&lt;p&gt;&amp;lt;input xmlns=&quot;urn:opendaylight:flow:service&quot;&amp;gt;&lt;br/&gt;
  &amp;lt;flow-ref xmlns:inv=&quot;urn:opendaylight:inventory&quot;&amp;gt;/inv:nodes/inv:node&lt;span class=&quot;error&quot;&gt;&amp;#91;inv:id=&amp;quot;openflow:1&amp;quot;&amp;#93;&lt;/span&gt;/inv:table&lt;span class=&quot;error&quot;&gt;&amp;#91;inv:id=2&amp;#93;&lt;/span&gt;/inv:flow&lt;span class=&quot;error&quot;&gt;&amp;#91;inv:id=1765&amp;#93;&lt;/span&gt;&amp;lt;/flow-ref&amp;gt;&lt;/p&gt;

&lt;p&gt;  &amp;lt;node xmlns:inv=&quot;urn:opendaylight:inventory&quot;&amp;gt;/inv:nodes/inv:node&lt;span class=&quot;error&quot;&gt;&amp;#91;inv:id=&amp;quot;openflow:1&amp;quot;&amp;#93;&lt;/span&gt;&amp;lt;/node&amp;gt;&lt;/p&gt;

&lt;p&gt;  &amp;lt;original-flow&amp;gt;&lt;br/&gt;
    &amp;lt;strict&amp;gt;false&amp;lt;/strict&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;drop-action /&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;table_id&amp;gt;2&amp;lt;/table_id&amp;gt;&lt;br/&gt;
    &amp;lt;cookie_mask&amp;gt;255&amp;lt;/cookie_mask&amp;gt;&lt;br/&gt;
    &amp;lt;installHw&amp;gt;false&amp;lt;/installHw&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.1.0/24&amp;lt;/ipv4-destination&amp;gt;&lt;br/&gt;
    &amp;lt;/match&amp;gt;&lt;br/&gt;
    &amp;lt;cookie&amp;gt;2&amp;lt;/cookie&amp;gt;&lt;br/&gt;
    &amp;lt;flow-name&amp;gt;FooXf1&amp;lt;/flow-name&amp;gt;&lt;br/&gt;
    &amp;lt;priority&amp;gt;1&amp;lt;/priority&amp;gt;&lt;br/&gt;
    &amp;lt;barrier&amp;gt;false&amp;lt;/barrier&amp;gt;&lt;br/&gt;
  &amp;lt;/original-flow&amp;gt;&lt;/p&gt;

&lt;p&gt;  &amp;lt;updated-flow&amp;gt;&lt;br/&gt;
    &amp;lt;strict&amp;gt;false&amp;lt;/strict&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;table_id&amp;gt;2&amp;lt;/table_id&amp;gt;&lt;br/&gt;
    &amp;lt;cookie_mask&amp;gt;255&amp;lt;/cookie_mask&amp;gt;&lt;br/&gt;
    &amp;lt;installHw&amp;gt;false&amp;lt;/installHw&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.1.0/24&amp;lt;/ipv4-destination&amp;gt;&lt;br/&gt;
    &amp;lt;/match&amp;gt;&lt;br/&gt;
    &amp;lt;cookie&amp;gt;2&amp;lt;/cookie&amp;gt;&lt;br/&gt;
    &amp;lt;flow-name&amp;gt;FooXf1&amp;lt;/flow-name&amp;gt;&lt;br/&gt;
    &amp;lt;priority&amp;gt;1&amp;lt;/priority&amp;gt;&lt;br/&gt;
    &amp;lt;barrier&amp;gt;false&amp;lt;/barrier&amp;gt;&lt;br/&gt;
  &amp;lt;/updated-flow&amp;gt;&lt;/p&gt;

&lt;p&gt;&amp;lt;/input&amp;gt;&lt;/p&gt;</comment>
                            <comment id="56100" author="pgubka@cisco.com" created="Fri, 19 Sep 2014 10:48:04 +0000"  >&lt;p&gt;not am issue any longer, input updated&lt;/p&gt;</comment>
                            <comment id="56101" author="jluhrsen" created="Wed, 24 Sep 2014 17:40:40 +0000"  >&lt;p&gt;Verified this in RC2:&lt;br/&gt;
distribution-karaf-0.2.0-Helium-RC2.zip&lt;/p&gt;

&lt;p&gt;regression automation (previously disabled) will now be enabled in integration test code.&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>1765</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=1765]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10204" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>ODL SR Target Milestone</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10372"><![CDATA[Helium-RC2]]></customfieldvalue>

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

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