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

# Class IAB

source code

    object --+
             |
            IAB

Represents 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 | source code
_parse_data(self, data, offset, size) Returns a dict record from raw IAB record data | source code
address(self) Returns: registered address of organisation | source code
org(self) Returns: the name of organisation | source code
organisation(self) Returns: the name of organisation | source code
__int__(self) Returns: integer representation of this IAB | source code
__hex__(self) Returns: hexadecimal string representation of this IAB (in network byte order) | source code
__str__(self) Returns: string representation of this IAB | source code
registration(self) Returns: registration details for this IAB | source code
__repr__(self) Returns: executable Python string to recreate equivalent object. | source code
Inherited from `object`: `__delattr__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__setattr__`

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

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

Method Details | [hide private]

### split_iab_mac(eui_int, strict=False) Static Method | source code
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) | source code
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__

### address(self) | source code
Returns: registered address of organisation

### org(self) | source code
Returns: the name of organisation

### organisation(self) | source code
Returns: the name of organisation

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

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

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

### registration(self) | source code
Returns: registration details for this IAB

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