2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
|
# File 'lib/cisco_node_utils/route_map.rb', line 2123
def set_ipv6_next_hop_set(list, share=false)
carr = set_ipv6_next_hop
cstr = ''
carr.each do |elem|
cstr = cstr.concat(elem + ' ')
end
cstr.concat('load-share') unless default_set_ipv6_next_hop_load_share.nil?
set_args_keys(state: 'no', nh: cstr)
config_set('route_map', 'set_ipv6_next_hop', @set_args) unless
cstr.empty?
nstr = ''
list.each do |elem|
nstr = nstr.concat(elem + ' ')
end
nstr.concat('load-share') if share
return if nstr.empty?
set_args_keys(state: '', nh: nstr)
config_set('route_map', 'set_ipv6_next_hop', @set_args)
end
|