Hi,
I have a grouping similar to the one below with several other attributes.
grouping common-attrib {
leaf defaultLeaseTime {
description "Default lease time in seconds";
type uint32 {
range "1..31104000";
}
default 3600;
units "seconds";
}
}
Now this grouping is used in multiple places as below.
container server {
container global-client-attributes {
**uses common-attrib;**
}
list subnet {
leaf subnet-with-prefix-length {
type inet:ipv4-prefix;
}
container client-attributes {
**uses common-attrib;**
}
}
}
Here I want the default value(3600s) of defaultLeaseTime leaf within the grouping to be applied only at the global level(server/global-client-attributes). Value for the same leaf inside the subnet list should be coming from user configuration only(no default value has to be set).
Is there a way to achieve this by still using the grouping?