<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:53:31 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>[YANGTOOLS-531] JSON for &quot;type bits&quot; in YANG models not handled correctly</title>
                <link>https://jira.opendaylight.org/browse/YANGTOOLS-531</link>
                <project id="10188" key="YANGTOOLS">yangtools</project>
                    <description>&lt;p&gt;We have a section with flags in one of our models, like this:&lt;/p&gt;

&lt;p&gt;  leaf lrs-bits {&lt;br/&gt;
    type bits {&lt;br/&gt;
      bit lookup &lt;/p&gt;
{
        description
          &quot;Lookup bit.&quot;;
      }
&lt;p&gt;      bit rloc-probe &lt;/p&gt;
{
        description
          &quot;RLOC-probe bit.&quot;;
      }
&lt;p&gt;      bit strict &lt;/p&gt;
{
        description
          &quot;Strict bit.&quot;;
      }
&lt;p&gt;    }&lt;br/&gt;
    description&lt;br/&gt;
      &quot;Flag bits per hop.&quot;;&lt;br/&gt;
  }&lt;/p&gt;

&lt;p&gt;I&apos;m trying to use RESTCONF to set more than one bit.  However, if I use an array, only the last one mentioned is actually set:&lt;/p&gt;

&lt;p&gt;&quot;hop&quot;: [&lt;br/&gt;
    &lt;/p&gt;
{
        &quot;address&quot;: &quot;192.0.2.1&quot;,
        &quot;lrs-bits&quot;: [&quot;lookup&quot;, &quot;rloc-probe&quot;, &quot;strict&quot;]
    }
&lt;p&gt;,&lt;br/&gt;
    &lt;/p&gt;
{
        &quot;address&quot;: &quot;192.0.2.2&quot;,
        &quot;lrs-bits&quot;: [&quot;lookup&quot;, &quot;rloc-probe&quot;]
    }
&lt;p&gt;,&lt;/p&gt;
    {
        &quot;address&quot;: &quot;192.0.2.3&quot;,
        &quot;lrs-bits&quot;: [&quot;lookup&quot;, &quot;rloc-probe&quot;, &quot;strict&quot;]
    }
&lt;p&gt;]&lt;/p&gt;


&lt;p&gt;That is, when I read back the restcnf entry, only &quot;strict&quot; is set for the first hop, &quot;rloc-probe&quot; for the second hop, and &quot;strict&quot; for the last hop.  I tried a few different combinations, but all were rejected.&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="22951">YANGTOOLS-531</key>
            <summary>JSON for &quot;type bits&quot; in YANG models not handled correctly</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="pkajsa">Peter Kajsa</assignee>
                                    <reporter username="ljakab">Lori Jakab</reporter>
                        <labels>
                    </labels>
                <created>Tue, 20 Oct 2015 10:13:42 +0000</created>
                <updated>Sun, 10 Apr 2022 18:35:40 +0000</updated>
                            <resolved>Thu, 19 Nov 2015 09:22:10 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>5</watches>
                                                                                                                <comments>
                            <comment id="43602" author="rovarga" created="Tue, 20 Oct 2015 10:20:57 +0000"  >&lt;p&gt;BitsTypeCodec (used by JSON parser via TypeDefinitionAwareCodec) uses a space-separated string for representing a set of bits.&lt;/p&gt;

&lt;p&gt;This should work fine, but the JSON parser should probably be more resistent to incorrect formatting &amp;#8211; by either rejecting the array form, or correctly interpreting it.&lt;/p&gt;</comment>
                            <comment id="43603" author="vrpolak" created="Tue, 20 Oct 2015 16:42:18 +0000"  >&lt;p&gt;&amp;gt; BitsTypeCodec (used by JSON parser via TypeDefinitionAwareCodec) uses a space-separated string for representing a set of bits.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://tools.ietf.org/html/draft-lhotka-netmod-yang-json-02#section-3.3.5&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://tools.ietf.org/html/draft-lhotka-netmod-yang-json-02#section-3.3.5&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&amp;gt; either rejecting the array form, or correctly interpreting it.&lt;/p&gt;

&lt;p&gt;Not rejecting as Beryllium Bug; not interpreting as lack of Boron Improvement?&lt;/p&gt;</comment>
                            <comment id="43604" author="pkajsa" created="Wed, 21 Oct 2015 10:29:30 +0000"  >&lt;p&gt;quickfix - rejecting incorrect array form: &lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/28614/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/28614/&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>4501</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=4501]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10206" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Issue Type</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10305"><![CDATA[Improvement]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10204" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>ODL SR Target Milestone</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10351"><![CDATA[Beryllium-M5]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10202" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Priority</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10301"><![CDATA[Normal]]></customfieldvalue>

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

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