Below example is correct yang statement or not? it is valid by pyang but JNC is unable to process
grouping TLId {
leaf age {
type Age;
mandatory true;
}
}
typedef Age {
type string {
pattern '[0-9][0-9]';
}
}
Please suggest
Below example is correct yang statement or not? it is valid by pyang but JNC is unable to process
grouping TLId {
leaf age {
type Age;
mandatory true;
}
}
typedef Age {
type string {
pattern '[0-9][0-9]';
}
}
Please suggest
Copyright © 2021 Jogjafile Inc.
Your YANG snippet is valid.
Typedefs are assigned to a different namespace compared to schema node identifiers - there can never be a name conflict between a leaf identifier and a typedef identifier, as decribed in Section 6.2.1 of RFC7950: