mirror of
https://github.com/nymurbd/MikroTik-scripts.git
synced 2025-07-10 10:04:30 +02:00
ipv6-update: give hint about mis-usage
This commit is contained in:
parent
1272fe1cb1
commit
894ee65675
1 changed files with 5 additions and 0 deletions
|
@ -6,6 +6,11 @@
|
||||||
|
|
||||||
:local PdPrefix $"pd-prefix";
|
: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 Pool [ / ipv6 pool get [ find where prefix=$PdPrefix ] name ];
|
||||||
:local AddrList [ / ipv6 firewall address-list find where comment=("ipv6-pool-" . $Pool) ];
|
:local AddrList [ / ipv6 firewall address-list find where comment=("ipv6-pool-" . $Pool) ];
|
||||||
:local OldPrefix [ / ipv6 firewall address-list get $AddrList address ];
|
:local OldPrefix [ / ipv6 firewall address-list get $AddrList address ];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue