I have a base model:
model base {
namespace "urn:base";
prefix b;
container c {
leaf id {
type uint8;
}
leaf temp {
type uint8;
}
}
}
How to add/augment a conditional statement to /base:c/base:temp
, so it's available in some specific conditions?
My first approach is to use augment
in a second model, but it is not possible for leaf. From https://datatracker.ietf.org/doc/html/rfc6020:
This node is called the augment's target node. The target node MUST be either a container, list, choice, case, input, output, or notification node. It is augmented with the nodes defined in the substatements that follow the "augment" statement.