HewlettPackard / POSH-HPEOneView

PowerShell language bindings library for HPE OneView.
http://hewlettpackard.github.io/POSH-HPEOneView/
125 stars 52 forks source link

New-OVServerProfileConnection with Network "Unassigned" throws an error #621

Open olant opened 1 year ago

olant commented 1 year ago

The connection is created, but an error is thrown before. Tried in HPEOneView.660 Version 6.60.3332.3428

New-OVServerProfileConnection -ConnectionID 1  -Network Unassigned -ConnectionType Ethernet -RequestedBW 0

The variable cannot be validated because the value  is not a valid value for the ApplianceConnection variable.
At C:\Program Files\WindowsPowerShell\Modules\HPEOneView.660\6.60.3332.3428\HPEOneView.660.psm1:114268 char:9
+         $ApplianceConnection = $ConnectedSessions | ? Name -eq $Netwo ...
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : MetadataError: (:) [], ValidationMetadataException
    + FullyQualifiedErrorId : ValidateSetFailure

id                  : 1
functionType        : Ethernet
name                :
portId              : Auto
networkUri          :
requestedMbps       : 0
boot                :
macType             : Virtual
mac                 :
requestedVFs        : 0
lagName             :
ApplianceConnection 
ChrisLynchHPE commented 1 year ago

This is fixed in Release 6.60.3348.1441 and in PowerShell Gallery.

I am working on fixing this in the other library releases as well.

ChrisLynchHPE commented 1 year ago

This issue is resolved in both the 7.20 and 8.00 libraries:

I will be posting updates to the 7.00 and 7.10 libraries later in the week.