Package netaddr :: Package eui :: Class IAB |
[hide private]
[frames] | no frames]

# Class IAB

    object --+
             |
            IAB

An individual IEEE IAB (Individual Address Block) identifier.

For online details see - http://standards.ieee.org/regauth/oui/

Instance Methods | [hide private]
__init__(self, iab, strict=False) Constructor |
_parse_data(self, data, offset, size) Returns a dict record from raw IAB record data |
__int__(self) Returns: integer representation of this IAB |
__hex__(self) Returns: hexadecimal string representation of this IAB (in network byte order) |
registration(self) The IEEE registration details for this IAB |
__str__(self) Returns: string representation of this IAB |
__repr__(self) Returns: executable Python string to recreate equivalent object. |
Inherited from `object`: `__delattr__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__setattr__`

Static Methods | [hide private]
split_iab_mac(eui_int, strict=False) |

Properties | [hide private]
Inherited from `object`: `__class__`

Method Details | [hide private]

### split_iab_mac(eui_int, strict=False) Static Method |
Parameters: `eui_int` - a MAC IAB as an unsigned integer. `strict` - If True, raises a ValueError if the last 12 bits of IAB MAC/EUI-48 address are non-zero, ignores them otherwise. (Default: False)

### __init__(self, iab, strict=False) (Constructor) |
Constructor Parameters: `iab` - an IAB string `00-50-C2-XX-X0-00` or an unsigned integer. This address looks like an EUI-48 but it should not have any non-zero bits in the last 3 bytes. `strict` - If True, raises a ValueError if the last 12 bits of IAB MAC/EUI-48 address are non-zero, ignores them otherwise. (Default: False) Overrides: object.__init__

### __int__(self) |
Returns: integer representation of this IAB

### __hex__(self) |
Returns: hexadecimal string representation of this IAB (in network byte order)

### __str__(self) (Informal representation operator) |
str(x) Returns: string representation of this IAB Overrides: object.__str__

### __repr__(self) (Representation operator) |
repr(x) Returns: executable Python string to recreate equivalent object. Overrides: object.__repr__