Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ipv6PrefixChanged.em0 needs method to determine old IPv6 address #1

Open
fiwswe opened this issue Feb 2, 2022 · 0 comments
Open

ipv6PrefixChanged.em0 needs method to determine old IPv6 address #1

fiwswe opened this issue Feb 2, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@fiwswe
Copy link
Owner

fiwswe commented Feb 2, 2022

Currently no direct way exists to get the previous IPv6 address in ipv6PrefixChanged.em0.

However in the scenarios this script is intended for the interface identifier should be stable. So extracting that and combining it with the old IPv6 address prefix, which is known — see variable lastPrefix —, should be possible.

This would be needed for sed(1) replacement of the IP in various config files or for deactivating the old IP in services after the new one has been configured.

@fiwswe fiwswe added the enhancement New feature or request label Feb 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant