Assume that I have configured all leaf.
container test{
list ipv4-list {
key "ipv4addr";
leaf ipv4addr { type inet:ipv4-prefix; }
leaf lid { type yang:counter64 ; }
leaf glid { type yang:counter64; }
leaf lsn-lid { type yang:counter64 ; }
leaf age { type yang:counter64; }
}
}
Next time when I configure
case 1:
ipv4addr lid
then
only ipv4addr and lid and age should be set and rest other should be reset.
case 2:
ipv4addr lid glid
then
only ipv4addr, lid, glid and age should be set and rest other should be reset.
i.e. at any point, only recent configuration should be present (for first 4 leaf).
Can we put such constrain?