summaryrefslogtreecommitdiff
path: root/python/vyos/configdict.py
diff options
context:
space:
mode:
authorhagbard <vyosdev@derith.de>2019-10-09 09:29:29 -0700
committerhagbard <vyosdev@derith.de>2019-10-09 09:29:29 -0700
commit9b5867b7345e14cd7b738b51ae5b17a524e461f5 (patch)
treeb72d2c335fefd3e1111bb406e2c35fd261a8c7de /python/vyos/configdict.py
parentf8be18fbc549bc574746991bd0bb1de9b424745e (diff)
parent2d3539f9dec19c0d5cec5bd962aaf9640a8cec23 (diff)
downloadvyos-1x-9b5867b7345e14cd7b738b51ae5b17a524e461f5.tar.gz
vyos-1x-9b5867b7345e14cd7b738b51ae5b17a524e461f5.zip
Merge branch 'current' into equuleus
Diffstat (limited to 'python/vyos/configdict.py')
-rw-r--r--python/vyos/configdict.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/python/vyos/configdict.py b/python/vyos/configdict.py
index 1c9cf6897..1022b88de 100644
--- a/python/vyos/configdict.py
+++ b/python/vyos/configdict.py
@@ -112,6 +112,7 @@ def vlan_to_dict(conf):
'description': '',
'dhcp_client_id': '',
'dhcp_hostname': '',
+ 'dhcp_vendor_class_id': '',
'dhcpv6_prm_only': False,
'dhcpv6_temporary': False,
'disable': False,
@@ -145,6 +146,10 @@ def vlan_to_dict(conf):
if conf.exists('dhcp-options host-name'):
vlan['dhcp_hostname'] = conf.return_value('dhcp-options host-name')
+ # DHCP client vendor identifier
+ if conf.exists('dhcp-options vendor-class-id'):
+ vlan['dhcp_vendor_class_id'] = conf.return_value('dhcp-options vendor-class-id')
+
# DHCPv6 only acquire config parameters, no address
if conf.exists('dhcpv6-options parameters-only'):
vlan['dhcpv6_prm_only'] = conf.return_value('dhcpv6-options parameters-only')