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

# Class OUI

source code

    object --+
             |
            OUI

Represents an individual IEEE OUI (Organisationally Unique Identifier) identifier.

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

Instance Methods
__init__(self, oui) Constructor | source code
org_count(self) Returns: number of organisations with this OUI | source code
address(self, index=0) Returns: registered address of organisation linked to OUI | source code
org(self, index=0) Returns: the name of organisation linked to OUI | source code
organisation(self, index=0) Returns: the name of organisation linked to OUI | source code
__int__(self) Returns: integer representation of this OUI | source code
__hex__(self) Returns: network byte order hexadecimal string of this OUI | source code
__str__(self) Returns: string representation of this OUI | 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__`

Properties
Inherited from `object`: `__class__`

Method Details

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

### org_count(self) | source code
Returns: number of organisations with this OUI

### address(self, index=0) | source code
Parameters: `index` - the index of record (multiple registrations) (Default: 0 - first registration) Returns: registered address of organisation linked to OUI

### org(self, index=0) | source code
Parameters: `index` - the index of record (multiple registrations) (Default: 0 - first registration) Returns: the name of organisation linked to OUI

### organisation(self, index=0) | source code
Parameters: `index` - the index of record (multiple registrations) (Default: 0 - first registration) Returns: the name of organisation linked to OUI

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

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

### __str__(self) (Informal representation operator) | source code
str(x) Returns: string representation of this OUI 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__