eos_vrrp¶
Options¶
| parameter | required | default | choices | comments |
|---|---|---|---|---|
| delay_reload | no |
Delay between switch reload and VRRP initialization (added in 1.2.0) |
||
| description | no |
Text description of the virtual router (added in 1.2.0) |
||
| enable | no | True |
|
The state of the VRRP (added in 1.2.0) |
| interface | yes |
The interface on which the VRRP is configured (added in 1.2.0) |
||
| ip_version | no | 2 |
|
VRRP version in place on the virtual router (added in 1.2.0) |
| mac_addr_adv_interval | no | 30 |
Interval between advertisement messages to virtual router group (added in 1.2.0) |
|
| preempt | no | True |
|
Preempt mode setting for the virtual router (added in 1.2.0) |
| preempt_delay_min | no |
Interval between a preempt event and takeover (added in 1.2.0) |
||
| preempt_delay_reload | no |
Interval between a preempt event and takeover after reload (added in 1.2.0) |
||
| primary_ip | no | 0.0.0.0 |
The ip address of the virtual router (added in 1.2.0) |
|
| priority | no | 100 |
The priority setting for the virtual router (added in 1.2.0) |
|
| secondary_ip | no |
Array of secondary ip addresses assigned to the VRRP (added in 1.2.0) |
||
| timers_advertise | no | 1 |
Interval between advertisement messages to virtual router group (added in 1.2.0) |
|
| track | no |
Array of track definitions to be assigned to the vrrp (added in 1.2.0) |
||
| vrid | yes |
The unique identifying ID of the VRRP on its interface (added in 1.2.0) |
Important
Requires Arista EOS 4.13.7M or later with command API enabled
Important
Requires Python Client for eAPI 0.4.0 or later
Examples¶
# Configure the set of tracked objects for the VRRP
# Create a list of dictionaries, where name is the object to be
# tracked, action is shutdown or decrement, and amount is the
# decrement amount. Amount is not specified when action is shutdown.
vars:
tracks:
- name: Ethernet1
action: shutdown
- name: Ethernet2
action: decrement
amount: 5
# Setup the VRRP
- eos_vrrp:
interface=Vlan70
vrid=10
enable=True
primary_ip=10.10.10.1
priority=50
description='vrrp 10 on Vlan70'
ip_version=2
secondary_ip=['10.10.10.70','10.10.10.80']
timers_advertise=15
preempt=True
preempt_delay_min=30
preempt_delay_reload=30
delay_reload=30
track="{{ tracks }}"
Note
All configuration is idempotent unless otherwise specified
Note
Supports eos metaparameters for using the eAPI transport
Note
Supports stateful resource configuration.