File tree Expand file tree Collapse file tree 2 files changed +42
-0
lines changed
src/RecoveryServices/RecoveryServices.SiteRecovery Expand file tree Collapse file tree 2 files changed +42
-0
lines changed Original file line number Diff line number Diff line change @@ -2340,6 +2340,24 @@ public class ASRVMNicConfig
23402340 [ DataMember ]
23412341 public string RecoveryVMNetworkId { get ; set ; }
23422342
2343+ /// <summary>
2344+ /// Gets or sets the name of the recovery NIC.
2345+ /// </summary>
2346+ [ DataMember ]
2347+ public string RecoveryNicName { get ; set ; }
2348+
2349+ /// <summary>
2350+ /// Gets or sets the name of the recovery NIC resource group name.
2351+ /// </summary>
2352+ [ DataMember ]
2353+ public string RecoveryNicResourceGroupName { get ; set ; }
2354+
2355+ /// <summary>
2356+ /// Gets or sets whether an existing Nic can be reused during failover.
2357+ /// </summary>
2358+ [ DataMember ]
2359+ public bool ReuseExistingNic { get ; set ; }
2360+
23432361 /// <summary>
23442362 /// Gets or sets the name of the recovery VM subnet.
23452363 /// </summary>
@@ -2370,6 +2388,24 @@ public class ASRVMNicConfig
23702388 [ DataMember ]
23712389 public string TfoVMNetworkId { get ; set ; }
23722390
2391+ /// <summary>
2392+ /// Gets or sets name of the TFO Nic.
2393+ /// </summary>
2394+ [ DataMember ]
2395+ public string TfoNicName { get ; set ; }
2396+
2397+ /// <summary>
2398+ /// Gets or sets name of the TFO Nic resource group name.
2399+ /// </summary>
2400+ [ DataMember ]
2401+ public string TfoNicResourceGroupName { get ; set ; }
2402+
2403+ /// <summary>
2404+ /// Gets or sets whether an existing Nic can be reused during TFO .
2405+ /// </summary>
2406+ [ DataMember ]
2407+ public bool TfoReuseExistingNic { get ; set ; }
2408+
23732409 /// <summary>
23742410 /// Gets or sets the name of the test failover VM subnet.
23752411 /// </summary>
Original file line number Diff line number Diff line change @@ -723,6 +723,9 @@ private List<VMNicInputDetails> getNicListToUpdate(IList<VMNicDetails> vmNicList
723723 var vMNicInputDetails = new VMNicInputDetails ( ) ;
724724
725725 vMNicInputDetails . NicId = nic . NicId ;
726+ vMNicInputDetails . RecoveryNicName = nic . RecoveryNicName ;
727+ vMNicInputDetails . RecoveryNicResourceGroupName = nic . RecoveryNicResourceGroupName ;
728+ vMNicInputDetails . ReuseExistingNic = nic . ReuseExistingNic ;
726729 vMNicInputDetails . RecoveryVMSubnetName = nic . RecoveryVMSubnetName ;
727730 vMNicInputDetails . EnableAcceleratedNetworkingOnRecovery =
728731 nic . EnableAcceleratedNetworkingOnRecovery ;
@@ -735,6 +738,9 @@ private List<VMNicInputDetails> getNicListToUpdate(IList<VMNicDetails> vmNicList
735738 vMNicInputDetails . RecoveryLBBackendAddressPoolIds =
736739 nic . RecoveryIPConfigs ? . FirstOrDefault ( ) ? . LBBackendAddressPoolIds ;
737740
741+ vMNicInputDetails . TfoNicName = nic . TfoNicName ;
742+ vMNicInputDetails . TfoNicResourceGroupName = nic . TfoNicResourceGroupName ;
743+ vMNicInputDetails . TfoReuseExistingNic = nic . TfoReuseExistingNic ;
738744 vMNicInputDetails . TfoVMSubnetName = nic . TfoVMSubnetName ;
739745 vMNicInputDetails . EnableAcceleratedNetworkingOnTfo =
740746 nic . EnableAcceleratedNetworkingOnTfo ;
You can’t perform that action at this time.
0 commit comments