<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:32: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>[OPNFLWPLUG-315] OutputActionBuilder.setOutputNodeConnector(new Uri(&quot;1&quot;)); needs to be replaced with ... setOutputNodeConnector(new NodeConnectorId(...))</title>
                <link>https://jira.opendaylight.org/browse/OPNFLWPLUG-315</link>
                <project id="10155" key="OPNFLWPLUG">OpenFlowPlugin</project>
                    <description>&lt;p&gt;In a number of places of the controller code, I see code that looks like this:&lt;/p&gt;

&lt;p&gt;1  private void prepareActionOutput(OutputActionCaseBuilder wrapper) &lt;/p&gt;
{
2       OutputActionBuilder outputActionBuilder = new OutputActionBuilder();
3       outputActionBuilder.setOutputNodeConnector(new Uri(&quot;1&quot;));  &amp;lt;==== ?!?
4       wrapper.setOutputAction(outputActionBuilder.build());
5   }

&lt;p&gt;Line 3 is an issue because while it is legal, it is not a NodeConectorId type.&lt;/p&gt;

&lt;p&gt;As mentioned by Martin in core review: &lt;/p&gt;

&lt;p&gt;  &lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/12568/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/12568/&lt;/a&gt;	&lt;br/&gt;
  Martin Bobak		Nov 12 2:44 AM&lt;br/&gt;
  Patch Set 8: -Code-Review&lt;br/&gt;
  I do believe, that patchset 8 as well as patchset 1 is not responsible for &lt;br/&gt;
  uri becoming just &#8216;CONTROLLER&#8217;. W/out the &apos;OF:dpid:&#8217;. Method &lt;br/&gt;
  toADNodeConnectorId always returns only port number part of uri - as a short &lt;br/&gt;
  number or whatever string it was.&lt;/p&gt;

&lt;p&gt;there is quite a bit of confusion on the proper use of&lt;br/&gt;
&quot;OutputActionBuilder.setOutputNodeConnector()&quot; because it takes Uri and that&lt;br/&gt;
has the potential of run time bugs where the Type:DPID:Port notation is not&lt;br/&gt;
provided. A better idea would be to make&lt;br/&gt;
OutputActionBuilder.setOutputNodeConnector() require NodeConnectorId as the parameter.&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="27583">OPNFLWPLUG-315</key>
            <summary>OutputActionBuilder.setOutputNodeConnector(new Uri(&quot;1&quot;)); needs to be replaced with ... setOutputNodeConnector(new NodeConnectorId(...))</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="10001">Won&apos;t Do</resolution>
                                        <assignee username="flavio@flaviof.com">Flavio Fernandes</assignee>
                                    <reporter username="flavio@flaviof.com">Flavio Fernandes</reporter>
                        <labels>
                    </labels>
                <created>Thu, 13 Nov 2014 14:41:45 +0000</created>
                <updated>Mon, 27 Sep 2021 09:01:22 +0000</updated>
                            <resolved>Wed, 27 May 2015 15:41:03 +0000</resolved>
                                                                    <component>General</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>7</watches>
                                                                                                                <comments>
                            <comment id="56303" author="tkubas@cisco.com" created="Fri, 27 Feb 2015 14:09:46 +0000"  >&lt;p&gt;Hi Flavio,&lt;br/&gt;
we made changes in openflowplugin to make use of setOutputNodeConnector method in class OutputActionBuilder more clear. You can find these changes here:&lt;br/&gt;
&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/15824/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/15824/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;For now we don&apos;t consider changing of parameters in mentioned method for several reasons: &lt;br/&gt;
1. it would require changes in model, that would affect plenty of modules including integretion tests&lt;br/&gt;
2. type NodeConnectorId extends Uri and doesn&apos;t encapsulate any other logic&lt;/p&gt;

&lt;p&gt;Is there any good argument for encapsulation of NodeConnectorId parameter?&lt;/p&gt;</comment>
                            <comment id="56304" author="flavio@flaviof.com" created="Fri, 27 Feb 2015 14:24:57 +0000"  >&lt;p&gt;(In reply to Timotej Kubas from comment #1)&lt;br/&gt;
&amp;gt; Hi Flavio,&lt;br/&gt;
&amp;gt; we made changes in openflowplugin to make use of setOutputNodeConnector&lt;br/&gt;
&amp;gt; method in class OutputActionBuilder more clear. You can find these changes&lt;br/&gt;
&amp;gt; here:&lt;br/&gt;
&amp;gt; &lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/15824/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/15824/&lt;/a&gt;&lt;br/&gt;
&amp;gt; &lt;br/&gt;
&amp;gt; For now we don&apos;t consider changing of parameters in mentioned method for&lt;br/&gt;
&amp;gt; several reasons: &lt;br/&gt;
&amp;gt; 1. it would require changes in model, that would affect plenty of modules&lt;br/&gt;
&amp;gt; including integretion tests&lt;br/&gt;
&amp;gt; 2. type NodeConnectorId extends Uri and doesn&apos;t encapsulate any other logic&lt;br/&gt;
&amp;gt; &lt;br/&gt;
&amp;gt; Is there any good argument for encapsulation of NodeConnectorId parameter?&lt;/p&gt;


&lt;p&gt;Thanks Timotej. The only argument for encapsulation is to help callers&lt;br/&gt;
using the expected value. Bc using the wrong value causes a very chatty&lt;br/&gt;
log (See bugs 2021 and 2757); the caller is never made aware that it used&lt;br/&gt;
the expected format.&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>2382</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=2382]]></customfieldvalue>

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

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