adapter-nso

On this page:

restoreConfig

Summary

Restore Entire Device Config

Description

Restore entire device config with the given config, this method will call 'loadConfig' method, so the input of this method will be almost the same as 'loadConmfig'

Route

No Northbound API Available

Roles

admin

Parameters

DetailsExampleSchema
Name Type Required Description
deviceName string yes Device Name
Configuration string yes Native Config as string or file path relative to NSO run directory. for example, if you want to change a device's hostname, the path will be the field name 'hostname' + the new name 'test' - 'hostname test', and the entire config is accepted

Return

DetailsExampleSchema
Name Type Description
result object Result of restore action