summaryrefslogtreecommitdiff
path: root/data/templates/dhcp-server
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-04-22 21:46:28 +0200
committerChristian Poessinger <christian@poessinger.com>2022-04-22 21:46:28 +0200
commitdc83423d5eb7b38760e698f3e5fd6d916f4420ea (patch)
treec13ed962fe22d407becbd3279ddd9eb82fff48ae /data/templates/dhcp-server
parent0b466f7a54cfedaf53edec5f3d58676113ece391 (diff)
parent39e35ee4caae7dc40f7270b3dc5e4161d64dac1b (diff)
downloadvyos-1x-dc83423d5eb7b38760e698f3e5fd6d916f4420ea.tar.gz
vyos-1x-dc83423d5eb7b38760e698f3e5fd6d916f4420ea.zip
Merge branch 'T4357' of https://github.com/sever-sever/vyos-1x into current
* 'T4357' of https://github.com/sever-sever/vyos-1x: dhcpv6: T4357: Add dhcpv6 options for cisco VoIP tftp
Diffstat (limited to 'data/templates/dhcp-server')
-rw-r--r--data/templates/dhcp-server/dhcpdv6.conf.j28
1 files changed, 8 insertions, 0 deletions
diff --git a/data/templates/dhcp-server/dhcpdv6.conf.j2 b/data/templates/dhcp-server/dhcpdv6.conf.j2
index 284b7f269..43327859e 100644
--- a/data/templates/dhcp-server/dhcpdv6.conf.j2
+++ b/data/templates/dhcp-server/dhcpdv6.conf.j2
@@ -11,6 +11,11 @@ option dhcp6.preference {{ preference }};
{% if global_parameters.name_server is vyos_defined %}
option dhcp6.name-servers {{ global_parameters.name_server | join(', ') }};
{% endif %}
+{% if vsio_cisco_tftp %}
+option space cisco;
+option cisco.tftp-servers code 1 = array of ip6-address;
+option vsio.cisco code 9 = encapsulate cisco;
+{% endif %}
# Shared network configration(s)
{% if shared_network_name is vyos_defined %}
@@ -113,6 +118,9 @@ shared-network {{ network }} {
}
{% endfor %}
{% endif %}
+{% if subnet_config.vsio.cisco.tftp_server is vyos_defined %}
+ option cisco.tftp-servers {{ subnet_config.vsio.cisco.tftp_server | join(', ') }};
+{% endif %}
}
{% endfor %}
{% endif %}