Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 91ecac46 authored by IMBERT Matthieu's avatar IMBERT Matthieu Committed by Baptiste Jonglez
Browse files

[kavlan6] fix addresses for global vlans

parent f0256387
No related branches found
No related tags found
No related merge requests found
...@@ -62,13 +62,13 @@ subnet <%= kavlan_ip.network %> netmask <%= kavlan_ip.netmask %> { ...@@ -62,13 +62,13 @@ subnet <%= kavlan_ip.network %> netmask <%= kavlan_ip.netmask %> {
case kavlan_id case kavlan_id
when 1..3 # local non routed vlan when 1..3 # local non routed vlan
kavlan6_net = kavlan_id + 0x80 - 1 kavlan6_net = kavlan_id + 0x80 - 1
kavlan6_ip = "#{refapi['sites'][site_uid]['ipv6']['prefix']}#{sprintf('%02x', kavlan6_net)}::/64"
when 4..9 # local routed vlan when 4..9 # local routed vlan
kavlan6_net = kavlan_id + 0x90 - 4 kavlan6_net = kavlan_id + 0x90 - 4
kavlan6_ip = "#{refapi['sites'][site_uid]['ipv6']['prefix']}#{sprintf('%02x', kavlan6_net)}::/64"
else # global vlan else # global vlan
kavlan6_net = kavlan_id + 0xa0 - 10 kavlan6_ip = "#{refapi['sites'][site_uid]['ipv6']['prefix']}a0::/59"
end end -%>
refapi['sites'][site_uid]
kavlan6_ip = "#{refapi['sites'][site_uid]['ipv6']['prefix']}#{sprintf('%02x', kavlan6_net)}::/64" -%>
subnet6 <%= kavlan6_ip %> { subnet6 <%= kavlan6_ip %> {
<% end -%> <% end -%>
default-lease-time 86400; default-lease-time 86400;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment