> On 02 Nov 2015, at 02:16, Andy Bierman <a...@yumaworks.com> wrote:
> 
> Hi,
> 
> I started a separate thread for this issue.
> The current YANG 1.1 text is incomplete wrt/ default-stmt.
> 
>   leaf broken {
>      type enumeration {
>         enum option1 {
>            if-feature option1;
>         }
>         enum option2 {
>            if-feature option2;
>         }
>         enum option3;
>      }
>      default "option2";
>    }
> 
> 
> What happens if the server does not advertise the option2 feature?
> 
> I see 2 options:
>   (A) add text that says a default-stmt MUST NOT include any conditional
>       values
>   (B) allow if-feature as a sub-statement of the default-stmt

or (C) a default statement that specifies a value that's not permitted is an 
error.

Lada

> 
> (BTW, customers have asked for (B), so it may be a feature and a bugfix)
> 
> 
> Andy
> 
> 
> 
> _______________________________________________
> netmod mailing list
> netmod@ietf.org
> https://www.ietf.org/mailman/listinfo/netmod

--
Ladislav Lhotka, CZ.NIC Labs
PGP Key ID: E74E8C0C




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

Reply via email to