Ladislav Lhotka <lho...@nic.cz> writes:
>> typedef Compression-Method {
>>   ...
>> }
>>
>> list node {
>>   config true;
>>   key name;
>>
>>   string name;
>>
>>   leaf-list supported-compression-methods {
>>     type Compression-Method;
>>     config false;
>>   }
>>
>>   Compression-Method compression-method;
>>   must "compression-method ... supported-compression-methods";
>> }

> The only technical problem with your mock-up is that "must" expressions
> on config nodes cannot refer to state data.

Ouch!  That means that any technique like the one I proposed isn't going
to work.  Indeed, it may be that there is no way to constrain a config
leaf based on value(s) provided by the implementation.

Dale

_______________________________________________
netmod mailing list
netmod@ietf.org
https://www.ietf.org/mailman/listinfo/netmod

Reply via email to