net/keepalived: change use_vmac to boolean
authorFlorian Eckert <redacted>
Thu, 16 Nov 2017 10:46:06 +0000 (11:46 +0100)
committerFlorian Eckert <redacted>
Mon, 22 Jan 2018 14:32:56 +0000 (15:32 +0100)
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 <redacted>
net/keepalived/files/keepalived.init

index ee0eb049e3c8aa8e03895ac491b12ff27e19ceaf..3b37750baec9ba6d06845bc93c635e98bbabaf7f 100644 (file)
@@ -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
git clone https://git.99rst.org/PROJECT