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

selected-fc-port must be a reference #37

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

selected-fc-port must be a reference #37

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

Comments

@PrathibaJee
Copy link
Collaborator

For the Proposal in the issue openBackhaul/core#28 , need to modify the attribute selected-fc-port from a list to leaf-list in CoreModel.

Solution :
In the UML2YANG tool in the experimental branch , require to include the following in the /models/tools/pruning-and-refactoring/core-model/src/main/resources/xslt/prune-and-refactor-core-model.xslt to modify the selected-fc-port from a list to leaf-list.

<!-- changing _selectedFcPort in fc-switch from list to leafref -->
<xsl:template match="ownedAttribute[@xmi:id = '_2PdiYI8lEeOw_ste-s6RrA' ]" >
    <xsl:copy>
      <xsl:apply-templates select="@*"/>
      <xsl:attribute name="aggregation">shared</xsl:attribute>
      <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
Projects
None yet
Development

No branches or pull requests

1 participant