class documentation
A class to represent a DHCP option
| Method | __dict__ |
Return a dictionary representation of the option, for making JSON in the format KEA expects |
| Method | __init__ |
Initialize a DHCP option :param space: The vendor space of the option :param name: The name of the option :param code: The type code of the option :param data: The data of the option :param always_send: A boolean to determine if the option should always be sent... |
| Method | always |
Set a boolean to determine if the option should always be sent |
| Method | always |
Return always_send as a string, all lowercase, for the JSON output |
| Method | array |
Value of the option is an array |
| Method | array |
Return array as a string, all lowercase, for the JSON output |
| Method | code |
Set the code of the option |
| Method | csv |
Set the csv_format |
| Method | data |
Set the data of the option |
| Method | encapsulate |
Set the encapsulated name |
| Method | fill |
:param json_str: :return: |
| Method | name |
Set the name of the option |
| Method | never |
Set a boolean to determine if the option should never be sent |
| Method | record |
Set the record_types |
| Method | space |
Set the vendor space of the option |
| Method | type |
Set the name of the option |
| Instance Variable | always |
Return a boolean to determine if the option should always be sent |
| Instance Variable | always |
Always send option was set |
| Instance Variable | array |
Return a boolean to determine if the option is an array |
| Instance Variable | array |
Array option was set |
| Instance Variable | code |
Return the code of the option |
| Instance Variable | csv |
Return the csv_format |
| Instance Variable | csv |
CSV format option was set |
| Instance Variable | data |
Return the data of the option |
| Instance Variable | encapsulate |
Return the encapsulated name |
| Instance Variable | encapsulate |
encapsulate option was set |
| Instance Variable | name |
Return the name of the option |
| Instance Variable | never |
Return a boolean to determine if the option should always be sent |
| Instance Variable | never |
Never send option was set |
| Instance Variable | option |
Is the option defining or implementing an option |
| Instance Variable | record |
Return the record_types |
| Instance Variable | record |
record types option was set |
| Instance Variable | space |
Return the vendor space of the option |
| Instance Variable | type |
Return the data type |
| Instance Variable | _always |
Undocumented |
| Instance Variable | _array |
Undocumented |
| Instance Variable | _array |
Undocumented |
| Instance Variable | _code |
Undocumented |
| Instance Variable | _csv |
Undocumented |
| Instance Variable | _csv |
Undocumented |
| Instance Variable | _data |
Undocumented |
| Instance Variable | _encapsulate |
Undocumented |
| Instance Variable | _encapsulate |
Undocumented |
| Instance Variable | _name |
Undocumented |
| Instance Variable | _never |
Undocumented |
| Instance Variable | _record |
Undocumented |
| Instance Variable | _record |
Undocumented |
| Instance Variable | _space |
Undocumented |
| Instance Variable | _type |
Undocumented |
def __init__(self, space='', name='', code=-1, data='', always_send=False, never_send=False, array=False, type=''):
¶
Initialize a DHCP option :param space: The vendor space of the option :param name: The name of the option :param code: The type code of the option :param data: The data of the option :param always_send: A boolean to determine if the option should always be sent