From 086e3e6f1d27d4aa2ebbab399c502e6a1ae1d4c0 Mon Sep 17 00:00:00 2001 From: Wifinigel <84858080+nigelbowden@users.noreply.github.com> Date: Sat, 27 May 2023 16:22:24 +0100 Subject: [PATCH] remove files included in error --- scripts/v6/ch4-02-ip-prefix-slicer.rsc | 14 -------------- scripts/v7/ch4-02-ip-prefix-slicer.rsc | 14 -------------- 2 files changed, 28 deletions(-) delete mode 100644 scripts/v6/ch4-02-ip-prefix-slicer.rsc delete mode 100644 scripts/v7/ch4-02-ip-prefix-slicer.rsc diff --git a/scripts/v6/ch4-02-ip-prefix-slicer.rsc b/scripts/v6/ch4-02-ip-prefix-slicer.rsc deleted file mode 100644 index 4a7d5ee..0000000 --- a/scripts/v6/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 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