<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 19:12:16 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>[BGPCEP-178] Processing of M flag is not correct for SR-ERO subobject</title>
                <link>https://jira.opendaylight.org/browse/BGPCEP-178</link>
                <project id="10108" key="BGPCEP">bgpcep</project>
                    <description>&lt;p&gt;As per the PCEP drafts(&lt;a href=&quot;https://tools.ietf.org/html/draft-sivabalan-pce-segment-routing-03#page-9&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://tools.ietf.org/html/draft-sivabalan-pce-segment-routing-03#page-9&lt;/a&gt;), SID value represents an MPLS label stack entry as specified as RFC5462. &lt;/p&gt;

&lt;p&gt;M: When this bit is set, the SID value represents an MPLS label&lt;br/&gt;
         stack entry as specified in &lt;span class=&quot;error&quot;&gt;&amp;#91;RFC5462&amp;#93;&lt;/span&gt; where only the label&lt;br/&gt;
         value is specified by the PCE.  Other fields (TC, S, and TTL)&lt;br/&gt;
         fields MUST be considered invalid, and PCC MUST set these&lt;br/&gt;
         fields according to its local policy and MPLS forwarding rules&lt;/p&gt;

&lt;p&gt;This means MPLS label stack entry has the following 32 bit format where first 20 bits are the label and other 12 bits are the TC, S and TTL values.&lt;/p&gt;

&lt;p&gt;  0                   1                   2                   3&lt;br/&gt;
  0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1&lt;br/&gt;
 &lt;ins&gt;&lt;del&gt;&lt;/ins&gt;&lt;/del&gt;&lt;ins&gt;&lt;del&gt;&lt;/ins&gt;&lt;/del&gt;&lt;ins&gt;&lt;del&gt;&lt;/ins&gt;&lt;/del&gt;&lt;ins&gt;&lt;del&gt;&lt;/ins&gt;&lt;/del&gt;&lt;ins&gt;&lt;del&gt;&lt;/ins&gt;&lt;/del&gt;&lt;ins&gt;&lt;del&gt;&lt;/ins&gt;&lt;/del&gt;&lt;ins&gt;&lt;del&gt;&lt;/ins&gt;&lt;/del&gt;&lt;ins&gt;&lt;del&gt;&lt;/ins&gt;&lt;/del&gt;&lt;ins&gt;&lt;del&gt;&lt;/ins&gt;&lt;/del&gt;&lt;ins&gt;&lt;del&gt;&lt;/ins&gt;&lt;/del&gt;&lt;ins&gt;&lt;del&gt;&lt;/ins&gt;&lt;/del&gt;&lt;ins&gt;&lt;del&gt;&lt;/ins&gt;&lt;/del&gt;&lt;ins&gt;&lt;del&gt;&lt;/ins&gt;&lt;/del&gt;&lt;ins&gt;&lt;del&gt;&lt;/ins&gt;&lt;/del&gt;&lt;ins&gt;&lt;del&gt;&lt;/ins&gt;&lt;/del&gt;&lt;ins&gt;&lt;del&gt;&lt;/ins&gt;&lt;/del&gt;+ Label&lt;/p&gt;
&lt;div class=&apos;table-wrap&apos;&gt;
&lt;table class=&apos;confluenceTable&apos;&gt;&lt;tbody&gt;
&lt;tr&gt;
&lt;td class=&apos;confluenceTd&apos;&gt;                Label                  &lt;/td&gt;
&lt;td class=&apos;confluenceTd&apos;&gt; TC  &lt;/td&gt;
&lt;td class=&apos;confluenceTd&apos;&gt;S&lt;/td&gt;
&lt;td class=&apos;confluenceTd&apos;&gt;       TTL     &lt;/td&gt;
&lt;td class=&apos;confluenceTd&apos;&gt; Stack&lt;br/&gt;
 &lt;ins&gt;&lt;del&gt;&lt;/ins&gt;&lt;/del&gt;&lt;ins&gt;&lt;del&gt;&lt;/ins&gt;&lt;/del&gt;&lt;ins&gt;&lt;del&gt;&lt;/ins&gt;&lt;/del&gt;&lt;ins&gt;&lt;del&gt;&lt;/ins&gt;&lt;/del&gt;&lt;ins&gt;&lt;del&gt;&lt;/ins&gt;&lt;/del&gt;&lt;ins&gt;&lt;del&gt;&lt;/ins&gt;&lt;/del&gt;&lt;ins&gt;&lt;del&gt;&lt;/ins&gt;&lt;/del&gt;&lt;ins&gt;&lt;del&gt;&lt;/ins&gt;&lt;/del&gt;&lt;ins&gt;&lt;del&gt;&lt;/ins&gt;&lt;/del&gt;&lt;ins&gt;&lt;del&gt;&lt;/ins&gt;&lt;/del&gt;&lt;ins&gt;&lt;del&gt;&lt;/ins&gt;&lt;/del&gt;&lt;ins&gt;&lt;del&gt;&lt;/ins&gt;&lt;/del&gt;&lt;ins&gt;&lt;del&gt;&lt;/ins&gt;&lt;/del&gt;&lt;ins&gt;&lt;del&gt;&lt;/ins&gt;&lt;/del&gt;&lt;ins&gt;&lt;del&gt;&lt;/ins&gt;&lt;/del&gt;&lt;ins&gt;&lt;del&gt;&lt;/ins&gt;&lt;/del&gt;+ Entry&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;


&lt;p&gt;                     Label:  Label Value, 20 bits&lt;br/&gt;
                     TC:     Traffic Class field, 3 bits&lt;br/&gt;
                     S:      Bottom of Stack, 1 bit&lt;br/&gt;
                     TTL:    Time to Live, 8 bits&lt;/p&gt;

&lt;p&gt;But the code(SrEroSubobjectParser.java) does not process the M flag correctly.&lt;/p&gt;

&lt;p&gt;I correct it as following, please review.&lt;br/&gt;
 public void serializeSubobject(Subobject subobject, final ByteBuf buffer) {&lt;br/&gt;
     if (srEroSubobject.getSid() != null &amp;amp;&amp;amp; !flags.isS()) &lt;/p&gt;
{
        	long sid = srEroSubobject.getSid();
        	if (flags.isM())
        		sid = sid &amp;lt;&amp;lt; 12;
            writeUnsignedInt(sid, body);
        }
&lt;p&gt;}&lt;/p&gt;

&lt;p&gt;public Subobject parseSubobject(ByteBuf buffer, boolean loose) throws PCEPDeserializerException {&lt;br/&gt;
if (!flags.isS()) &lt;/p&gt;
{
            long sid = buffer.readUnsignedInt();
            if (flags.isM())
            	sid = sid &amp;gt;&amp;gt; 12;
            srEroSubobjectBuilder.setSid(sid);
        }
&lt;p&gt;}&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="23418">BGPCEP-178</key>
            <summary>Processing of M flag is not correct for SR-ERO subobject</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="milos.fabian@pantheon.tech">Milos Fabian</assignee>
                                    <reporter username="bin.b.pan@ericsson.com">Bin Pan</reporter>
                        <labels>
                    </labels>
                <created>Tue, 23 Dec 2014 06:21:11 +0000</created>
                <updated>Sun, 3 Mar 2019 11:50:22 +0000</updated>
                            <resolved>Fri, 23 Jan 2015 10:08:44 +0000</resolved>
                                    <version>Bugzilla Migration</version>
                                    <fixVersion>Bugzilla Migration</fixVersion>
                                    <component>PCEP</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="44883" author="dkutenicsova" created="Mon, 19 Jan 2015 12:09:00 +0000"  >&lt;p&gt;&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/14246/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/14246/&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="44884" author="dkutenicsova" created="Mon, 19 Jan 2015 12:43:52 +0000"  >&lt;p&gt;Resolved for stable/helium&lt;/p&gt;</comment>
                            <comment id="44885" author="milos.fabian@pantheon.tech" created="Wed, 21 Jan 2015 17:29:18 +0000"  >&lt;p&gt;incorporated in draft-update patch for Lithium&lt;br/&gt;
&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/13716/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/13716/&lt;/a&gt;&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>2534</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=2534]]></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="10315"><![CDATA[Lithium]]></customfieldvalue>

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

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