Lab save/load
Overview
knlcli support save/load lab with CNF/VNF configurations, e.g. SROS configuration; currently this feature supports following node types:
- Nokia vSIM
- Nokia SR-SIM
- Nokia VSR
- Nokia SRLinux
- Nokia MAG-c
Note
Note
For vSIM/VSR/SR-SIM, SSH must be enabled and MD-CLI must be the default CLI
Protocol
The protocol of get/set configuration depends on the node type:
- SRLinux: gNMI
- MAG-c: classic CLI
- vSIM/VSR/SR-SIM: gNMI (
knlcliwill enable gNMI on the node via MD-CLI if it is not enabled)
Save
Use command knlcli config save <Lab> [flags] to save configuration all supporting nodes in the specified lab into a folder, by default, the folder is the ./<lab-name>, each node’s configuration is saved as <nodeName>.cfg, the lab manifest is saved as lab.yaml.
Following is an example save lab ipsec-basic into folder ./tmp/ipsec-basic:
Saved configuration file
The format of saved configuration file depends on the node type:
- SRLinux: json
- VSIM: MD config in json
- VSR: MD config in json
- SR-SIM: MD config in json
- MAG-c: classic CLI
Load
Use command knlcli config load <Lab> [flags] to load configurations from a folder for all supporting nodes in the specified lab. by default, the folder is the ./<lab-name>, each node’s configuration file name is <nodeName>.cfg.
Following is an example loading config files from folder ./tmp/ipsec-basic for lab ipsec-basic:
Note
Note
By default, the lab itself is not created/recreated via config load, but the lab could be created/recreated via --recreate parameter.