Skip to content

Commit 257925e

Browse files
jaer-tsunJaeryn
andauthored
Set remote ARP MAC address when CNS is running in CRD mode (#1306)
Co-authored-by: Jaeryn <[email protected]> windows dualstack e2e failures not related to this PR
1 parent 027938a commit 257925e

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

cns/service/main.go

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -579,6 +579,13 @@ func main() {
579579
logger.Errorf("Failed to start CRD Controller, err:%v.\n", err)
580580
return
581581
}
582+
583+
// Setting the remote ARP MAC address to 12-34-56-78-9a-bc on windows for external traffic
584+
err = platform.SetSdnRemoteArpMacAddress()
585+
if err != nil {
586+
logger.Errorf("Failed to set remote ARP MAC address: %v", err)
587+
return
588+
}
582589
}
583590

584591
// Initialize multi-tenant controller if the CNS is running in MultiTenantCRD mode.
@@ -589,6 +596,13 @@ func main() {
589596
logger.Errorf("Failed to start multiTenantController, err:%v.\n", err)
590597
return
591598
}
599+
600+
// Setting the remote ARP MAC address to 12-34-56-78-9a-bc on windows for external traffic
601+
err = platform.SetSdnRemoteArpMacAddress()
602+
if err != nil {
603+
logger.Errorf("Failed to set remote ARP MAC address: %v", err)
604+
return
605+
}
592606
}
593607

594608
logger.Printf("[Azure CNS] Start HTTP listener")

0 commit comments

Comments
 (0)