Page MenuHomeDevCentral

Add Salt reactor for GRE tunnel creation on CARP failover
Needs ReviewPublic

Authored by yousra on Wed, Apr 29, 17:48.

Details

Summary

Add a Salt reactor configuration to automatically reconfigure GRE tunnels when a CARP primary change occurs.

This introduces:

  • reactor.conf: listens to the event network/carp/primary
  • tunnels.sls: reactor state that triggers tunnel reconfiguration on all relevant nodes

The reactor executes a script on:

  • ysul
  • windriver
  • router-002
  • router-003

Additionally:

  • A new state roles/core/network/tunnels.sls is added to deploy the create-tunnels.sh script on routers and devservers (the targets)

Ref T2319

Test Plan
  • Simulate CARP failover
  • Verify the Salt event is send
  • Check that the reactor executes tunnels.sls
  • Validate GRE interfaces are recreated correctly

Diff Detail

Repository
rOPS Nasqueron Operations
Lint
Lint Skipped
Unit
No Test Coverage
Branch
event-tunnels
Build Status
Buildable 6678
Build 6966: arc lint + arc unit