Skip to content

@node-net/netconf/operations/with-defaults ​

RFC 6243 with-defaults: choose how a server reports data nodes that are at their default values.

ts
import { withDefaults } from '@node-net/netconf/operations/with-defaults';

const client = await connect({ transport, extensions: [withDefaults] });
client.content.withDefaults.basicMode;                         // e.g. 'explicit'
await client.ops.getConfig({ withDefaults: 'report-all' });    // include defaults

The extension augments <get>, <get-config> and <copy-config> with a <with-defaults> parameter, the way the ietf-netconf-with-defaults YANG module augments their input. On <copy-config>, servers honour it only when the target is a URL (RFC 6243 §4.5.1); with a datastore target they use their basic mode and ignore it.

See with-defaults.

Interfaces ​

Type Aliases ​

Variables ​

Functions ​

References ​

WITH_DEFAULTS_NS ​

Re-exports WITH_DEFAULTS_NS

Released under the MIT Licence.