Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
PrathibaJee opened this issue Sep 26, 2022 · 0 comments
Assignees

Comments

@PrathibaJee
Copy link
Collaborator

For the Proposal in the issue openBackhaul/core#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 PrathibaJee self-assigned this Sep 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant