Hi,
We are migrating from ConfD 5.0 to 6.4.3 and while compiling my yang file it gives error “The node ‘umts’ and the node ‘umts’ (at myYangFile.yang) have been assigned different code-names. When tailf:code-name is used, the same code-name must be assigned to all identifiers with the same name.”
Actually, in my case. first container name is umts and leaf node which is part of second container has its name as umts. Isn’t it like two different nodes which are not part of each other can have same name?
Whats is the approach to be followed to get rid of this error? It was compiling successful in ConfD 5.0
container umts {
description “UMTS profiles.”;
leaf access-mode {
description "The type of access mode";
type enumeration {
enum open {tailf:code-name "accessmode-local"; value 0;}
enum closed {tailf:code-name "accessmode-closed";}
enum hybrid {tailf:code-name "accessmode-hybrid";}
}
default open;
}
leaf access-decision {
description "The access decision ";
type enumeration {
enum local {tailf:code-name "accessdecision-local";value 0;}
enum query {tailf:code-name "accessdecision-query";}
enum byCore {tailf:code-name "accessdecision-bycore";}
}
default query;
}
}
container statistics {
description “statistics profiles.”;
leaf umts{
description "UMTS statistics";
type uint8 {
range "0|1..60";
}
tailf:code-name "cws-umts-stats";
default 15;
}
}
Thanks in advance.