Package netaddr :: Package eui :: Class OUI
[hide private]
[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 [hide private]
 
__init__(self, oui)
Constructor
source code
 
_parse_data(self, data, offset, size)
Returns a dict record from raw OUI record data
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: hexadecimal string representation of this OUI (in network byte order).
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 [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, oui)
(Constructor)

source code 

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__

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:
hexadecimal string representation of this OUI (in network byte order).

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