Skip to content

Interface: PatchEdit ​

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

One YANG Patch edit (RFC 8072 §2.2).

Extended by ​

Properties ​

editId ​

ts
readonly editId: string;

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

The edit's identifier, unique within the patch.


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.


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.


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).


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).


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.

Released under the MIT Licence.