Skip to content

Interface: DatastoreChange ​

Defined in: netconf/src/operations/transaction.ts:198

One difference between two configuration datastores (client.content.compareDatastores()): a change that turns the source into the target.

Properties ​

operation ​

ts
readonly operation: "replace" | "create" | "delete" | "move";

Defined in: netconf/src/operations/transaction.ts:205

create: the node is only in the target. delete: only in the source. replace: a leaf's value (or anydata's content) changed. move: an entry of an ordered-by-user list or leaf-list is in both, in a different place. Nothing inside a created or deleted node is listed separately.


path ​

ts
readonly path: string;

Defined in: netconf/src/operations/transaction.ts:207

The node's RFC 7951 data path, list entries by their keys and leaf-list entries by value: /ietf-interfaces:interfaces/interface[name='eth0']/mtu.


position? ​

ts
readonly position?: 
  | {
  where: "first";
}
  | {
  anchor: string;
  where: "after";
};

Defined in: netconf/src/operations/transaction.ts:213

Where a created or moved entry of an ordered-by-user list or leaf-list goes: first, or after the entry at anchor (a path).

Union Members ​

Type Literal ​
ts
{
  where: "first";
}
where ​
ts
readonly where: "first";

First in the list.


Type Literal ​
ts
{
  anchor: string;
  where: "after";
}
anchor ​
ts
readonly anchor: string;

The path of the entry it follows.

where ​
ts
readonly where: "after";

After the entry at anchor.


previous? ​

ts
readonly previous?: YangJsonValue;

Defined in: netconf/src/operations/transaction.ts:211

The node as it is in the source, for delete and replace.


value? ​

ts
readonly value?: YangJsonValue;

Defined in: netconf/src/operations/transaction.ts:209

The node as it is in the target (absent for delete): a leaf's or leaf-list entry's typed value, a container's or list entry's object.

Released under the MIT Licence.