Skip to content

Interface: CompareOptions ​

Defined in: netconf/src/operations/compare.ts:67

What client.ops.compare.datastores() compares: two datastores, and optionally a filter.

Properties ​

all? ​

ts
readonly all?: boolean;

Defined in: netconf/src/operations/compare.ts:76

Compare every data node. Without it, when one side is operational and the other holds only configuration, state data is left out.


filter? ​

ts
readonly filter?: 
  | YangJsonObject
  | Filter;

Defined in: netconf/src/operations/compare.ts:84

Compare only part of the datastores: subtree(...), xpath(...) / client.content.toXPath(path) (needs :xpath), or an RFC 7951 JSON object, converted to a subtree filter with the source datastore's schema.


json? ​

ts
readonly json?: JsonOptions;

Defined in: netconf/src/operations/compare.ts:86

JSON input options for a JSON filter (see JsonOptions). Never sent.


reportOrigin? ​

ts
readonly reportOrigin?: boolean;

Defined in: netconf/src/operations/compare.ts:78

Include or:origin annotations from operational in the values.


source ​

ts
readonly source: DatastoreRef;

Defined in: netconf/src/operations/compare.ts:69

The datastore the patch starts from.


target ​

ts
readonly target: DatastoreRef;

Defined in: netconf/src/operations/compare.ts:71

The datastore the patch leads to.

Released under the MIT Licence.