brianaddicks / PowerAlto

Palo Alto powershell
poweralto.com
MIT License
39 stars 15 forks source link

IPv6 support for Set-PaAddress #7

Open HansM1986 opened 5 years ago

HansM1986 commented 5 years ago

Trying to add IPv6 addresses with Set-PaAddress fails with the following error:

Set-PaAddress -Name "ipv6-test" -Type "ip-netmask" -Value "2001:db8:123:1::/64" IpNetmask must be a valid CIDR range or Ip Address. Ex: 10.0.0.0/16' At C:\Program Files\WindowsPowerShell\Modules\PowerAlto\4.0.46\Classes\Helpers\HelperRegex.Class.ps1:12 char:13 + Throw $errorMessage + ~~~~~~~~~~~~~~~~~~~ + CategoryInfo : OperationStopped: (IpNetmask must ...Ex: 10.0.0.0/16:String) [], RuntimeException + FullyQualifiedErrorId : IpNetmask must be a valid CIDR range or Ip Address. Ex: 10.0.0.0/16