netaddr.eui.OUI

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

# Class OUI

        object --+
                 |
    BaseIdentifier --+
                     |
                    OUI

An individual IEEE OUI (Organisationally Unique Identifier).

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

Instance Methods | [hide private]
__init__(self, oui) Constructor |
_parse_data(self, data, offset, size) Returns a dict record from raw OUI record data |
registration(self, index=0) The IEEE registration details for this OUI. |
__str__(self) Returns: string representation of this OUI |
__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. |

Properties | [hide private]
| reg_count Number of registered organisations with this OUI
| records
Inherited from `object`: `__class__`
Inherited from BaseIdentifier
| _value

Method Details | [hide private]

### __init__(self, oui) (Constructor) |
Constructor Parameters: `oui` - an OUI string `XX-XX-XX` or an unsigned integer. Also accepts and parses full MAC/EUI-48 address strings (but not MAC/EUI-48 integers)! Overrides: object.__init__

### registration(self, index=0) |
The IEEE registration details for this OUI. Parameters: `index` - the index of record (may contain multiple registrations) (Default: 0 - first registration) Returns: Objectified Python data structure containing registration details.

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

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

Property Details | [hide private]

### reg_count Number of registered organisations with this OUI Get Method: unreachable.reg_count(self) - Number of registered organisations with this OUI