-
Notifications
You must be signed in to change notification settings - Fork 276
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement
clab save
for IOL. (#2403)
* Simplify `AllowedIntfRegexp` regexp There was redundant regex for the `eX/X` and `EthernetX/X` checks. The regexp has been simplified so "e" vs "Ethernet" and the slot/port checks are in two separate capture groups. * Implement "clab save" for IOL `SaveConfig()` func is used which allows the "clab save" command to be used. Uses the scrapligo network driver to send a basic `write memory` command which copies the running config -> startup config. * Add tests for "clab save" on IOL Some basic tests which use "containerlab save" to save all running configurations to the startup-configuration (in NVRAM). The test then verifies the config was saved to the startup-config by checking the startup-config location contains a configuration with the nodes hostname. * Add IOL to 'clab save' doc table * Fix test path * Makefile: Don't require specific value for `PUBLIC` in `serve-docs-full` * Fix regexp to make codecov happy * Polish
- Loading branch information
Showing
4 changed files
with
69 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters