File tree Expand file tree Collapse file tree
data/templates/dhcp-client Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -39,12 +39,10 @@ id-assoc na 0 {
3939id-assoc pd {{ pd }} {
4040{# length got a default value #}
4141 prefix ::/{{ pd_config.length }} infinity;
42- {% set sla_len = 64 - pd_config .length | int %}
4342{% set count = namespace (value =0) %}
4443{% if pd_config .interface is vyos_defined %}
4544{% for interface , interface_config in pd_config .interface .items () if pd_config .interface is vyos_defined %}
4645 prefix-interface {{ interface }} {
47- sla-len {{ sla_len }};
4846{% if interface_config .sla_id is vyos_defined %}
4947 sla-id {{ interface_config.sla_id }};
5048{% else %}
Original file line number Diff line number Diff line change @@ -1228,7 +1228,6 @@ def test_dhcpv6pd_auto_sla_id(self):
12281228 self .assertIn (f'prefix-interface { delegatee } ' + r' {' , dhcpc6_config )
12291229 self .assertIn (f'ifid { address } ;' , dhcpc6_config )
12301230 self .assertIn (f'sla-id { sla_id } ;' , dhcpc6_config )
1231- self .assertIn (f'sla-len { sla_len } ;' , dhcpc6_config )
12321231
12331232 # increment sla-id
12341233 sla_id = str (int (sla_id ) + 1 )
@@ -1294,7 +1293,6 @@ def test_dhcpv6pd_manual_sla_id(self):
12941293 self .assertIn (f'prefix-interface { delegatee } ' + r' {' , dhcpc6_config )
12951294 self .assertIn (f'ifid { address } ;' , dhcpc6_config )
12961295 self .assertIn (f'sla-id { sla_id } ;' , dhcpc6_config )
1297- self .assertIn (f'sla-len { sla_len } ;' , dhcpc6_config )
12981296
12991297 # increment sla-id
13001298 sla_id = str (int (sla_id ) + 1 )
You can’t perform that action at this time.
0 commit comments