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

Removing of configuration fails if IPV6 address is not expressed in the shortest form #9

Open
Prodec- opened this issue Nov 18, 2020 · 1 comment

Comments

@Prodec-
Copy link

Prodec- commented Nov 18, 2020

I think this issue is related to the #8.
When I tried to run the script, it always failed in the part where old configuration is removed. I did a little digging and apparently the culprit was that I had the IPV6 address of the interface in the configuration written as xxxx:0000:0000:0000::1/128 instead of the shortest form of xxxx::1/128.
The part where the script queries for the address ( ip -oneline address show dev $INTERFACE.... returns the ip address in the shortest form, so the script doesn't recognize the address stated in the config.

I managed to fix my config by shortening the address to xxxx::1/128, and the script now runs successfully.
Maybe there could be a check for the address format in the script?

@whiskerz007
Copy link
Owner

Template rewrite #55 will cause this section of the script to be removed soon since it was a workaround to the flawed template.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants