<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 19:52:08 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-83] Restconf not populating all fields for PUT</title>
                <link>https://jira.opendaylight.org/browse/CONTROLLER-83</link>
                <project id="10113" key="CONTROLLER">controller</project>
                    <description>&lt;p&gt;This is against:&lt;br/&gt;
&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/3314/10&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/3314/10&lt;/a&gt; (controller side)&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/3451/2&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/3451/2&lt;/a&gt; (openflowplugin side)&lt;/p&gt;

&lt;p&gt;Build the controller&lt;br/&gt;
Build openflowplugin using -nsu&lt;/p&gt;

&lt;p&gt;Run distribution/base/target/../run.sh -debug&lt;/p&gt;

&lt;p&gt;From POSTMAN:&lt;/p&gt;

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

&lt;p&gt;Content-Type: application/xml&lt;/p&gt;

&lt;p&gt;Accept: application/xml&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;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;apply-actions&amp;gt;&lt;br/&gt;
                    &amp;lt;action&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;id&amp;gt;123&amp;lt;/id&amp;gt;&lt;br/&gt;
        &amp;lt;cookie_mask&amp;gt;10&amp;lt;/cookie_mask&amp;gt;&lt;br/&gt;
        &amp;lt;out_port&amp;gt;10&amp;lt;/out_port&amp;gt;&lt;br/&gt;
        &amp;lt;installHw&amp;gt;false&amp;lt;/installHw&amp;gt;&lt;br/&gt;
        &amp;lt;out_group&amp;gt;2&amp;lt;/out_group&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.0.1/24&amp;lt;/ipv4-destination&amp;gt;&lt;br/&gt;
        &amp;lt;/match&amp;gt;&lt;br/&gt;
        &amp;lt;hard-timeout&amp;gt;12&amp;lt;/hard-timeout&amp;gt;&lt;br/&gt;
        &amp;lt;cookie&amp;gt;10&amp;lt;/cookie&amp;gt;&lt;br/&gt;
        &amp;lt;idle-timeout&amp;gt;34&amp;lt;/idle-timeout&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;2&amp;lt;/priority&amp;gt;&lt;br/&gt;
        &amp;lt;barrier&amp;gt;false&amp;lt;/barrier&amp;gt;&lt;br/&gt;
&amp;lt;/flow&amp;gt;&lt;/p&gt;


&lt;p&gt;When I place a breakpoint in FlowTransaction.java function addFlow&lt;br/&gt;
what arrives there is:&lt;/p&gt;

&lt;p&gt;Flow [_id=null, _key=FlowKey &lt;span class=&quot;error&quot;&gt;&amp;#91;_id=null&amp;#93;&lt;/span&gt;, _barrier=false, _bufferId=null, _containerName=null, _cookieMask=10, _flags=null, _flowName=FooXf1, _installHw=false, _instructions=Instructions [_instruction=[Instruction [_order=null, _key=InstructionKey &lt;span class=&quot;error&quot;&gt;&amp;#91;_order=null&amp;#93;&lt;/span&gt;, _instruction=null]]], _match=Match [_ethernetMatch=EthernetMatch [_ethernetDestination=null, _ethernetSource=null, _ethernetType=EthernetType &lt;span class=&quot;error&quot;&gt;&amp;#91;_type=null, _mask=null&amp;#93;&lt;/span&gt;], _icmpv4Match=null, _icmpv6Match=null, _inPhyPort=null, _inPort=null, _ipMatch=null, _layer3Match=null, _layer4Match=null, _metadata=null, _protocolMatchFields=null, _tunnel=null, _vlanMatch=null], _outGroup=2, _outPort=10, _strict=false, _cookie=10, _hardTimeout=12, _idleTimeout=34, _priority=2, _tableId=2]&lt;/p&gt;

&lt;p&gt;Note: Flow [_id=null,&lt;br/&gt;
That&apos;s wrong, as it is provided&lt;br/&gt;
3:07 AM&lt;br/&gt;
And Match [_ethernetMatch=EthernetMatch [_ethernetDestination=null, _ethernetSource=null, _ethernetType=EthernetType &lt;span class=&quot;error&quot;&gt;&amp;#91;_type=null, _mask=null&amp;#93;&lt;/span&gt;]&lt;br/&gt;
And etherType was provided&lt;br/&gt;
And&lt;br/&gt;
EthernetType [_type=null,&lt;br/&gt;
Should not be null&lt;/p&gt;

&lt;p&gt;Please also note: this flow was captured from running&lt;/p&gt;

&lt;p&gt;mdAddFlow openflow:1 f1 &lt;/p&gt;

&lt;p&gt;successfully at the commandline... so it was the result of reading a valid Flow that had travered the FlowTransaction and gotten to the switch.&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: Mac OS&lt;br/&gt;
Platform: PC&lt;/p&gt;</environment>
        <key id="24637">CONTROLLER-83</key>
            <summary>Restconf not populating all fields for PUT</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="-1">Unassigned</assignee>
                                    <reporter username="hagbard">Ed Warnicke</reporter>
                        <labels>
                    </labels>
                <created>Mon, 9 Dec 2013 09:18:49 +0000</created>
                <updated>Tue, 25 Jul 2023 08:22:53 +0000</updated>
                            <resolved>Mon, 9 Dec 2013 12:14:43 +0000</resolved>
                                                                    <component>restconf</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>2</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_10208" key="com.atlassian.jira.plugin.system.customfieldtypes:textfield">
                        <customfieldname>External issue ID</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>214</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=214]]></customfieldvalue>

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

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