From 455d9a5b48a784d0602d5f8371245b4cd14931b6 Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Thu, 16 Nov 2017 11:46:06 +0100 Subject: [PATCH] net/keepalived: change use_vmac to boolean Append use_vmac with no_val_ so that the uci generation will treat this as an boolean option. If the option is set then a interface with vrrp.{virtual_router_id} is added to the system. Signed-off-by: Florian Eckert --- net/keepalived/files/keepalived.init | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/net/keepalived/files/keepalived.init b/net/keepalived/files/keepalived.init index ee0eb049e..3b37750ba 100644 --- a/net/keepalived/files/keepalived.init +++ b/net/keepalived/files/keepalived.init @@ -283,13 +283,14 @@ vrrp_instance() { printf "$INDENT_1}\n" >> $KEEPALIVED_CONF } - print_elems_indent $1 $INDENT_1 use_vmac state interface \ + print_elems_indent $1 $INDENT_1 state interface \ mcast_src_ip unicast_src_ip virtual_router_id version priority \ advert_int preempt_delay debug \ lvs_sync_daemon_interface garp_master_delay garp_master_refresh \ garp_master_repeat garp_master_refresh_repeat \ no_val_vmac_xmit_base no_val_native_ipv6 no_val_accept \ - no_val_dont_track_primary no_val_smtp_alert no_val_nopreempt + no_val_dont_track_primary no_val_smtp_alert no_val_nopreempt \ + no_val_use_vmac print_notify "INSTANCE" "$name" notify_backup notify_master \ notify_fault notify_stop notify