<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:06:38 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>[LISPMAP-159] MappingSystem#getWidestNegativePrefix(Eid) returns incorrect results</title>
                <link>https://jira.opendaylight.org/browse/LISPMAP-159</link>
                <project id="10136" key="LISPMAP">lispflowmapping</project>
                    <description>&lt;p&gt;One of the uses of the MappingSystem#getWidestNegativePrefix(Eid) method is to generate the negative reply to southbound originated Map-Requests which don&apos;t get an actual stored mapping as a result. Right now, this method will try to get the widest negative on the NB and if that fails (null is returned) then on the SB.&lt;/p&gt;

&lt;p&gt;NB negative prefix will only fail if we try to use an EID that has match, in which case we don&apos;tget to call the method in the first place for this use case, so we never actually get to looking up the widest negative for SB.&lt;/p&gt;

&lt;p&gt;Suppose we have a mapping for 192.0.2.0/24 in NB and 10.0.0.0/32 in SB. A mapping lookup for 11.1.1.1 will return 0.0.0.0/1 as the negative mapping, covering 10.0.0.0/8. Instead, it should return the widest negative between 10.0.0.0/32 and 192.0.2.0/24.&lt;/p&gt;

&lt;p&gt;So the correct behavior should be to look up both NB and SB widest negative prefixes and return their intersection.&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="19759">LISPMAP-159</key>
            <summary>MappingSystem#getWidestNegativePrefix(Eid) returns incorrect results</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="10000">Done</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="ljakab">Lori Jakab</reporter>
                        <labels>
                    </labels>
                <created>Tue, 13 Jun 2017 11:55:53 +0000</created>
                <updated>Thu, 19 Oct 2017 21:29:18 +0000</updated>
                            <resolved>Sat, 12 Aug 2017 22:47:49 +0000</resolved>
                                    <version>Carbon</version>
                                                    <component>General</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="35752" author="ljakab" created="Tue, 13 Jun 2017 12:05:05 +0000"  >&lt;p&gt;(In reply to Lori Jakab from comment #0)&lt;br/&gt;
&amp;gt; Right now, this method will&lt;br/&gt;
&amp;gt; try to get the widest negative on the NB and if that fails (null is&lt;br/&gt;
&amp;gt; returned) then on the SB.&lt;/p&gt;

&lt;p&gt;Actually, the method will just take the longest prefix from both NB and SB results, which is still incorrect.&lt;/p&gt;</comment>
                            <comment id="35753" author="ljakab" created="Tue, 13 Jun 2017 12:12:55 +0000"  >&lt;p&gt;(In reply to Lori Jakab from comment #0)&lt;br/&gt;
&amp;gt; Suppose we have a mapping for 192.0.2.0/24 in NB and 10.0.0.0/32 in SB. A&lt;br/&gt;
&amp;gt; mapping lookup for 11.1.1.1 will return 0.0.0.0/1 as the negative mapping,&lt;br/&gt;
&amp;gt; covering 10.0.0.0/8. Instead, it should return the widest negative between&lt;br/&gt;
&amp;gt; 10.0.0.0/32 and 192.0.2.0/24.&lt;br/&gt;
&amp;gt; &lt;br/&gt;
&amp;gt; So the correct behavior should be to look up both NB and SB widest negative&lt;br/&gt;
&amp;gt; prefixes and return their intersection.&lt;/p&gt;

&lt;p&gt;Thinking about this further, that wouldn&apos;t help. In the above example, NB widest negative is 0.0.0.0/1 and SB widest negative is 128.0.0.0/1, which do not overlap, and thus have no intersection.&lt;/p&gt;

&lt;p&gt;We may need to keep a separate radix trie with all prefixes from NB and SB to be able to get the correct widest negative.&lt;/p&gt;</comment>
                            <comment id="35754" author="ljakab" created="Wed, 21 Jun 2017 11:23:39 +0000"  >&lt;p&gt;Fix proposed: &lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/59206/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/59206/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Needs cherry-pick to Carbon.&lt;/p&gt;</comment>
                            <comment id="35755" author="ljakab" created="Sat, 12 Aug 2017 22:47:49 +0000"  >&lt;p&gt;Carbon cherry-pick: &lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/59545/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/59545/&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10000">
                    <name>Blocks</name>
                                            <outwardlinks description="blocks">
                                        <issuelink>
            <issuekey id="19757">LISPMAP-157</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <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>8679</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=8679]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10206" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Issue Type</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10300"><![CDATA[Bug]]></customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10202" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Priority</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10312"><![CDATA[High]]></customfieldvalue>

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

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