Hi Kent, From https://tools.ietf.org/html/rfc7950#section-9.11 An empty type cannot have a default value.
Regards, Reshad. From: netmod <[email protected]> on behalf of Kent Watsen <[email protected]> Date: Friday, May 17, 2019 at 3:53 PM To: "[email protected]" <[email protected]> Subject: [netmod] can a leaf of type "empty" have a "default" value? A leaf with type "empty" is often times used to represent a boolean: present == set, not present == not set. Is there a way in YANG to specify that the "empty" type leaf is "set" by default? Perhaps like this: leaf flag { type empty; default ""; } Kent // contributor
_______________________________________________ netmod mailing list [email protected] https://www.ietf.org/mailman/listinfo/netmod
