Page MenuHomeDevCentral

D4010.diff
No OneTemporary

D4010.diff

diff --git a/roles/router/carp/files/carp.rc b/roles/router/carp/files/carp.rc
--- a/roles/router/carp/files/carp.rc
+++ b/roles/router/carp/files/carp.rc
@@ -18,6 +18,6 @@
{% set carp_pass = salt['credentials.get_password']('network/carp/' ~ entry.vhid) %}
{% set prefix = 27 if entry.interface_name == 'intranought' else 32 %}
-ifconfig_{{ entry.device }}_alias0="inet vhid {{ entry.vhid }} advskew {{ entry.advskew }} pass {{ carp_pass }} alias {{ entry.vip }}/{{ prefix }}"
+ifconfig_{{ entry.device }}_alias0="inet vhid {{ entry.vhid }} advskew {{ entry.advskew }} pass {{ carp_pass }}{% if entry.peer is defined %} peer {{ entry.peer }}{% endif %} alias {{ entry.vip }}/{{ prefix }}"
{% endfor %}

File Metadata

Mime Type
text/plain
Expires
Thu, Mar 19, 20:55 (11 h, 19 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3545779
Default Alt Text
D4010.diff (711 B)

Event Timeline