Skip to content

Commit 95db236

Browse files
committed
chore: update DHCP test to the new setupOpts
Signed-off-by: Pau Capdevila <[email protected]>
1 parent 3f07c55 commit 95db236

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pkg/hhfab/release.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2315,7 +2315,7 @@ func (testCtx *VPCPeeringTestCtx) dhcpRenewalTest(ctx context.Context) (bool, []
23152315
continue
23162316
}
23172317

2318-
_, err = GetServerNetconfCmd(conn, subnet.VLAN, testCtx.opts.HashPolicy)
2318+
_, err = GetServerNetconfCmd(conn, subnet.VLAN, testCtx.setupOpts.HashPolicy)
23192319
if err != nil {
23202320
continue
23212321
}
@@ -2348,11 +2348,11 @@ func (testCtx *VPCPeeringTestCtx) dhcpRenewalTest(ctx context.Context) (bool, []
23482348

23492349
// Determine timeout based on VPC mode
23502350
renewalTimeout := DefaultDHCPRenewalTimeoutL2
2351-
if testCtx.opts.VPCMode == vpcapi.VPCModeL3VNI || testCtx.opts.VPCMode == vpcapi.VPCModeL3Flat {
2351+
if testCtx.setupOpts.VPCMode == vpcapi.VPCModeL3VNI || testCtx.setupOpts.VPCMode == vpcapi.VPCModeL3Flat {
23522352
renewalTimeout = DefaultDHCPRenewalTimeoutL3
23532353
}
23542354

2355-
slog.Info("Testing DHCP renewal", "servers", len(servers), "mode", testCtx.opts.VPCMode, "timeout", renewalTimeout)
2355+
slog.Info("Testing DHCP renewal", "servers", len(servers), "mode", testCtx.setupOpts.VPCMode, "timeout", renewalTimeout)
23562356

23572357
var wg sync.WaitGroup
23582358
results := make(chan RenewalResult, len(servers))
@@ -2444,7 +2444,7 @@ type RenewalResult struct {
24442444
}
24452445

24462446
func (testCtx *VPCPeeringTestCtx) performDHCPRenewal(ctx context.Context, serverName, ifName string) error {
2447-
isL3Mode := testCtx.opts.VPCMode == vpcapi.VPCModeL3VNI || testCtx.opts.VPCMode == vpcapi.VPCModeL3Flat
2447+
isL3Mode := testCtx.setupOpts.VPCMode == vpcapi.VPCModeL3VNI || testCtx.setupOpts.VPCMode == vpcapi.VPCModeL3Flat
24482448

24492449
// Log initial state
24502450
initialOut, _ := execNodeCmdWOutput(testCtx.hhfabBin, testCtx.workDir, serverName,

0 commit comments

Comments
 (0)