< Back

Set-NsxLogicalRouter

Sat Jan 18, 2020 9:28 pm

NAME Set-NsxLogicalRouter



SYNOPSIS

Configures an existing NSX Logical Router Raw configuration.





SYNTAX

Set-NsxLogicalRouter [-LogicalRouter] <XmlElement> [-Confirm] [[-Connection] <PSObject>] [<CommonParameters>]





DESCRIPTION

An NSX Logical Router is a distributed routing function implemented within

the ESXi kernel, and optimised for east west routing.



Use the Set-NsxLogicalRouter to perform updates to the Raw XML config for a DLR

to enable basic support for manipulating DLR features that arent supported

by specific PowerNSX cmdlets.





PARAMETERS

-LogicalRouter <XmlElement>

Logical Router object as returned by Get-NsxLogicalRouter



Required? true

Position? 1

Default value

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



-Confirm [<SwitchParameter>]

Prompt for confirmation. Specify as -confirm:$false to disable confirmation prompt



Required? false

Position? named

Default value True

Accept pipeline input? false

Accept wildcard characters? false



-Connection <PSObject>

PowerNSX Connection object



Required? false

Position? 2

Default value $defaultNSXConnection

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>$dlr = Get-NsxLogicalRouter Dlr01



PS C:\\>$dlr.features.firewall.enabled = "false"

PS C:\\>$dlr | Set-NsxLogicalRouter



Disable the DLR Firewall on DLR Dlr01











RELATED LINKS