mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-08-01 08:44:32 +02:00
ipv6-update: ignore if address was acquired
https://github.com/eworm-de/routeros-scripts/issues/85
This commit is contained in:
parent
7229c756af
commit
d022c87651
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue