Function: namedPath()
ts
function namedPath(name, params?): string;Defined in: netconf/src/content/named-path.ts:312
Write a named-path reference for read(), set() and the rest, quoting values as needed: namedPath('ifDescription', { ifName: 'eth0' }) gives @ifDescription(ifName="eth0"). A leading @ on the name is accepted and dropped, so namedPath('@ifDescription', …) gives the same.
Parameters
name
string
params?
Readonly<Record<string, string | number>> = {}
Returns
string
Throws
PathError if a value holds both kinds of quote.