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/huawei-vrp/ profile /ncs:devices/ncs:profiles/profile:/ned-settings/huawei-vrp/ device /ncs:/device/devices/device:/ned-settings/huawei-vrp/

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 huawei-vrp

Press TAB to see all the NED settings.

Table of contents


1. ned-settings huawei-vrp
2. connection
3. console
   3.1. warning
   3.2. command
   3.3. pattern
   3.4. action
        3.4.1. state
4. logger
5. proxy
6. proxy-2
7. transaction
8. read
   8.1. inject-config
   8.2. replace-config
9. write
   9.1. inject-command
   9.2. config-dependency
10. auto
11. live-status

1. ned-settings huawei-vrp


huwaei-vrp device specific NED settings.

2. ned-settings huawei-vrp connection


Connection configuration.

3. ned-settings huawei-vrp console


Settings used while interacting with a device.

3.1. ned-settings huawei-vrp console extension warning


Add regular expressions for warnings/errors which the ned should ignore when applying the configuration on a device.

3.2. ned-settings huawei-vrp console extension command


Extend available commands to send.

3.3. ned-settings huawei-vrp console extension pattern


Extend available patterns to expect.

3.4. ned-settings huawei-vrp console extension action


Extend available actions to perform.

3.4.1. ned-settings huawei-vrp console extension action state


Extend state machine with answers/questions to handle.

4. ned-settings huawei-vrp logger


Settings for controlling logs generated.

5. ned-settings huawei-vrp proxy


Configure NED to access device via a proxy.

6. ned-settings huawei-vrp proxy-2


Configure NED to access device via a second proxy.

7. ned-settings huawei-vrp transaction


Transaction specific settings.

8. ned-settings huawei-vrp read


Settings used when reading from device.

8.1. ned-settings huawei-vrp read inject-config


This ned-setting list can be used to inject config when syncing from device, hence parsing display current-configuration. The injected config is inserted at the top or after each DOTALL regexp match. Note that in order for the new inject setting to take effect, you must not only disconnect and disconnect (as usual when re-reading ned-settings) but also perform a sync-from in order to populate NCS/NSO CDB with newly configured injection config.

8.2. ned-settings huawei-vrp read replace-config


The replace-config list ned-setting can be used to replace or filter out config line(s) upon reading from device, i.e. both in a sync-from and a config-hash transaction id.

9. ned-settings huawei-vrp write


Settings used when writing to device.

9.1. ned-settings huawei-vrp write inject-command


This ned-setting list can be used to inject commands (e.g. config lines) when writing to the device (i.e. upon commit). This can be used, for example, to undo undesired dynamic config automatically set by the device. An example of some inject-command entries used to undo peer enable in bgp ipv4-family unicast mode:

devices device ne40e-1 ned-settings huawei-vrp write inject-command bgp1 config "\n peer ([0-9.]+) as-number \d+" command " ipv4-family unicast\n no peer $1 enable\n exit" after-each

devices device ne40e-1 ned-settings huawei-vrp write inject-command bgp2 config "\n group (\S+) (internal|external)" command " ipv4-family unicast\n no peer $1 enable\n exit" after-each

devices device ne40e-1 ned-settings huawei-vrp write inject-command bgp3 config "\n peer ([0-9.]+) group \S+" command " ipv4-family unicast\n no peer $1 enable\n exit" after-each

Note the $1 used to inject the first catch group. Up to 9 groups may be used.

9.2. ned-settings huawei-vrp write config-dependency


This ned-setting can be used to add dynamic dependency rules to the NED before being permanently fixed in the NED. This can be useful if a dependency bug is found and you do not want to upgrade the NED or are in a hurry for the fix.

10. ned-settings huawei-vrp auto


Configure auto (dynamic behaviour).

11. ned-settings huawei-vrp live-status


Configure NED settings related to live-status.

Last updated

Was this helpful?