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

LogicalTerminationPoint::_(!)physicalPortReference need to be pruned #44

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

Comments

@PrathibaJee
Copy link
Collaborator

For the proposal in the issue openBackhaul/core#10 , need to prune the attribute LogicalTerminationPoint:physicalPortRefernce[*] from the CoreModel ,

Solution :
In the UML2YANG tool in the experimental branch ,

  • need to remove the following template from the /models/tools/pruning-and-refactoring/core-model/src/main/resources/xslt/prune-and-refactor-core-model.xslt
<!-- To change the datatype of physical-port-reference from string to leafref to point to a instance in the equipment list -->
  <xsl:template match="ownedAttribute[@xmi:id = '_RLDi4BieEeSh8KVgZCMyDw' ]" >
    <xsl:copy>
      <xsl:apply-templates select="@*"/>
      <xsl:attribute name="type">_8SXNej-HEeaRI-H69PghuA</xsl:attribute>
      <xsl:attribute name="aggregation">shared</xsl:attribute>
      <xsl:attribute name="association">_X1qQMD-QEeaRI-H69PghuA</xsl:attribute>
      <xsl:apply-templates select="node()  | text()"/>
    </xsl:copy>
  </xsl:template>
  • need to modify the field "Prune" to true for the attribute physical-port-reference in the /models/tools/pruning-and-refactoring/core-model/src/main/resources/xslt/pruning-control.xml.
<property id="_RLDi4BieEeSh8KVgZCMyDw" name="physicalPortReference" prune="true"/>
@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