TheTaylorLee / AdminToolbox

Repository for the AdminToolbox PowerShell Modules
MIT License
191 stars 23 forks source link

CIDR Table Conversion #9

Closed TheTaylorLee closed 3 years ago

TheTaylorLee commented 3 years ago

Work on a private function that can convert CIDR values to Subnet masks and Vice Versa. Leverage that function to allow either value to be provided for subnet masks, and then within public functions call that function to convert to the required format for the script config. CIDR vs subnetmask will vary depending on the FortiOS command being entered.

TheTaylorLee commented 3 years ago

Going to leverage PSNmap function invoke-psipcalc instead of generating a new function to convert CIDR and Subnet masks. By using invoke-psipcalc I will be able to combine request values in subnet format. (ex: 192.168.0.0/24). I can then work with the results of invoke-psipcalc to fill script values Network Address, Hostmin, Hostmax, Subnet Mask, or network length.

Progress Tracker

Functions needing updated