From 0f49ddb98f18f4e7bb83d21a1bf45373e13bbab0 Mon Sep 17 00:00:00 2001 From: Ryan Date: Sat, 4 May 2019 13:33:48 -0600 Subject: [PATCH] Update PowerNSX.psm1 Added option to enable FIPs mode on New-NSXEdge command --- module/PowerNSX.psm1 | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/module/PowerNSX.psm1 b/module/PowerNSX.psm1 index ffbc6dc7..da4e4341 100644 --- a/module/PowerNSX.psm1 +++ b/module/PowerNSX.psm1 @@ -13468,6 +13468,10 @@ function New-NsxEdge { #Enable SSH [ValidateNotNullOrEmpty()] [switch]$EnableSSH=$false, + [Parameter (Mandatory=$false)] + #Enable FIPs mode + [ValidateNotNullOrEmpty()] + [switch]$EnableFIPS=$false, [Parameter (Mandatory=$false)] #Enable autogeneration of edge firewall rules for enabled services. Defaults to $true [ValidateNotNullOrEmpty()] @@ -13525,6 +13529,11 @@ function New-NsxEdge { Add-XmlElement -xmlRoot $xmlRoot -xmlElementName "name" -xmlElementText $Name Add-XmlElement -xmlRoot $xmlRoot -xmlElementName "fqdn" -xmlElementText $Hostname + #Enable FIPs mode + if ( $EnableFIPS ) { + Add-XmlElement -xmlRoot $xmlRoot -xmlElementName "enableFips" -xmlElementText "true" + } + Add-XmlElement -xmlRoot $xmlRoot -xmlElementName "type" -xmlElementText "gatewayServices" if ($PSBoundParameters.ContainsKey("Tenant")) { Add-XmlElement -xmlRoot $xmlRoot -xmlElementName "tenant" -xmlElementText $Tenant