Skip to content

Interface: CompareEdit ​

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

One difference.

Extends ​

Properties ​

editId ​

ts
readonly editId: string;

Defined in: netconf/src/operations/yang-patch.ts:14

The edit's identifier, unique within the patch.

Inherited from ​

PatchEdit.editId


operation ​

ts
readonly operation: string;

Defined in: netconf/src/operations/yang-patch.ts:16

The YANG Patch operation: create, delete, insert, merge, move, replace or remove.

Inherited from ​

PatchEdit.operation


point? ​

ts
readonly point?: string;

Defined in: netconf/src/operations/yang-patch.ts:26

For insert and move: the list entry the target is placed before or after.

Inherited from ​

PatchEdit.point


sourceValue ​

ts
readonly sourceValue: readonly XmlElement[];

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

The node as it is in the source, for replace, delete, remove, merge and move edits. Empty when the server sent none (Clixon sends the removed node of a delete in value instead).


target ​

ts
readonly target: string;

Defined in: netconf/src/operations/yang-patch.ts:24

The edited node, as the server wrote it. Its syntax and root vary by server: netopeer2 sends a YANG path with list keys as predicates (/ietf-interfaces:interfaces/interface[name='eth0']), which parsePath() from @node-net/netconf reads; Clixon sends RESTCONF style (/clixon-example:table/parameter=a).

Inherited from ​

PatchEdit.target


value ​

ts
readonly value: readonly XmlElement[];

Defined in: netconf/src/operations/yang-patch.ts:30

The elements inside <value> (empty when there is none, as for delete and remove).

Inherited from ​

PatchEdit.value


where? ​

ts
readonly where?: string;

Defined in: netconf/src/operations/yang-patch.ts:28

For insert and move: where the target goes, before, after, first or last.

Inherited from ​

PatchEdit.where

Released under the MIT Licence.