diff --git a/scripts/v7/ch4-02-ip-prefix-slicer.rsc b/scripts/v7/ch4-02-ip-prefix-slicer.rsc deleted file mode 100644 index 85df49c..0000000 --- a/scripts/v7/ch4-02-ip-prefix-slicer.rsc +++ /dev/null @@ -1,14 +0,0 @@ -# ch4-02-ip-prefix-slicer.rsc - -# Create a function to slice up an IP prefix -:global IpPrefixSlicerFunc do={ - :local InterfaceIp ([/ip/address get $1]->"address"); - :local SlashPosition [:find $InterfaceIp "/"]; - :local IpAddress [:pick $InterfaceIp 0 $SlashPosition]; - :return [:toip $IpAddress] -} - -# Run the function for ID *1 and verify data type of result -:local IpAddress [$IpPrefixSlicerFunc *1]; -:put ("Result: $IpAddress"); -:put ("Data type: " . [:typeof $IpAddress]); \ No newline at end of file