cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
741
Views
2
Helpful
3
Replies

NSO: building NED errors Yang model 1.0 vs 1.1

nrajan
Level 1
Level 1

Hello All,

We are using NSO 6.1 for our project, and working on building ned - few of the errors we get, appears to be related to yang 1.0 like - 

an identifier must not start with [xX][mM][lL] in YANG version 1

or, leaf type “empty” cannot be part of union

These errors should not be coming if NSO 6.1 was complaint with RFC 7950 (Yang 1.1).

Is there a way to make NSO 6.1, complaint with 1.1? 

3 Replies 3

jvikman
Cisco Employee
Cisco Employee

Hi nrajan,

There's no support for empty leafs in unions at the moment but we have it in our plan.

Can you describe more in detail what you're trying to do with the identifier? Are you using the statement "yang-version 1.1"?

BR,

Johan

snovello
Cisco Employee
Cisco Employee
If the yang modulke contains a yang 1.1 model, so it includes the line
yang-version 1.1;
than NSO will treat it as a yang 1.1 version model. Otherwise it will treat it as a yang 1.0 module. The RFC requires that.

With that change you will see the xmlXML identifier issues go.

However empty types in unions are not supported in nso 6.1

For workarounds, you could edit you model by using a type like
type string {
length 0;
}

nrajan
Level 1
Level 1

Thank you @snovello and @jvikman ..This helps.