Hi,

in some cases, constraints expressed with "when" or "must" may only be
intended for configuration datastores. A typical example is an
auto-negotiable parameter:

leaf auto-foo {
  type boolean;
  default true;
  description "If true, parameter 'foo' will be auto-negotiated.";
}
leaf foo {
  when "../auto-foo = 'false'";
  ...
}

This means that if auto-foo is true, it is impossible to configure the
foo parameter. However, even with auto-foo = true, it is desirable to
see the auto-negotiated value in <operational>, so, ideally, the "when"
constraint should not apply in <operational>.

How can this logic be modelled under NMDA? Is an extra leaf
"foo-operational" needed?

Thanks, Lada

-- 
Ladislav Lhotka
Head, CZ.NIC Labs
PGP Key ID: 0xB8F92B08A9F76C67

_______________________________________________
netmod mailing list
[email protected]
https://www.ietf.org/mailman/listinfo/netmod

Reply via email to