Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2340,6 +2340,24 @@ public class ASRVMNicConfig
[DataMember]
public string RecoveryVMNetworkId { get; set; }

/// <summary>
/// Gets or sets the name of the recovery NIC.
/// </summary>
[DataMember]
public string RecoveryNicName { get; set; }

/// <summary>
/// Gets or sets the name of the recovery NIC resource group name.
/// </summary>
[DataMember]
public string RecoveryNicResourceGroupName { get; set; }

/// <summary>
/// Gets or sets whether an existing Nic can be reused during failover.
/// </summary>
[DataMember]
public bool ReuseExistingNic { get; set; }

/// <summary>
/// Gets or sets the name of the recovery VM subnet.
/// </summary>
Expand Down Expand Up @@ -2370,6 +2388,24 @@ public class ASRVMNicConfig
[DataMember]
public string TfoVMNetworkId { get; set; }

/// <summary>
/// Gets or sets name of the TFO Nic.
/// </summary>
[DataMember]
public string TfoNicName { get; set; }

/// <summary>
/// Gets or sets name of the TFO Nic resource group name.
/// </summary>
[DataMember]
public string TfoNicResourceGroupName { get; set; }

/// <summary>
/// Gets or sets whether an existing Nic can be reused during TFO .
/// </summary>
[DataMember]
public bool TfoReuseExistingNic { get; set; }

/// <summary>
/// Gets or sets the name of the test failover VM subnet.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -723,6 +723,9 @@ private List<VMNicInputDetails> getNicListToUpdate(IList<VMNicDetails> vmNicList
var vMNicInputDetails = new VMNicInputDetails();

vMNicInputDetails.NicId = nic.NicId;
vMNicInputDetails.RecoveryNicName = nic.RecoveryNicName;
vMNicInputDetails.RecoveryNicResourceGroupName = nic.RecoveryNicResourceGroupName;
vMNicInputDetails.ReuseExistingNic = nic.ReuseExistingNic;
vMNicInputDetails.RecoveryVMSubnetName = nic.RecoveryVMSubnetName;
vMNicInputDetails.EnableAcceleratedNetworkingOnRecovery =
nic.EnableAcceleratedNetworkingOnRecovery;
Expand All @@ -735,6 +738,9 @@ private List<VMNicInputDetails> getNicListToUpdate(IList<VMNicDetails> vmNicList
vMNicInputDetails.RecoveryLBBackendAddressPoolIds =
nic.RecoveryIPConfigs?.FirstOrDefault()?.LBBackendAddressPoolIds;

vMNicInputDetails.TfoNicName = nic.TfoNicName;
vMNicInputDetails.TfoNicResourceGroupName = nic.TfoNicResourceGroupName;
vMNicInputDetails.TfoReuseExistingNic = nic.TfoReuseExistingNic;
vMNicInputDetails.TfoVMSubnetName = nic.TfoVMSubnetName;
vMNicInputDetails.EnableAcceleratedNetworkingOnTfo =
nic.EnableAcceleratedNetworkingOnTfo;
Expand Down