Device customization
The NSO adapter supports two customization properties that allow you to override or extend its default behavior for specific NED device types: liveStatusProps and overrideConfig. Both are configured in the adapter’s service config in Platform.
When to use these properties
The adapter has built-in default behavior for a set of supported NED types. Use liveStatusProps when:
- A device type requires a non-standard action path or command structure for live status calls
- You need to support a device type not covered by the adapter’s defaults
- You want to override the default behavior for a supported device type
Use overrideConfig when:
- A device type requires non-default flags, cleaners, or configuration paths for get/set config operations
- You need to change how the adapter constructs JSON-RPC calls for a specific NED
Adding liveStatusProps for a supported device type overrides that type’s default behavior entirely. Only add the parameters you want to change — you do not need to specify all parameters.
Configure customizations
liveStatusProps
The liveStatusProps property customizes how the adapter constructs JSON-RPC calls for live status commands — typically show commands sent to devices through NSO.
Top-level properties
Action properties
Examples
Custom command prefix
Use commandPrefix to remap the built-in show command to a custom prefix for a specific NED type. In this example, a show version live status call becomes fake_command version in the JSON-RPC call to NSO:
The resulting JSON-RPC call:
Custom command parameters
Use commandParams when the live status action requires a specific parameter structure. Use "${command}" to insert the command value at the correct position:
For a show version command, the resulting JSON-RPC call:
Array command type
Use commandParamType: "array" when the live status action expects the command as an array rather than a string:
For a show version command, the resulting JSON-RPC call:
overrideConfig
The overrideConfig property overrides the adapter’s default device settings for get/set config operations on a per-NED basis.
Top-level properties
Action properties
Example
Only include the properties you want to override for the given NED type: