Skip to content

Commit

Permalink
Merge pull request #163 from jimbali/master
Browse files Browse the repository at this point in the history
feat: Add support for virtual MAC address
  • Loading branch information
evrardjp authored Nov 25, 2020
2 parents 3966e10 + cde4d66 commit b7f33bb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions templates/keepalived.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ vrrp_instance {{ name }} {
state {{ instance.state }}
virtual_router_id {{ instance.virtual_router_id }}
priority {{ instance.priority }}
{% if instance.use_vmac is defined and instance.use_vmac | bool %}
use_vmac # Use virtual MAC address
{% endif %}
{% if instance.nopreempt is defined and instance.nopreempt | bool %}
nopreempt # Override VRRP RFC preemption default
{% endif %}
Expand Down
2 changes: 2 additions & 0 deletions tests/keepalived_haproxy_master_example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ keepalived_instances:
priority: 100
#Optional, VRRP Advert interval in seconds
#advert_int: 1
# Please set this if you want to use a virtual MAC address.
#use_vmac: true
# Please set this if you want to use authentication in your VRRP
# instance. If more than 8 characters, it will be truncated.
# The password must be the same per router_id (so backup and
Expand Down

0 comments on commit b7f33bb

Please sign in to comment.