Skip to content

Conversation

@gsanchietti
Copy link
Member

Keepalived automatically send gratuitous ARP for tracked interfaces. Since WAN interfaces are not tracked, gratuitous ARP packets must be sent just after the switch to master.

@gsanchietti gsanchietti requested a review from Copilot October 16, 2025 08:59
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR implements gratuitous ARP functionality for WAN interfaces in the high availability module. When the system becomes the master node, it sends gratuitous ARP packets to update switch ARP tables for WAN interfaces, which are not automatically tracked by keepalived.

Key changes:

  • Adds a new send_gratuitous_arp() function to handle gratuitous ARP packets for WAN interfaces
  • Integrates the function call into the main enable sequence

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@gsanchietti gsanchietti force-pushed the send_arp branch 2 times, most recently from 1e866a9 to bbef2f1 Compare October 16, 2025 09:03
Copy link
Collaborator

@Tbaile Tbaile left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙈

@gsanchietti gsanchietti force-pushed the send_arp branch 2 times, most recently from 09def3b to ca5447c Compare October 17, 2025 10:33
@gsanchietti gsanchietti requested a review from Copilot October 17, 2025 10:37
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 6 comments.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Keepalived automatically send gratuitous ARP for tracked interfaces.
Since WAN interfaces are not tracked, gratuitous ARP packets
must be sent just after the switch to master.
Changes:
- wait for the device to be up, wait maximum 5 seconds per interface
- wait for IP to be configured into the device, wait maximum 5 seconds per interface
@gsanchietti gsanchietti merged commit 43d54cd into main Oct 20, 2025
1 check passed
@gsanchietti gsanchietti deleted the send_arp branch October 20, 2025 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants