HewlettPackard / POSH-HPEOneView

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

New-HPOVAddressPoolSubnet incorrectly has -gateway as mandatory #391

Closed frippe75 closed 5 years ago

frippe75 commented 5 years ago

Please fill in as much information as possible to help resolve your issue.

Expected Behavior

Running a PS script to create the Image Streamer Address pool. Was not planning on adding a gateway but when runing the script I get prompted for gateway since it's tagged as mandatory, which is not consistent with OV UI.

# Add iSCSI IS Pool 
$netid="192.168.2.0"
New-HPOVAddressPoolSubnet -NetworkID $netid -Subnetmask 255.255.255.0 
Get-HPOVAddressPoolSubnet -NetworkId $netid | New-HPOVAddressPoolRange -Name "iSCSI-Streamer_Boot" -Start 192.168.2.10 -end 192.168.2.30

Actual Behavior

Steps to reproduce

Run the lines above

Version Information

HPE OneView PowerShell Library Version : 4.10.1928.2181 HPE OneView Appliance Version: 4.10.04-0370820

ChrisLynchHPE commented 5 years ago

This is fixed in Release 4.10.1954.1523 and in PowerShell Gallery.

Please verify before this issue is closed.

frippe75 commented 5 years ago

Tested Release 4.10.1954.1523 in my env and it works as expected.

Thanks Chris for resolving this quickly! Br, Fredrik Tarnell