TCL procedures to compress/expand a IPv6 address notation
Updated Jun 06, 2023
Version 2.0Was this article helpful?
Hi Stanislas,
cool stuff, didn't know that the build-in
[IP::addr]
command can handle mixed IPv4/IPv6 notations and will automatically compress IPv6 notations for you. The only difference in the output of my and your iRule is, that your compress procedure (aka. make an IPv6 more human readable) will also remove the mixed IPv4/IPv6 notation. Well milage may vary which notation is more human readable...
And the second iRule and its
[string repeat]
approach is 1:1 comparable with one of the development iRules which I had before I optimized the code...
Cheers, Kai