Skip to content

Variable: yangLibrary ​

ts
const yangLibrary: object;

Defined in: netconf/src/operations/yang-library.ts:457

The YANG library extension (RFC 8525, with the RFC 7895 fallback). Enable it with connect({ extensions: [yangLibrary] }). It needs no capability to be enabled; client.content.yangLibrary.load() needs :yang-library:1.1 or :yang-library:1.0.

Type Declaration ​

content ​

ts
readonly content: (ctx) => YangLibraryContent;

Content layer: called once per client, after the hello, with the same context as ops. The result becomes client.content.<id>: calls that hand back decoded, typed data. State shared with ops belongs in a WeakMap keyed by ctx.sessionKey.

Parameters ​

ctx ​

ExtensionContext

Returns ​

YangLibraryContent

description ​

ts
readonly description: "RFC 8525 (and RFC 7895): the YANG modules a server implements, per datastore" = 'RFC 8525 (and RFC 7895): the YANG modules a server implements, per datastore';

A one-line summary of what the extension adds, for tools and help text.

descriptors ​

ts
readonly descriptors: readonly [OperationDescriptor];

Descriptors for the RPCs this extension adds (each needs a builder in requests), and for its reads (kind: 'read', run through the method of content they name).

id ​

ts
readonly id: "yangLibrary" = 'yangLibrary';

Becomes client.ops.<id> and client.content.<id>, for the layers the extension contributes to.

Released under the MIT Licence.