I have two properties in a model:
- leaf protocol,
- leaf port.
I want to specify that:
- if protocol = 'ssh' then default port value is 22,
- if protocol = 'http' then default port value is 80,
- etc.
How do I express this in yang ?
I have two properties in a model:
I want to specify that:
How do I express this in yang ?