Skip to content

Commit

Permalink
feat(ns-ha): add mac binding
Browse files Browse the repository at this point in the history
  • Loading branch information
gsanchietti committed Feb 14, 2025
1 parent e6ec9f8 commit 358c9b6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/ns-ha/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ define Package/ns-ha/install
$(INSTALL_BIN) ./files/keepalived-config $(1)/usr/sbin
$(INSTALL_DATA) ./files/500-nathelpers $(1)/etc/hotplug.d/keepalived
$(INSTALL_DATA) ./files/500-netmap $(1)/etc/hotplug.d/keepalived
$(INSTALL_DATA) ./files/560-mac-binding $(1)/etc/hotplug.d/keepalived
$(INSTALL_DATA) ./files/600-backup $(1)/etc/hotplug.d/keepalived
$(INSTALL_DATA) ./files/600-openvpn $(1)/etc/hotplug.d/keepalived
$(INSTALL_DATA) ./files/600-mwan3 $(1)/etc/hotplug.d/keepalived
Expand Down
10 changes: 10 additions & 0 deletions packages/ns-ha/files/560-mac-binding
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/sh

. /lib/functions/keepalived/hotplug.sh

set_service_name ns-binding

set_stop_if_backup
set_restart_if_master

keepalived_hotplug

0 comments on commit 358c9b6

Please sign in to comment.