<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:25:37 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>[NEUTRON-123] [stable/beryllium]After creating port with multiple fixedIPs resulting in only fixedIP per subnet getting written to MDSAL</title>
                <link>https://jira.opendaylight.org/browse/NEUTRON-123</link>
                <project id="10145" key="NEUTRON">neutron</project>
                    <description>&lt;p&gt;Upon creating a port and then updating with multiple fixed IPs per subnet, only one is getting reflected in neutron router config DS.&lt;/p&gt;

&lt;p&gt;openstack command used for creating port with multiple fixed-ips:&lt;/p&gt;

&lt;p&gt;neutron port-create ext-net --fixed-ip subnet_id=d8c6125a-8d1a-4802-8bfe-d287776c8b41,ip_address=12.12.12.8 --fixed-ip subnet_id=d8c6125a-8d1a-4802-8bfe-d287776c8b41,ip_address=12.12.12.9&lt;/p&gt;

&lt;p&gt;What get reflected in MDSAL:&lt;/p&gt;

&lt;p&gt;{&lt;br/&gt;
  &quot;ports&quot;: [&lt;br/&gt;
    {&lt;br/&gt;
      &quot;id&quot;: &quot;6d8c0b04-f0d5-44d5-bc4d-43e530839e75&quot;,&lt;br/&gt;
      &quot;tenant_id&quot;: &quot;3b54ee92f05c4a45a7e8474badb2e3c8&quot;,&lt;br/&gt;
      &quot;network_id&quot;: &quot;65ddef7d-0261-4d2d-8c3e-a028bde26695&quot;,&lt;br/&gt;
      &quot;name&quot;: &quot;&quot;,&lt;br/&gt;
      &quot;admin_state_up&quot;: true,&lt;br/&gt;
      &quot;status&quot;: &quot;ACTIVE&quot;,&lt;br/&gt;
      &quot;mac_address&quot;: &quot;FA:16:3E:EA:6E:94&quot;,&lt;br/&gt;
      &quot;fixed_ips&quot;: [&lt;/p&gt;
        {
          &quot;ip_address&quot;: &quot;12.12.12.9&quot;,
          &quot;subnet_id&quot;: &quot;d8c6125a-8d1a-4802-8bfe-d287776c8b41&quot;
        }
&lt;p&gt;      ],&lt;br/&gt;
      &quot;device_id&quot;: &quot;&quot;,&lt;br/&gt;
      &quot;device_owner&quot;: &quot;&quot;,&lt;br/&gt;
      &quot;security_groups&quot;: [&lt;br/&gt;
        {&lt;br/&gt;
          &quot;id&quot;: &quot;40ea057d-1549-4727-86ea-4c3e5dcf107c&quot;,&lt;br/&gt;
          &quot;tenant_id&quot;: &quot;3b54ee92f05c4a45a7e8474badb2e3c8&quot;,&lt;br/&gt;
          &quot;name&quot;: &quot;default&quot;,&lt;br/&gt;
          &quot;description&quot;: &quot;Default security group&quot;,&lt;br/&gt;
          &quot;security_group_rules&quot;: [&lt;br/&gt;
            &lt;/p&gt;
{
              &quot;id&quot;: &quot;1a11c807-e185-40aa-afe3-3696e0f12d64&quot;,
              &quot;tenant_id&quot;: &quot;3b54ee92f05c4a45a7e8474badb2e3c8&quot;,
              &quot;direction&quot;: &quot;ingress&quot;,
              &quot;ethertype&quot;: &quot;IPv6&quot;,
              &quot;remote_group_id&quot;: &quot;40ea057d-1549-4727-86ea-4c3e5dcf107c&quot;,
              &quot;security_group_id&quot;: &quot;40ea057d-1549-4727-86ea-4c3e5dcf107c&quot;
            }
&lt;p&gt;,&lt;br/&gt;
            &lt;/p&gt;
{
              &quot;id&quot;: &quot;40e96508-a362-43f1-97ea-8486ab461bc4&quot;,
              &quot;tenant_id&quot;: &quot;3b54ee92f05c4a45a7e8474badb2e3c8&quot;,
              &quot;direction&quot;: &quot;egress&quot;,
              &quot;ethertype&quot;: &quot;IPv4&quot;,
              &quot;security_group_id&quot;: &quot;40ea057d-1549-4727-86ea-4c3e5dcf107c&quot;
            }
&lt;p&gt;,&lt;br/&gt;
            &lt;/p&gt;
{
              &quot;id&quot;: &quot;a16611c1-f4e6-4223-b48b-c1b11b8ec6c1&quot;,
              &quot;tenant_id&quot;: &quot;3b54ee92f05c4a45a7e8474badb2e3c8&quot;,
              &quot;direction&quot;: &quot;ingress&quot;,
              &quot;ethertype&quot;: &quot;IPv4&quot;,
              &quot;remote_group_id&quot;: &quot;40ea057d-1549-4727-86ea-4c3e5dcf107c&quot;,
              &quot;security_group_id&quot;: &quot;40ea057d-1549-4727-86ea-4c3e5dcf107c&quot;
            }
&lt;p&gt;,&lt;/p&gt;
            {
              &quot;id&quot;: &quot;673ca49f-0ba9-4e70-a63c-0b6f4bf4fb5e&quot;,
              &quot;tenant_id&quot;: &quot;3b54ee92f05c4a45a7e8474badb2e3c8&quot;,
              &quot;direction&quot;: &quot;egress&quot;,
              &quot;ethertype&quot;: &quot;IPv6&quot;,
              &quot;security_group_id&quot;: &quot;40ea057d-1549-4727-86ea-4c3e5dcf107c&quot;
            }
&lt;p&gt;          ]&lt;br/&gt;
        }&lt;br/&gt;
      ],&lt;br/&gt;
      &quot;allowed_address_pairs&quot;: [],&lt;br/&gt;
      &quot;binding:host_id&quot;: &quot;&quot;,&lt;br/&gt;
      &quot;binding:vnic_type&quot;: &quot;normal&quot;,&lt;br/&gt;
      &quot;binding:vif_type&quot;: &quot;unbound&quot;,&lt;br/&gt;
      &quot;binding:vif_details&quot;: [&lt;br/&gt;
        {}&lt;br/&gt;
      ]&lt;br/&gt;
    }&lt;br/&gt;
  ]&lt;br/&gt;
}&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="26685">NEUTRON-123</key>
            <summary>[stable/beryllium]After creating port with multiple fixedIPs resulting in only fixedIP per subnet getting written to MDSAL</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="suraj.ranjan@ericsson.com">Suraj Ranjan</reporter>
                        <labels>
                    </labels>
                <created>Fri, 15 Apr 2016 09:50:57 +0000</created>
                <updated>Tue, 19 Nov 2019 18:33:42 +0000</updated>
                            <resolved>Fri, 8 Jul 2016 08:58:45 +0000</resolved>
                                    <version>unspecified</version>
                                                    <component>northbound-api</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="53580" author="thapar" created="Mon, 18 Apr 2016 08:50:24 +0000"  >&lt;p&gt;Issue is in neutron-ports.yang:&lt;/p&gt;

&lt;p&gt;        list fixed-ips {&lt;br/&gt;
            key subnet-id;&lt;br/&gt;
            leaf subnet-id &lt;/p&gt;
{
                type yang:uuid;
            }
&lt;p&gt;            leaf ip-address &lt;/p&gt;
{
                type inet:ip-address;
            }
&lt;p&gt;        }&lt;/p&gt;


&lt;p&gt;Yang model allows only one ip-address per subnet. It should be leaf-list, at very list.&lt;/p&gt;</comment>
                            <comment id="53581" author="yamahata" created="Tue, 19 Apr 2016 08:10:48 +0000"  >&lt;p&gt;Yes, neutron API allows for port to have multiple ip addresses from single subnets.&lt;/p&gt;

&lt;p&gt;Does the following change work?&lt;br/&gt;
        list fixed-ips {&lt;br/&gt;
            key &quot;subnet-id ip-address&quot;;   &amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&lt;br/&gt;
            leaf subnet-id &lt;/p&gt;
{
                type yang:uuid;
            }
&lt;p&gt;            leaf ip-address &lt;/p&gt;
{
                type inet:ip-address;
            }
&lt;p&gt;        }&lt;/p&gt;</comment>
                            <comment id="53582" author="thapar" created="Tue, 19 Apr 2016 08:17:10 +0000"  >&lt;p&gt;Yes, this would work but will make it difficult to make queries like &apos;get all fixed IPs for a subnet&apos; as IP would also need to be part of a key given by user/application.&lt;/p&gt;</comment>
                            <comment id="53583" author="thapar" created="Wed, 11 May 2016 15:51:23 +0000"  >&lt;p&gt;&lt;a href=&quot;http://developer.openstack.org/api-ref-networking-v2.html#listPorts&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://developer.openstack.org/api-ref-networking-v2.html#listPorts&lt;/a&gt; suggests that change proposed by Isaku is best way to go. I&apos;ll confirm it form q-svc.log &lt;/p&gt;

&lt;p&gt;Refer meeting log for details:&lt;br/&gt;
&lt;a href=&quot;http://meetings.opendaylight.org/opendaylight-neutron/2016/neutron_northbound/opendaylight-neutron-neutron_northbound.2016-05-11-15.01.log.html&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://meetings.opendaylight.org/opendaylight-neutron/2016/neutron_northbound/opendaylight-neutron-neutron_northbound.2016-05-11-15.01.log.html&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="53584" author="thapar" created="Thu, 12 May 2016 05:30:31 +0000"  >&lt;p&gt;This is what we get from OpenStack:&lt;br/&gt;
&apos;fixed_ips&apos;: [&lt;/p&gt;
{
        &apos;subnet_id&apos;: u&apos;2044aba1-3ff4-401b-a398-1bf92f9692ce&apos;,
        &apos;ip_address&apos;: u&apos;172.16.0.5&apos;
    }
&lt;p&gt;,&lt;br/&gt;
   &lt;/p&gt;
{
        &apos;subnet_id&apos;: u&apos;2044aba1-3ff4-401b-a398-1bf92f9692ce&apos;,
        &apos;ip_address&apos;: u&apos;172.16.0.8&apos;
   }
&lt;p&gt;]&lt;/p&gt;


&lt;p&gt;So, should be good to just change the key to &apos;subnet-id ip-address&apos;. I believe such a change may not even be disruptive unless someone is explicitly trying to get individual entry using the key.&lt;/p&gt;</comment>
                            <comment id="53585" author="abhinav.gupta" created="Fri, 8 Jul 2016 08:58:45 +0000"  >&lt;p&gt;Fixed by &lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/35839/9&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/35839/9&lt;/a&gt;&lt;br/&gt;
Hence, closing the bug.&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>5735</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=5735]]></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|i02uun:</customfieldvalue>

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