mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00:00
mod/ipcalc: use $PrettyPrint
This commit is contained in:
parent
150feac400
commit
597277dbe7
13
mod/ipcalc
13
mod/ipcalc
|
@ -11,15 +11,16 @@
|
|||
:local Input [ :tostr $1 ];
|
||||
|
||||
:global IPCalcReturn;
|
||||
:global PrettyPrint;
|
||||
|
||||
:local Values [ $IPCalcReturn $1 ];
|
||||
|
||||
:put ( \
|
||||
"Address: " . $Values->"address" . "\n\r" . \
|
||||
"Netmask: " . $Values->"netmask" . "\n\r" . \
|
||||
"Network: " . $Values->"network" . "\n\r" . \
|
||||
"HostMin: " . $Values->"hostmin" . "\n\r" . \
|
||||
"HostMax: " . $Values->"hostmax" . "\n\r" . \
|
||||
$PrettyPrint ( \
|
||||
"Address: " . $Values->"address" . "\n" . \
|
||||
"Netmask: " . $Values->"netmask" . "\n" . \
|
||||
"Network: " . $Values->"network" . "\n" . \
|
||||
"HostMin: " . $Values->"hostmin" . "\n" . \
|
||||
"HostMax: " . $Values->"hostmax" . "\n" . \
|
||||
"Broadcast: " . $Values->"broadcast");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue