diff options
author | Christian Breunig <christian@breunig.cc> | 2023-08-05 21:48:09 +0200 |
---|---|---|
committer | Christian Breunig <christian@breunig.cc> | 2023-08-05 22:48:47 +0200 |
commit | fac6f661eff1e85bbb36d360839bafcfb5bc14b1 (patch) | |
tree | f8dbd02aa0b17a68f70e452dee4e8eb576ea1a9f /python/vyos/configdict.py | |
parent | e66126e5f031aab947ae70a27b447d1dd18f6d90 (diff) | |
download | vyos-1x-fac6f661eff1e85bbb36d360839bafcfb5bc14b1.tar.gz vyos-1x-fac6f661eff1e85bbb36d360839bafcfb5bc14b1.zip |
vyos.configdict: T5308: remove obsolete T2665_set_dhcpv6pd_defaults function
Diffstat (limited to 'python/vyos/configdict.py')
-rw-r--r-- | python/vyos/configdict.py | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/python/vyos/configdict.py b/python/vyos/configdict.py index fd7b1b997..38f4475d4 100644 --- a/python/vyos/configdict.py +++ b/python/vyos/configdict.py @@ -177,24 +177,6 @@ def get_removed_vlans(conf, path, dict): return dict -def T2665_set_dhcpv6pd_defaults(config_dict): - """ Properly configure DHCPv6 default options in the dictionary. If there is - no DHCPv6 configured at all, it is safe to remove the entire configuration. - """ - # As this is the same for every interface type it is safe to assume this - # for ethernet - pd_defaults = defaults(['interfaces', 'ethernet', 'dhcpv6-options', 'pd']) - - # Implant default dictionary for DHCPv6-PD instances - if dict_search('dhcpv6_options.pd.length', config_dict): - del config_dict['dhcpv6_options']['pd']['length'] - - for pd in (dict_search('dhcpv6_options.pd', config_dict) or []): - config_dict['dhcpv6_options']['pd'][pd] = dict_merge(pd_defaults, - config_dict['dhcpv6_options']['pd'][pd]) - - return config_dict - def is_member(conf, interface, intftype=None): """ Checks if passed interface is member of other interface of specified type. |