Skip to content

Commit c8b7521

Browse files
luciocarvalhojrkenyon
authored andcommitted
Limit virtual ip address
Limiting virtual ip address
1 parent 9f0e904 commit c8b7521

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

templates/vrrp_instance.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ vrrp_instance <%= @_name %> {
145145
<%- else -%>
146146
<%- vips = @virtual_ipaddress -%>
147147
<%- end -%>
148-
<%- Array(vips).each do |ip| -%>
148+
<%- Array(vips).uniq.each do |ip| -%>
149149
<%- if ip.class == Hash -%>
150150
<%- device = ip['dev'] || @virtual_ipaddress_int || @interface -%>
151151
<%- attrs = Hash[ ip.select { |k,v| ['label', 'brd', 'scope'].include? k } ] -%>

0 commit comments

Comments
 (0)