Skip to content

Interface: SessionQuirks ​

Defined in: netconf/src/messages/quirks.ts:13

Switches for known ways a server deviates from RFC 6241 in the messages layer, usually set by a device profile. See Session quirks.

Properties ​

closeTimeout? ​

ts
readonly closeTimeout?: number;

Defined in: netconf/src/messages/quirks.ts:25

Milliseconds to wait for the <close-session> reply.


forceBaseVersion? ​

ts
readonly forceBaseVersion?: "1.0";

Defined in: netconf/src/messages/quirks.ts:17

Advertise only base:1.0, for servers whose chunked framing is broken. Applies before the hello, so it needs an explicit profile.


invalidXmlChars? ​

ts
readonly invalidXmlChars?: "reject" | "strip";

Defined in: netconf/src/messages/quirks.ts:32

Characters that XML 1.0 does not allow in a received message:

  • 'reject' (default): the message is malformed XML, and the session closes.
  • 'strip': remove them before parsing, for servers that copy raw CLI output (such as a BEL) into their replies.

maxInFlight? ​

ts
readonly maxInFlight?: number;

Defined in: netconf/src/messages/quirks.ts:15

Most RPCs in flight at once. 1 for servers that mishandle pipelined requests.


paddedEmptyElements? ​

ts
readonly paddedEmptyElements?: "strip" | "keep";

Defined in: netconf/src/messages/quirks.ts:43

Text in an element with no child elements that is only whitespace and contains a line break, such as <access>\n····</access>:

  • 'keep' (default): it is the element's value.
  • 'strip': it is the server's indentation, from writing an empty element across two lines, and is removed so the element is empty. Whitespace without a line break, and any text with a visible character, is kept. A string leaf whose whole value is blank lines would read as empty, so only turn this on for servers known to pad.

replyWithoutMessageId? ​

ts
readonly replyWithoutMessageId?: "strict" | "oldest";

Defined in: netconf/src/messages/quirks.ts:23

An <rpc-reply> without a message-id:

  • 'strict' (default): match it only if it carries errors and exactly one RPC is pending.
  • 'oldest': match it to the oldest pending RPC.

Released under the MIT Licence.