Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3
Page properties
label
Status
Status
colourBlue
titleExecuted
Stakeholders
Outcome
Due date
OwnerMartin Skorupski 

Decision

Issue#06 closed, because of redundancy with issue#01

Background

Content of the Mantis Bugtracker

Some default values got lost between 3rd PoC and ONF-TR-532, other default values causes a warning by pyang.

[Please see also issue 01, sorry I just saw it now - ether this or issue1 could be closed.]
Additional InformationSome indications from "pruning and refactroing"

    <!-- ensure that "missing" default values are added from the previous uml -->
    <xsl:template match="defaultValue">
        <xsl:copy>
            <xsl:choose>
                <xsl:when test="@xmi:id = '_1j9zMLiREeaQVsjMEL9uqw'">
                    <xsl:attribute name="value">disabled</xsl:attribute>
                </xsl:when>
                <xsl:when test="@xmi:id = '_bjYFYNmFEeWNurTV5r0nnA'">
                    <xsl:attribute name="value">0</xsl:attribute>
                </xsl:when>
                <xsl:when test="key('idRef', @instance)/@name">
                    <xsl:attribute name="value"><xsl:value-of select="fn:replace( fn:lower-case( key('idRef', @instance)/@name), '_', '-' )"></xsl:value-of></xsl:attribute>
                </xsl:when>
                <xsl:when test="fn:not(@value) and fn:not(key('idRef', @instance)/@name) and @xmi:type = 'uml:LiteralBoolean' ">
                    <xsl:attribute name="value">false</xsl:attribute>
                </xsl:when>
            </xsl:choose>
            <xsl:apply-templates select="* | @* | text()"/>
        </xsl:copy>
    </xsl:template>



Some indications from pyang:
microwave-model@2017-03-24.yang:879 (at microwave-model@2017-03-24.yang:71): warning: default value for a key leaf is ignored
microwave-model@2017-03-24.yang:883 (at microwave-model@2017-03-24.yang:190): warning: default value for a key leaf is ignored
microwave-model@2017-03-24.yang:1424 (at microwave-model@2017-03-24.yang:543): warning: default value for a key leaf is ignored
microwave-model@2017-03-24.yang:1428 (at microwave-model@2017-03-24.yang:573): warning: default value for a key leaf is ignored
microwave-model@2017-03-24.yang:1666 (at microwave-model@2017-03-24.yang:638): warning: default value for a key leaf is ignored
microwave-model@2017-03-24.yang:1558 (at microwave-model@2017-03-24.yang:661): warning: default value for a key leaf is ignored
microwave-model@2017-03-24.yang:2015 (at microwave-model@2017-03-24.yang:734): warning: default value for a key leaf is ignored
microwave-model@2017-03-24.yang:1798 (at microwave-model@2017-03-24.yang:793): warning: default value for a key leaf is ignored