Skip to content

Interface: EditConfigOptions ​

Defined in: netconf/src/operations/base.ts:136

Options for <edit-config>. See Write operations.

Properties ​

config? ​

ts
readonly config?: 
  | Child
  | YangJsonObject;

Defined in: netconf/src/operations/base.ts:145

Configuration content, placed inside <config>: XML, or an RFC 7951 JSON object, which the client converts with the target's YANG schema (RFC 7952 metadata ietf-netconf:operation and yang:insert become the edit attributes). Give exactly one of config and url.


defaultOperation? ​

ts
readonly defaultOperation?: "replace" | "none" | "merge";

Defined in: netconf/src/operations/base.ts:152

The operation for content with no operation attribute of its own. Server default 'merge'; 'none' changes only what is marked.


errorOption? ​

ts
readonly errorOption?: "stop-on-error" | "continue-on-error" | "rollback-on-error";

Defined in: netconf/src/operations/base.ts:156

'rollback-on-error' needs :rollback-on-error.


target ​

ts
readonly target: "running" | "candidate";

Defined in: netconf/src/operations/base.ts:138

The datastore to edit: 'running' needs :writable-running, 'candidate' needs :candidate.


testOption? ​

ts
readonly testOption?: "set" | "test-then-set" | "test-only";

Defined in: netconf/src/operations/base.ts:154

'test-only' needs :validate:1.1; the others need :validate.


url? ​

ts
readonly url?: string;

Defined in: netconf/src/operations/base.ts:147

Load the configuration from a URL (:url).

Released under the MIT Licence.