mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2024-05-11 05:55:19 +00:00
ipv6-update: give hint about mis-usage
This commit is contained in:
@ -6,6 +6,11 @@
|
||||
|
||||
:local PdPrefix $"pd-prefix";
|
||||
|
||||
:if ([ :typeof $PdPrefix ] = "nothing") do={
|
||||
:log error "This script is supposed to run from ipv6 dhcp-client.";
|
||||
:error "Error: See log for details.";
|
||||
}
|
||||
|
||||
:local Pool [ / ipv6 pool get [ find where prefix=$PdPrefix ] name ];
|
||||
:local AddrList [ / ipv6 firewall address-list find where comment=("ipv6-pool-" . $Pool) ];
|
||||
:local OldPrefix [ / ipv6 firewall address-list get $AddrList address ];
|
||||
|
Reference in New Issue
Block a user