5G-xHaul icon indicating copy to clipboard operation
5G-xHaul copied to clipboard

control-construct::equipment::actual-equipment::is-hot-swappable parameter to be defined in detail

Open PrathibaJee opened this issue 2 years ago • 0 comments

For the Proposal in the issue https://github.com/openBackhaul/core/issues/26 , need to include a comment to the attribute is-hot-swappable

Solution : In the UML2YANG tool in the experimental branch , require to include the following code in the /models/tools/pruning-and-refactoring/core-model/src/main/resources/xslt/prune-and-refactor-core-model.xslt

<!-- To include the comment for the attribute is-hot-swappable  -->
<xsl:template match="ownedAttribute[@name='isHotSwappable']">
    <xsl:copy>
      <xsl:apply-templates select="@*"/>
            <ownedComment xmi:type="uml:Comment" xmi:id="_yb3zEEQgEeasL6dcjI1vCC" annotatedElement="_yb3zEEQgEeasL6dcjI1vEA">
                <body>This attribute shall be set on true, if the described equipment could be inserted or removed from the running system, + (without the need of powering the system down or restarting it) + (without being damaged or causing damage to any other element in the system where the equipment is inserted/removed) + (without causing traffic interruption or an alteration on the performance of other components or parts of the system not directly supported by this equipment.) The aforementioned characteristic shall not require any manual change on other components of the system. Potential traffic interruption on the interfaces supported by the component, which is being replaced, shall not matter to the value of the is-hot-swappable attribute.</body>
              </ownedComment>
      <xsl:apply-templates select="node() | text()"/>
      </xsl:copy>
</xsl:template>

Note : Include this in the end of the file before the tag </xsl:stylesheet>

PrathibaJee avatar Sep 26 '22 15:09 PrathibaJee