cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
295
Views
0
Helpful
0
Replies

Junos YANG error in grouping security-authentication-key-chains

cspeidel
Level 1
Level 1

There appears to be an error in the Junos YANG model (using NED juniper-junos-nc-4.5.1) in regards to authentication key chains in Junos. The problem is the length defined for the leaf 'secret' at path:

/ncs:devices/device{router}/config/junos:configuration/security/authentication-key-chains/key-chain{testkeychain}/key{0}/

NSO can't load my router configuration with the secret key set. NSO errors out loading the config:

"invalid value for secret, has a bad length/size".

The YANG model length defined for the leaf 'secret' is "1..126", which apparently isn't large enough. This length might have accidentally been copied from the length that Juniper defined for "name", so I don't know what the length is technically supposed to be. I increased the length to 192 and recompiled the NED, reloaded it in NSO, and was able to load the configuration without errors now. 

fwiw the line number in the YANG model where the issue occurs in this version of the NED is 294,373. 

0 Replies 0