<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:47:57 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>[VTN-77] Unable to determine actual type of VTN flow match/action via RESTCONF.</title>
                <link>https://jira.opendaylight.org/browse/VTN-77</link>
                <project id="10185" key="VTN">vtn</project>
                    <description>&lt;p&gt;Some VTN flow data models are defined using YANG choice statement.&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;layer-4 flow match (vtn-layer4-match)&lt;/li&gt;
	&lt;li&gt;flow action (vtn-action)&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Branch name of YANG choice does not appear in XML/JSON serialized data.&lt;br/&gt;
So REST client cannot determine actual type of layer-4 flow match and flow action if it obtains those data via RESTCONF.&lt;/p&gt;

&lt;p&gt;For example, a data-flow-action list which contains a vtn-pop-vlan-action will be converted to JSON notation like this:&lt;/p&gt;

&lt;p&gt;  &quot;data-flow-action&quot;: [&lt;/p&gt;
    {
      &quot;order&quot;: 0
    }
&lt;p&gt;  ],&lt;/p&gt;

&lt;p&gt;REST client cannot determine the actual type of above action because no type information appears.&lt;/p&gt;

&lt;p&gt;VTN YANG models defined by choice statement should be modified as follows:&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;Every vtn-action case should contain an inner container which indicates the actual type.&lt;br/&gt;
    For example, vtn-pop-vlan-action should be defined as follows.&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;       case vtn-pop-vlan-action-case {&lt;br/&gt;
           container vtn-pop-vlan-action {}&lt;br/&gt;
       }&lt;/p&gt;

&lt;p&gt;    The name of the container always appears in XML/JSON serialized data.&lt;br/&gt;
    So a data-flow-action list which contains a vtn-pop-vlan-action will be converted to JSON as follows.&lt;/p&gt;

&lt;p&gt;       &quot;data-flow-action&quot;: [&lt;br/&gt;
         {&lt;br/&gt;
           &quot;order&quot;: 0,&lt;br/&gt;
           &quot;vtn-pop-vlan-action&quot;: {}&lt;br/&gt;
         }&lt;br/&gt;
       ],&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;The name of inner field in vtn-layer4-match case should have a prefix which indicates the actual type.&lt;br/&gt;
    For example, vtn-icmp-match-fields should be defined as follows.&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;        grouping vtn-icmp-match-fields {&lt;br/&gt;
            leaf icmp-type &lt;/p&gt;
{ type uint8; }&lt;br/&gt;
            leaf icmp-code { type uint8; }
&lt;p&gt;        }&lt;/p&gt;

&lt;p&gt;    A data-flow-match which contains a vtn-icmp-match will be converted to JSON as follows.&lt;/p&gt;

&lt;p&gt;        &quot;data-flow-match&quot;: {&lt;br/&gt;
            &quot;icmp-code&quot;: 0,&lt;br/&gt;
            &quot;icmp-type&quot;: 8,&lt;br/&gt;
            &quot;vtn-ether-match&quot;: &lt;/p&gt;
{
                &quot;ether-type&quot;: 2048,
            }
&lt;p&gt;,&lt;br/&gt;
            &quot;vtn-inet-match&quot;: &lt;/p&gt;
{
                &quot;protocol&quot;: 1
            }
&lt;p&gt;        },&lt;/p&gt;

&lt;p&gt;    REST client can determine ICMP match conditions by &quot;icmp-&quot; prefix in field name.&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="26457">VTN-77</key>
            <summary>Unable to determine actual type of VTN flow match/action via RESTCONF.</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="yasuda">Shigeru Yasuda</reporter>
                        <labels>
                    </labels>
                <created>Wed, 17 Jun 2015 19:20:14 +0000</created>
                <updated>Thu, 19 Oct 2017 21:25:02 +0000</updated>
                            <resolved>Thu, 18 Jun 2015 06:58:45 +0000</resolved>
                                    <version>unspecified</version>
                                                    <component>VTN Manager</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="52948" author="yasuda" created="Wed, 17 Jun 2015 19:37:50 +0000"  >&lt;p&gt;&lt;a href=&quot;https://git.opendaylight.org/gerrit/22817&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/22817&lt;/a&gt;  (master)&lt;/p&gt;</comment>
                            <comment id="52949" author="hideyuki.tai@necam.com" created="Wed, 17 Jun 2015 23:27:58 +0000"  >&lt;p&gt;&lt;a href=&quot;https://git.opendaylight.org/gerrit/22838&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/22838&lt;/a&gt; (stable/lithium)&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>3789</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=3789]]></customfieldvalue>

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

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