Skip to content

@node-net/netconf/operations/nmda ​

NMDA (RFC 8342) over NETCONF (RFC 8526): read and write any datastore by identity with <get-data> and <edit-data>, and read or:origin annotations.

ts
import { nmda, origins } from '@node-net/netconf/operations/nmda';

const client = await connect({ transport, extensions: [nmda] });
const data = await client.ops.nmda.getData({ datastore: 'operational', filter: subtree(x('interfaces', { xmlns: IF })), withOrigin: true });
const where = origins(data);   // element → 'ietf-origin:intended' | 'ietf-origin:learned' | …

Every error RFC 8526 specifies arrives as an RpcError with tag invalid-value (an unsupported datastore, with-origin without the server's origin feature, …).

Interfaces ​

Type Aliases ​

Variables ​

Functions ​

References ​

DatastoreRef ​

Re-exports DatastoreRef


DATASTORES_NS ​

Re-exports DATASTORES_NS


Identity ​

Re-exports Identity


NMDA_NS ​

Re-exports NMDA_NS


ORIGIN_NS ​

Re-exports ORIGIN_NS


StandardDatastore ​

Re-exports StandardDatastore

Released under the MIT Licence.