diff options
author | Thomas Mangin <thomas.mangin@exa.net.uk> | 2020-04-11 12:58:52 +0100 |
---|---|---|
committer | Thomas Mangin <thomas.mangin@exa.net.uk> | 2020-04-11 13:12:55 +0100 |
commit | e12a0ce922b67354ecd8e53414cda6b8b3a424fb (patch) | |
tree | ede57ba64a9d3a04b6523f7d139a255a0ec9d033 /data/templates/dhcp-client/ipv4.tmpl | |
parent | ef2e8f4d721a6486db90c0f395f595ca897614b8 (diff) | |
download | vyos-1x-e12a0ce922b67354ecd8e53414cda6b8b3a424fb.tar.gz vyos-1x-e12a0ce922b67354ecd8e53414cda6b8b3a424fb.zip |
dhcp: T2230: use external template files
Diffstat (limited to 'data/templates/dhcp-client/ipv4.tmpl')
-rw-r--r-- | data/templates/dhcp-client/ipv4.tmpl | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/data/templates/dhcp-client/ipv4.tmpl b/data/templates/dhcp-client/ipv4.tmpl new file mode 100644 index 000000000..43f273077 --- /dev/null +++ b/data/templates/dhcp-client/ipv4.tmpl @@ -0,0 +1,17 @@ +# generated by ifconfig.py +option rfc3442-classless-static-routes code 121 = array of unsigned integer 8; +timeout 60; +retry 300; + +interface "{{ ifname }}" { + send host-name "{{ hostname }}"; + {% if client_id -%} + send dhcp-client-identifier "{{ client_id }}"; + {% endif -%} + {% if vendor_class_id -%} + send vendor-class-identifier "{{ vendor_class_id }}"; + {% endif -%} + request subnet-mask, broadcast-address, routers, domain-name-servers, + rfc3442-classless-static-routes, domain-name, interface-mtu; + require subnet-mask; +} |