Hi,
I have got error when create Logical switch at NSX using PowerNSX CLI
$tz = get-nsxtransportzone "my Transport Zone"
new-nsxlogicalswitch -name "switch_01" -transportzone $tz -ControlPlaneMode UNICAST_MODE
Error is:
invoke-nsxwebrequest : Invoke-NsxWebRequest : The NSX API response received indicates a failure. 400 : Bad Request : Response Body: <?xml version="1.0" encoding="UTF-8"?>
<error><details>Invalid control plane mode UNICAST_MODE selected for logical switch switch_01. A controller must be connected when creating a unicast/hybrid mode logical switch and the vSphere
Distributed Switch must be version 5.5 or greater.</details><errorCode>824</errorCode><moduleName>core-services</moduleName></error>
At C:\Users\.....\PowerNSX\PowerNSX.psm1:9279 char:21
+ ... $response = invoke-nsxwebrequest -method "post" -uri $URI -body $body ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidResult: (Invoke-NsxWebRequest:String) [Invoke-NsxWebRequest], InternalNsxApiException
+ FullyQualifiedErrorId : NsxAPIFailureResult,Invoke-NsxWebRequest
The variable '$response' cannot be retrieved because it has not been set.
At C:\Users\.......\PowerNSX\PowerNSX.psm1:9282 char:45
+ Get-NsxLogicalSwitch -virtualWireId $response.content -connec ...
+ ~~~~~~~~~
+ CategoryInfo : InvalidOperation: (response:String) [], RuntimeException
+ FullyQualifiedErrorId : VariableIsUndefined
My Distributed Switch version 6.0
Could someone help me what's wrong?
Thanks.
Hi, just to double check some basic things
- have you configured a Transport Zone?
- do you have your NSX controller cluster deployed and running?
- try to create a logical switch manually first from the vSphere Web Client to see if everything is setup properly
1. Yes , Transport Zone is configured( only 1 zone is presented)
2. NSX controller cluster is deployed and running - has 3 controller nodes. version 6.3
3. Logical switch can be created manually from the vSphere Web Client
The problem was with my transport zone.
Question is resolved.
Thanks and sorry.