DHCP Option Data Class

class bloxone.DHCP_OPTION_DEFS(cfg='vendor_dict.yaml')[source]

Class to load and handle DHCP Option Defs

count()[source]

Get numbner of defined vendors

Returns

int

dump_vendor_def(vendor)[source]

Returns the vendor definition as a dict

Parameters

vendor (str) – Vendor Identifier

Returns

dict containing vendor definition

included(vendor)[source]

Check whether this vendor is configured

Parameters

vendor (str) – Vendor Identifier

Returns bool

keys()[source]
Returns

list of top level keys

option_def(vendor)[source]

Returns option definition as dict

Parameters

vendor (str) – Vendor Identifier

Returns

Dict containing both parent and sub option definitions

parent_opt_def(vendor)[source]

Returns parent-option definition as dict

Parameters

vendor (str) – Vendor Identifier

Returns

dict containing parent option definition

sub_options(vendor)[source]

Returns list of sub-option definitions

Parameters

vendor (str) – Vendor Identifier

Returns

list of dict

vendor_description(vendor)[source]

Get description of vendor

Parameters

vendor (str) – Vendor Identifier

vendor_keys(vendor)[source]

Returns vendor top level keys

Parameters

vendor (str) – Vendor Identifier

Returns

list of keys defined for a vendor

vendor_prefix(vendor)[source]

Get the prefix is present as a string

Parameters

vendor (str) – Vendor Identifier

Returns

string containing defined prefix or ‘’ if none

vendors()[source]
Returns

list of defined vendors

version()[source]
Returns

str containing config file version or ‘Version not defined’