Skip to content
This repository has been archived by the owner on Oct 28, 2022. It is now read-only.

enable FIPs mode on New-NSXEdge #579

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions module/PowerNSX.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -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()]
Expand Down Expand Up @@ -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
Expand Down