<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:38:49 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>[SFC-172] Service Functions created from GUI cause sfc_agent crash</title>
                <link>https://jira.opendaylight.org/browse/SFC-172</link>
                <project id="10167" key="SFC">sfc</project>
                    <description>&lt;p&gt;If service Function is created from GUI it adds additional prefix service-function-type&lt;br/&gt;
for the SF type and that causes sfc_agent crash while parsing the create SF REST message.&lt;/p&gt;

&lt;p&gt;Here are steps to reproduce the bug.&lt;br/&gt;
0. Build and Install boron sfc ODL controller.&lt;br/&gt;
  git clone &lt;a href=&quot;https://git.opendaylight.org/gerrit/p/sfc.git&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/p/sfc.git&lt;/a&gt;  --branch stable/boron&lt;br/&gt;
1. Connect to SFC GUI, http://&amp;lt;odl-ip&amp;gt;:8181/index.html&lt;br/&gt;
2. build sfc package from sfc-py folder and install it on your SF node &lt;br/&gt;
3. Run sfc_agent on SF as &apos;sudo python3.4 sfc/sfc_agent.py --rest --odl-ip-port odl-controller-ip&amp;gt;:8181 &amp;amp;&lt;br/&gt;
4. Connect to SFC GUI, Click on Service Functions , then click on Add Service function , use default template and save SF.&lt;br/&gt;
5. Fetch the service function created using RESTConf&lt;br/&gt;
    (http://&amp;lt;odl-controller-ip&amp;gt;:8181/apidoc/explorer/index.html#!/service-function(2014-07-01)/GET_service_functions_get_1)&lt;br/&gt;
6. You would see output something like below&lt;/p&gt;

&lt;p&gt;    {&lt;br/&gt;
        &quot;name&quot;: &quot;firewall-1&quot;,&lt;br/&gt;
        &quot;sf-data-plane-locator&quot;: [&lt;/p&gt;
          {
            &quot;name&quot;: &quot;firewall-1-dpl&quot;,
            &quot;ip&quot;: &quot;172.16.9.43&quot;,
            &quot;port&quot;: 6633,
            &quot;service-function-forwarder&quot;: &quot;SFF2&quot;,
            &quot;transport&quot;: &quot;service-locator:vxlan-gpe&quot;
          }
&lt;p&gt;        ],&lt;br/&gt;
        &quot;nsh-aware&quot;: true,&lt;br/&gt;
        &quot;rest-uri&quot;: &quot;http://172.16.9.43:5000&quot;,&lt;br/&gt;
        &quot;ip-mgmt-address&quot;: &quot;172.16.9.43&quot;,&lt;br/&gt;
        &quot;type&quot;: &quot;service-function-type:firewall&quot;&lt;br/&gt;
      }&lt;/p&gt;

&lt;p&gt;5. The type is getting set as&lt;br/&gt;
   &quot;type&quot;: &quot;service-function-type:firewall&quot;&lt;/p&gt;

&lt;p&gt;Hence when ODL sends create SF REST message to SF, SF type gets sent as&lt;/p&gt;
   {&quot;type&quot;: &quot;service-function-type:service-function-type:firewall&quot;} 
&lt;p&gt;whereas sfc_agent is expecting it to be&lt;/p&gt;
    {&quot;type&quot;: &quot;service-function-type:firewall&quot;}</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="24198">SFC-172</key>
            <summary>Service Functions created from GUI cause sfc_agent crash</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="swati.deshpande@serro.com">Swati Deshpande</reporter>
                        <labels>
                    </labels>
                <created>Mon, 14 Nov 2016 14:16:26 +0000</created>
                <updated>Thu, 19 Oct 2017 21:26:38 +0000</updated>
                            <resolved>Tue, 29 Nov 2016 13:53:38 +0000</resolved>
                                    <version>unspecified</version>
                                                    <component>General</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="46717" author="venkatamaheshkotha@gmail.com" created="Tue, 29 Nov 2016 09:44:50 +0000"  >&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;I have reproduced your steps, I got this:&lt;br/&gt;
{&lt;br/&gt;
  &quot;service-functions&quot;: {&lt;br/&gt;
    &quot;service-function&quot;: [&lt;br/&gt;
      {&lt;br/&gt;
        &quot;name&quot;: &quot;SF1&quot;,&lt;br/&gt;
        &quot;nsh-aware&quot;: true,&lt;br/&gt;
        &quot;type&quot;: &quot;firewall&quot;,&lt;br/&gt;
        &quot;sf-data-plane-locator&quot;: [&lt;/p&gt;
          {
            &quot;name&quot;: &quot;dp1&quot;,
            &quot;ip&quot;: &quot;10.0.0.1&quot;,
            &quot;service-function-forwarder&quot;: &quot;&quot;,
            &quot;transport&quot;: &quot;service-locator:vxlan-gpe&quot;
          }
&lt;p&gt;        ]&lt;br/&gt;
      }&lt;br/&gt;
    ]&lt;br/&gt;
  }&lt;br/&gt;
}&lt;/p&gt;</comment>
                            <comment id="46718" author="swati.deshpande@serro.com" created="Tue, 29 Nov 2016 12:22:47 +0000"  >&lt;p&gt;The fix for this bug has been merged to master .&lt;br/&gt;
 &lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/48398/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/48398/&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="46719" author="venkatamaheshkotha@gmail.com" created="Tue, 29 Nov 2016 12:30:09 +0000"  >&lt;p&gt;If it is resolved then make status as resolved and fixed&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>7179</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=7179]]></customfieldvalue>

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

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