Package netaddr :: Package eui :: Class IAB |
[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
__init__(self, iab, strict=False) Constructor | 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: network byte order hexadecimal string of this IAB | 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
split_iab_mac(eui_int, strict=False) | source code

Properties
Inherited from `object`: `__class__`

Method Details

### split_iab_mac(eui_int, strict=False) Static Method | source code
Parameters: `eui_int` - a MAC IAB integer value in network byte order. `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 a network byte order 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: network byte order hexadecimal string of this IAB

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