Skip to content

Function: isDefault() ​

ts
function isDefault(element): boolean;

Defined in: netconf/src/operations/with-defaults.ts:70

True if an element in a report-all-tagged reply is marked as default data (wd:default="true" or "1", RFC 6243 §6).

RFC 6243 puts the attribute in DEFAULT_ATTRIBUTE_NS. libyang-based servers (netopeer2) put it in the YANG module's namespace, WITH_DEFAULTS_NS, so both are accepted.

Parameters ​

element ​

XmlElement

Returns ​

boolean

Released under the MIT Licence.