From b2743188026e2baa8d7004b01b2e1c38ab7e0598 Mon Sep 17 00:00:00 2001 From: Daniil Baturin Date: Thu, 28 Feb 2019 11:18:00 +0100 Subject: T1272: send VRRP messages from the base interface in RFC-compliant mode only in unicast mode (patch by Johan Fredin). --- src/conf_mode/vrrp.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/conf_mode') diff --git a/src/conf_mode/vrrp.py b/src/conf_mode/vrrp.py index c458e3b04..bc833b63f 100755 --- a/src/conf_mode/vrrp.py +++ b/src/conf_mode/vrrp.py @@ -76,9 +76,11 @@ vrrp_instance {{ group.name }} { {%- endif %} {% endif -%} - {% if group.use_vmac -%} + {% if group.use_vmac and group.peer_address -%} use_vmac {{group.interface}}v{{group.vrid}} vmac_xmit_base + {% elif group.use_vmac -%} + use_vmac {{group.interface}}v{{group.vrid}} {% endif -%} {% if group.auth_password -%} -- cgit v1.2.3