Closed TheTaylorLee closed 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.
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.