<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:11:12 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>[NATAPP-2] StaticMap item is overwrited and only latest staticMappingInfo is stored.</title>
                <link>https://jira.opendaylight.org/browse/NATAPP-2</link>
                <project id="10139" key="NATAPP">natapp</project>
                    <description>&lt;p&gt;Overview: &lt;br/&gt;
StaticMap item is overwrited and only latest staticMappingInfo is stored. &lt;/p&gt;


&lt;p&gt;Steps to Reproduce: &lt;br/&gt;
This issue can be reproduced with latest Natapp ODL project and Mininet. &lt;/p&gt;

&lt;p&gt;After compile and start ODL with natapp, set Nat Type and global ip:&lt;br/&gt;
1) Set Nat Type to staticNAT:&lt;br/&gt;
curl --user &quot;admin&quot;:&quot;admin&quot; -H &quot;Content-type: application/json&quot; -X POST \&lt;br/&gt;
&lt;a href=&quot;http://localhost:8181/restconf/operations/natapp:nat-type&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://localhost:8181/restconf/operations/natapp:nat-type&lt;/a&gt; \&lt;br/&gt;
-d &apos;{&quot;natapp:input&quot;:{&quot;type:static&quot;:&quot;&quot;}}&apos;&lt;/p&gt;

&lt;p&gt;2) Set globalIP&lt;br/&gt;
curl --user &quot;admin&quot;:&quot;admin&quot; -H &quot;Content-type: application/json&quot; -X PUT \&lt;br/&gt;
&lt;a href=&quot;http://localhost:8181/restconf/config/natapp:staticNat/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://localhost:8181/restconf/config/natapp:staticNat/&lt;/a&gt; \&lt;br/&gt;
-d &apos;{&quot;staticNat&quot;:{&quot;globalIP&quot;:&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;quot;172.0.0.1/32&amp;quot;,&amp;quot;172.0.0.2/32&amp;quot;,&amp;quot;172.0.0.3/32&amp;quot;,&amp;quot;172.0.0.4/32&amp;quot;,&amp;quot;172.0.0.5/32&amp;quot;,&amp;quot;172.0.0.6/32&amp;quot;,&amp;quot;172.0.0.7/32&amp;quot;,&amp;quot;172.0.0.8/32&amp;quot;,&amp;quot;172.0.0.9/32&amp;quot;,&amp;quot;172.0.0.10/32&amp;quot;&amp;#93;&lt;/span&gt;}}&apos;&lt;/p&gt;

&lt;p&gt;3) Start Mininet:&lt;br/&gt;
sudo mn --mac --controller=remote,ip=10.42.0.1,port=6653 --topo=single,10 --switch ovsk,protocols=OpenFlow13&lt;/p&gt;

&lt;p&gt;4) Set Flood arp info:&lt;br/&gt;
sh ovs-ofctl add-flow s1 arp,actions=FLOOD --protocols OpenFlow13&lt;/p&gt;

&lt;p&gt;5) Add missing-table flow&lt;br/&gt;
sudo ovs-ofctl add-flow s1 priority=0,actions=output:CONTROLLER --protocols OpenFlow13&lt;/p&gt;

&lt;p&gt;6) Set host2 info to support ping command&lt;br/&gt;
h2 route add -net 0.0.0.0/0 gw 10.0.0.100&lt;br/&gt;
h2 arp -s 10.0.0.100 00:00:00:00:00:01&lt;/p&gt;

&lt;p&gt;7) h1 ping h2 in mininet:&lt;br/&gt;
h1 ping h2 -c 5&lt;/p&gt;

&lt;p&gt;After this command, we can found packets can be transmitted correctly. &lt;br/&gt;
In ODL YangUI web page, we can get staticMap of natapp. The content of staticMap include staticMappingInfo with globalIP=172.0.0.10 and localIP=10.0.0.1 .&lt;/p&gt;

&lt;p&gt;8) Set host4 info to support ping command&lt;br/&gt;
h4 route add -net 0.0.0.0/0 gw 10.0.0.100&lt;br/&gt;
h4 arp -s 10.0.0.100 00:00:00:00:00:03&lt;/p&gt;

&lt;p&gt;9) h3 ping h4 in mininet:&lt;br/&gt;
h3 ping h4 -c 5&lt;/p&gt;


&lt;p&gt;Actual Results: &lt;br/&gt;
After this command, we can found packets can be transmitted correctly. &lt;br/&gt;
BUT, in ODL YangUI web page, The content of staticMap ONLY include staticMappingInfo with globalIP=172.0.0.10 and localIP=10.0.0.3 .&lt;/p&gt;

&lt;p&gt;Expected Results:&lt;br/&gt;
Here we expect there are 2 items in staticMap: &lt;br/&gt;
	staticMappingInfo&amp;lt;globalIP172.0.0.10/32&amp;gt;  --&amp;gt; localIP:10.0.0.1&lt;br/&gt;
	staticMappingInfo&amp;lt;globalIP172.0.0.7/32&amp;gt;   --&amp;gt; localIP:10.0.0.3&lt;br/&gt;
But the previous mapping is overwrited by the latest mapping. As result, there will be only one items in staticMap forever.&lt;/p&gt;

&lt;p&gt;Build Date &amp;amp; Hardware: &lt;br/&gt;
natapp.rev.2016-01-25, get code from &quot;github:&lt;a href=&quot;https://github.com/opendaylight/natapp&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/opendaylight/natapp&lt;/a&gt;&quot;  @2017-01-05.&lt;br/&gt;
Build 2017-01-05 on Mac OS 10.12.2&lt;/p&gt;

&lt;p&gt;Additional Builds and Platforms: &lt;br/&gt;
Build 2017-01-05 on Ubuntu OS 14.4&lt;/p&gt;

&lt;p&gt;Additional Information: &lt;br/&gt;
This issue may be relative with addStaticMap(String localIP) function in NatYangStore.java.&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: Mac OS&lt;br/&gt;
Platform: Macintosh&lt;/p&gt;</environment>
        <key id="19875">NATAPP-2</key>
            <summary>StaticMap item is overwrited and only latest staticMappingInfo is stored.</summary>
                <type id="10104" iconUrl="https://jira.opendaylight.org/secure/viewavatar?size=xsmall&amp;avatarId=10303&amp;avatarType=issuetype">Bug</type>
                                                <status id="1" iconUrl="https://jira.opendaylight.org/images/icons/statuses/open.png" description="The issue is open and ready for the assignee to start work on it.">Open</status>
                    <statusCategory id="2" key="new" colorName="blue-gray"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="xiongkangjian@zte.com.cn">Kangjian Xiong</reporter>
                        <labels>
                    </labels>
                <created>Tue, 10 Jan 2017 09:37:48 +0000</created>
                <updated>Thu, 19 Oct 2017 21:28:24 +0000</updated>
                                            <version>unspecified</version>
                                                    <component>General</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>0</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>7504</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=7504]]></customfieldvalue>

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

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