Hello,
I have a question regarding the default value of "/repro:cont/repro:a", after
deviations have been applied. Since the default value is defined in "typedef
type_a", and we then replace the type of "/repro:cont/repro:a", should the
default value of this leaf be removed?
I have not been able to find the answer in the YANG RFCs.
----
module repro {
yang-version 1.1;
namespace "rep:ro";
prefix repro;
typedef type_a {
type enumeration {
enum up {
value 1;
}
enum down {
value 2;
}
enum testing {
value 3;
}
}
default "down";
}
typedef type_b {
type enumeration {
enum up {
value 1;
}
enum down {
value 2;
}
enum testing {
value 3;
}
}
}
container cont {
presence "blablablbala";
leaf a {
type type_a;
}
leaf b {
type type_b;
default "down";
}
}
deviation "/repro:cont/repro:a" {
deviate replace {
type enumeration {
enum up {
value 1;
}
enum down {
value 2;
}
}
}
}
deviation "/repro:cont/repro:b" {
deviate replace {
type enumeration {
enum up {
value 1;
}
enum down {
value 2;
}
}
}
}
}
----
Best regards, Kristian Sällberg
_______________________________________________
netmod mailing list
[email protected]
https://www.ietf.org/mailman/listinfo/netmod