-
Notifications
You must be signed in to change notification settings - Fork 275
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix management interface and startup configs for IOL (#2347)
* Enable OpenStdin on container cfg * Add startup configuration support to IOL - Allow for user startup configs to override default cfg - Allow for user to supply partial startup config with '.partial' file ext - Modify cfg template to allow for partial cfg - Rename startup config ('startup.cfg') to 'boot_config.txt' to better reflect nature of the file. * Decouple interface and startup cfg generation. * Add func to write to container stdin * Add UpdateMgmtIntf func - Updates IOL mgmt interface IP addressing on boots that are NOT the first boot. * Define `WriteToStdinNoWait()` for podman runtime. * Also update static default mgmt route in `UpdateMgmtIntf()` * regen mocks * format with make format * Add startup cfg tests * Extend full cfg test for template placeholders * Add docs re: Startup configs * Update management IP change delay to 10 seconds * Only allow single IPv6 address * Add tests for management interface address change --------- Co-authored-by: Roman Dodin <[email protected]>
- Loading branch information
Showing
15 changed files
with
358 additions
and
27 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,4 +44,5 @@ line vty 0 4 | |
login local | ||
transport input ssh | ||
! | ||
{{ .PartialCfg }} | ||
end |
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
Oops, something went wrong.