README-ned-settings
NED settings details
This NED is equipped with a number of runtime configuration options "NED settings" allowing for customization by the end user. All options are configurable using the NSO API for NED settings. Most NED settings can be configured globally, per device profile or per device instance in the following locations:
global /ncs:devices/global-settings/ned-settings/ciena-saos_nc/ profile /ncs:devices/ncs:profiles/profile:/ned-settings/ciena-saos_nc/ device /ncs:/device/devices/device:/ned-settings/ciena-saos_nc/
Profiles setting overrides global-settings and device settings override profile settings, hence the narrowest scope of the setting is used by the device.
If user changes a ned-setting, then user must reconnect to the device, i.e. disconnect and connect in order for the new setting to take effect.
From the NSO CLI the device instance NED settings for this NED are available under:
# config
# devices device dev-1 ned-settings ciena-saos_nc
Press TAB to see all the NED settings.
Table of contents
1. ned-settings ciena-saos_nc
2. transaction
2.1. ignore-rpc-errors
2.2. extra-get-config-paths
2.3. exclude-namespaces
2.4. inject-meta-data
3. connection
3.1. capabilities
3.1.1. regex-exclude
3.1.2. regex-include
3.1.3. inject
3.2. ssh
4. proxy
5. live-status
5.1. regex-exclude
5.2. cli
5.2.1. auto-prompts
6. logger
7. developer1. ned-settings ciena-saos_nc
This file describes the ned-settings for ciena-saos_nc.
2. ned-settings ciena-saos_nc transaction
Settings affecting different aspects of NSO transactions towards device.
2.1. ned-settings ciena-saos_nc transaction ignore-rpc-errors
Configure additional device errors that shall be treated as warnings (i.e. to be ignored, not aborting transaction).
2.2. ned-settings ciena-saos_nc transaction extra-get-config-paths
This list can be used to add extra filters when sending get-config RPC to the device. For example if there is a bug in the device which makes it not include all config under certain top-nodes. The key of the list is the path to add (non-unique nodes must be prefixed with 'global' prefix, i.e. prefix from module).
2.3. ned-settings ciena-saos_nc transaction exclude-namespaces
This list can be used to filter out certain namespaces from the configuration (i.e. all nodes belonging to namespaces given in this list will be dropped from the config before sent to NSO).
2.4. ned-settings ciena-saos_nc transaction inject-meta-data
Inject tailf:meta-data extension into schema at given path, used for example to trigger xml transform methods (java methods annotated with XMLTransformMethod) before xml is sent to NSO, or when editing, to device. The meta-data can also be used for other purposes in custom java code in the NED. The path supplied can even be a key-path, i.e. containg list keys within curly braces.
NOTE: For more information about custom xml transforms, see section 'Custom XML transforms' in the README.md.
3. ned-settings ciena-saos_nc connection
Settings related to the initial connection to the device, including the initial hand-shake (hello).
3.1. ned-settings ciena-saos_nc connection capabilities
Settings related the netconf capablities, and the discovery of supported yang modules.
3.1.1. ned-settings ciena-saos_nc connection capabilities regex-exclude
List of regex patterns to use for excluding capabilities sent from device in hello, for example to exclude a capability which the device announces in hello, but which is not correctly implemented
3.1.2. ned-settings ciena-saos_nc connection capabilities regex-include
List of regex patterns to use for including capabilities sent from device in hello. Note that when this list is non-empty, only capabilities matching any of the patterns in this list will be included
3.1.3. ned-settings ciena-saos_nc connection capabilities inject
This list can be used to inject capabilities into the hello from the device, before processed and sent to NSO, for example if a capability sent from the device is invalid, it can be filtered out using 'regex-exclude', and replaced with an inject. Also if device leaves out a capability that should be present and is needed, it can be injected.
3.2. ned-settings ciena-saos_nc connection ssh
Settings related to the SSH client used by the NED to connect to the device.
4. ned-settings ciena-saos_nc proxy
Configure NED to access device via an ssh proxy (i.e. a ssh 'jump-host'). By default, when this options is used, the address, port, and credentials normally given for the device in NSO, is used as the address and credentials for the ssh proxy, in which case the ned-settings here are then used to access the actual device.
This 'reverse' logic is the effect of how the API historically worked, and can be changed by enabling the setting 'global-proxy'. When this setting is set to true, the device config is the address/port and credentials for the actual device (behind the proxy), and the proxy host is configured in this section. This means that the proxy can be configured globally, or in a profile, which is a convenient way to switch all or some devices to connect through a jump-host.
5. ned-settings ciena-saos_nc live-status
Configure NED settings related to live-status.
5.1. ned-settings ciena-saos_nc live-status regex-exclude
This list of regular expressions match the schema path of nodes to filter out from live-status (oper) data before sending it to NSO. The regex matches on either of the pure tag-path, 'global' path, or the key-path (i.e. possibly including keys within curly braces) of nodes in the data. I.e. if a path is unique, prefixes can be omitted, but not when used in a key-path, then a 'global' path is needed, i.e. prefixed as it would appear in NSO, including the prefix on each level where new namespace occurs.
5.2. ned-settings ciena-saos_nc live-status cli
Configuration of CLI interaction through 'exec any '.
5.2.1. ned-settings ciena-saos_nc live-status cli auto-prompts
Sometimes when entering commands in an interative shell, the device prompts for some specific input, in cases like this, this list can be configured with pairs of "questions" and "answers" to be used when interacting with the device. The "questions" are in the form of regular-expressions, which matches the prompt or "question" output from the device, and the "answers" are the string to send back to the device, when that specific "question" is found in the output from the device.
For example, to add the response "secret" for a password prompt, one can add the below ned-settings:
6. ned-settings ciena-saos_nc logger
Settings for controlling logs generated.
7. ned-settings ciena-saos_nc developer
Contains settings used by the NED developers.
Last updated
Was this helpful?

