ZertoPublic / ZertoApiWrapper

PowerShell wrapper for Zerto Virtual Manager API
GNU General Public License v3.0
16 stars 12 forks source link

ZertoApiWrapper 2.0.0 Import-ZertoVmNicSetting does not set failover.shouldReplaceIpConfiguration = 'True' #131

Open mattreba opened 2 months ago

mattreba commented 2 months ago

First of all, I am not sure if I am in the correct GitHub as I'm not seeing the 2.0.0 release here. Please redirect me if appropriate.

I am attempting to use ZertoApiWrapper 2.0.0 against a Linux ZVM running 10.0_U4 Patch 1. When using the Import-ZertoVmNicSetting cmdlet I am unable to set new failover/test IP details. The task completes without error but no change is made. In reviewing the code, I did not see the shouldReplaceIpConfiguration flag getting set on the failover and failovertest sections. I manually stepped through the code interactively in PowerShell setting $nicSettings.failover.shouldReplaceIpConfiguration and $nicSettings.failovertest.shouldReplaceIpConfiguration = 'True' and the rest of the update code as is worked as expected.