netaddr.eui.IAB

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

# Class IAB

        object --+
                 |
    BaseIdentifier --+
                     |
                    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 |
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__`, `__format__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__setattr__`, `__sizeof__`, `__subclasshook__`
Inherited from BaseIdentifier
__hex__(self) Returns: hexadecimal string representation of this identifier. |
__index__(self) Returns: return the integer value of this identifier when passed to hex(), oct() or bin(). |
__int__(self) Returns: integer value of this identifier |
__long__(self) Returns: integer value of this identifier |
__oct__(self) Returns: octal string representation of this identifier. |

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

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

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__

### __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__