-
Notifications
You must be signed in to change notification settings - Fork 266
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add script which prevents XRd from having multiple IPv6 addresses on …
…mgmt interface (#2295) * Implement script to configure XRd mgmt ipv6 address - Created script which removes existing management IPv6 address from MgmtEth0/RP0/CPU0/0. - Script has IPv6 address populated via gomplate. - Env var XRD_EVERY_BOOT_SCRIPT is populated with path to script. - On every boot of XRd the script is executed, and on each lab deployment the script is regenerated with the correct v6 mgmt address. * Edit postdeploy params to make DeepSource happy
- Loading branch information
Showing
2 changed files
with
50 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
|
||
source /pkg/bin/ztp_helper.sh | ||
|
||
xrapply_string "interface MgmtEth0/RP0/CPU0/0\n no ipv6 address\n{{- if .MgmtIPv6Addr }}ipv6 address {{ .MgmtIPv6Addr }}/{{ .MgmtIPv6PrefixLen }}\n{{- 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