openBackhaul / wireInterface

Technology specific interface definition for Ethernet PHY interfaces according to IEEE 802.3
Apache License 2.0
2 stars 1 forks source link

String based datatypes to be explained in YANG files #12

Closed openBackhaul closed 4 years ago

openBackhaul commented 5 years ago

Either ImplementationCommonDatatypes or IetfYangTypes to be use in UML. Types not been translated into String during UML2YANG translation, but to maintained with the initial names. YANG representation of ImplementationCommonDatatypes or IetfYangTypes to be generated and to be imported into YANG file of tech.spec. Interface/Profile yang.

openBackhaul commented 4 years ago
ImplementationCommonDataTypes IetfYangTypes (UML) IetfYangTypes (YANG)
DateTime DateAndTime date-and-time
Uuid Uuid uuid
MacAddress MacAddress mac-address
     
ImplementationCommonDataTypes IetfInetTypes IetfInetTypes
Ipv4Address Ipv4Address ipv4-address
demx8as6 commented 4 years ago

generated example for yang:date-and-time - pyang validation ok: 2019-11-10

leaf time-stamp {
  type yang:date-and-time;
demx8as6 commented 4 years ago

generated example for yang:uuid - pyang validation ok: 2019-11-10

leaf object-id-ref {
      type yang:uuid;
      config false;
      description
        "ID of the affected MW_AirInterface_Pac";
    }
openBackhaul commented 4 years ago

IETF Types manually added to the YANG file produced by UML2YANG tool.