<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:09:25 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>[MDSAL-292] Pattern attribute ignored for leaf-list/leaf</title>
                <link>https://jira.opendaylight.org/browse/MDSAL-292</link>
                <project id="10137" key="MDSAL">mdsal</project>
                    <description>&lt;p&gt;leaf/leaf-list should support string type with pattern.&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="27114">MDSAL-292</key>
            <summary>Pattern attribute ignored for leaf-list/leaf</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="JieHan2017">Jie Han</assignee>
                                    <reporter username="han.jie@zte.com.cn">Jie Han</reporter>
                        <labels>
                    </labels>
                <created>Fri, 22 Sep 2017 07:00:21 +0000</created>
                <updated>Thu, 22 Mar 2018 09:24:38 +0000</updated>
                            <resolved>Thu, 22 Mar 2018 09:24:38 +0000</resolved>
                                                                    <component>Binding codegen</component>
                    <component>Binding V2 codegen</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>5</watches>
                                                                                                                <comments>
                            <comment id="54780" author="deepthi.v.v@ericsson.com" created="Fri, 22 Sep 2017 07:03:52 +0000"  >&lt;p&gt;(In reply to Jie Han from comment #0)&lt;br/&gt;
&amp;gt; leaf/leaf-list should support string type with pattern.&lt;/p&gt;

&lt;p&gt;Leaf supports it. Code is missing only for leaf-list.&lt;/p&gt;</comment>
                            <comment id="54781" author="han.jie@zte.com.cn" created="Fri, 22 Sep 2017 07:25:01 +0000"  >&lt;p&gt;(In reply to Deepthi V V from comment #1)&lt;br/&gt;
&amp;gt; (In reply to Jie Han from comment #0)&lt;br/&gt;
&amp;gt; &amp;gt; leaf/leaf-list should support string type with pattern.&lt;br/&gt;
&amp;gt; &lt;br/&gt;
&amp;gt; Leaf supports it. Code is missing only for leaf-list.&lt;/p&gt;


&lt;p&gt;Both v1 and v2, for yang snippet :&lt;br/&gt;
    container apple {&lt;br/&gt;
        leaf apple {&lt;br/&gt;
            type string &lt;/p&gt;
{
              pattern &quot;[0-9]*&quot;;
            }
&lt;p&gt;        }&lt;br/&gt;
    }&lt;/p&gt;

&lt;p&gt;and finally I get:&lt;br/&gt;
    public AppleBuilder setApple(final java.lang.String value) {&lt;br/&gt;
        if (value != null) &lt;/p&gt;
{
            check_appleLength(value);
        }
&lt;p&gt;        this._apple = value;&lt;br/&gt;
        return this;&lt;br/&gt;
    }&lt;/p&gt;

&lt;p&gt;so is there any difference ? could you please paste your yang?&lt;/p&gt;</comment>
                            <comment id="54782" author="deepthi.v.v@ericsson.com" created="Fri, 22 Sep 2017 08:40:26 +0000"  >&lt;p&gt;Jie, as I mentioned before leaf works fine. Try with leaf-list.&lt;/p&gt;</comment>
                            <comment id="54783" author="rovarga" created="Fri, 22 Sep 2017 10:31:41 +0000"  >&lt;p&gt;Looks like TypeProviderImpl is doing the wrong thing &amp;#8211; it is not generating a restricted type to hold the leaf value. I would suggest looking around CompatUtils.compatLeafType() call sites.&lt;/p&gt;</comment>
                            <comment id="60949" author="jiehan2017" created="Tue, 6 Feb 2018 10:07:58 +0000"  >&lt;p&gt;&lt;a href=&quot;https://git.opendaylight.org/gerrit/67851&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/67851&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;https://git.opendaylight.org/gerrit/67709&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/67709&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;https://git.opendaylight.org/gerrit/67765&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/67765&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10002">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="29404">MDSAL-319</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <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>9198</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=9198]]></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_10000" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i02xhz:</customfieldvalue>

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