IEEE 802 YANG IEEE 802 YANG OAM Modules in Scope: 
Findings during re-engineering of ieee802-dot1ag-cfm.yang into UML - Issues with the YANG files (because the YANG files are still drafts)
ieee802-dot1ag-cfm.yang::path "/dot1q:bridges/dot1q:bridge/lldp:lldp/lldp:port/lldp:remote-systems-data/lldp:chassis-id" ieee802-dot1ag-cfm.yang::path "/dot1q:bridges/dot1q:bridge/lldp:lldp/lldp:port/lldp:remote-systems-data/lldp:port-id" ieee802-dot1ab-lldp.yang::augment "/dot1q:bridges-state/dot1q:bridge"
ieee802-dot1ag-cfm.yang::container fault-alarm--mep-highest-pr-defect ieee802-dot1ag-cfm.yang::”Automagically”
- Mapping Issues
How to model YANG Built-In Type “bits”? Example: mep-defects modeled as a list of enumeration typedef mep-defects { type bits { bit b-def-rdi-ccm { position 0;
It was agreed, that a mapping from UML to YANG "bits" built-in-type is necessary. A third way of enumeration mapping needs to be defined. I.e., enumerations can be mapped to YANG by either using the “enumeration” built-in type or via the “identity”/"base" statement or via the “bits” built-in type. The YANG “bits” built-in type represents a bit set where each bit has an assigned name and shall be used when the enumeration is fixed and an efficient data modeling is preferred. The Enumeration property “isLeaf” and the attribute property OpenInterfaceModel_Profile::OpenInterfaceModelAttribute::encoding together are used to direct the mapping tool to perform the appropriate mapping. isLeaf = true AND encoding = NA -> maps to typedef with enum statement; isLeaf = true AND encoding = BITS -> maps to typedef with bits built-in type; isLeaf = false -> maps to identity/base.  | Using “bits” (isLeaf = true, encoding = BITS) typedef enumeration-1 { type bits { bit LITERAL_1 { position 0; } bit LITERAL_2 { position 1; } bit LITERAL_3 { position 2; } } } container class-h { … leaf attribute-1 { type enumeration-1; default LITERAL_2; } } |
---|
|