diff options
author | Christian Hesse <mail@eworm.de> | 2024-10-22 21:38:38 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2024-10-23 21:55:34 +0200 |
commit | d022c876514107bd345a17a0c01896947a83b45f (patch) | |
tree | 09a4b872832e92444675ca3ef3d998c242350f9a /ipv6-update.rsc | |
parent | 7229c756af86df3a670ca79138e6e35342951461 (diff) |
ipv6-update: ignore if address was acquired
https://github.com/eworm-de/routeros-scripts/issues/85
Diffstat (limited to 'ipv6-update.rsc')
-rw-r--r-- | ipv6-update.rsc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ipv6-update.rsc b/ipv6-update.rsc index 0577bdc..47bf3de 100644 --- a/ipv6-update.rsc +++ b/ipv6-update.rsc @@ -18,12 +18,18 @@ :global ParseKeyValueStore; :global ScriptLock; + :local NaAddress $"na-address"; :local PdPrefix $"pd-prefix"; :if ([ $ScriptLock $ScriptName ] = false) do={ :error false; } + :if ([ :typeof $NaAddress ] = "str") do={ + $LogPrint info $ScriptName ("An address (" . $NaAddress . ") was acquired, not a prefix. Ignoring."); + :error false; + } + :if ([ :typeof $PdPrefix ] = "nothing") do={ $LogPrint error $ScriptName ("This script is supposed to run from ipv6 dhcp-client."); :error false; |