- This topic has 1 reply, 2 voices, and was last updated 4 years, 5 months ago by .
Viewing 1 reply thread
Viewing 1 reply thread
- You must be logged in to reply to this topic.
Home › Forums › YumaPro User Forum › Error making SIL Bundle – key leaf must match list ee
I’m trying to build a sil bundle. The yang model includes IF-MIB. I’m getting a lot of similar errors with the same error message. Here’s an example of one of them. I checked the cheat sheet and everything looks OK. Any ideas? Thanks.
Error: ‘config-stmt for key leaf ‘ifIndex’ on line 129 must match list ‘ifEntry’
IF-MIB.yang:123.7: error(304): wrong index type
prefix “if-mib”;
typedef InterfaceIndex {
type int32 {
range “1..2147483647”;
}
description
“A unique value, greater than zero, for each interface or
interface sub-layer in the managed system. It is
recommended that values are assigned contiguously starting
from 1. The value for each interface sub-layer must remain
constant at least from one re-initialization of the entity’s
network management system to the next re-initialization.”;
}
list ifEntry {
key “ifIndex”;
description
“An entry containing management information applicable to a
particular interface.”;
leaf ifIndex {
type if-mib:InterfaceIndex;
config false;
description
“A unique value, greater than zero, for each interface. It
is recommended that values are assigned contiguously
starting from 1. The value for each interface sub-layer
must remain constant at least from one re-initialization of
the entity’s network management system to the next re-
initialization.”;
}
You cannot have a list that is config=true and a key leaf for that is config=false