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

Class OUIIndexParser

source code

    object --+    
             |    
core.Publisher --+
                 |
                OUIIndexParser

A parser that processes OUI (Organisationally Unique Identifier) registration file data published by the IEEE.

It sends out notifications to registered subscribers for each record it encounters, passing on the record's position relative to file start (offset) and the size of the record (in bytes).

The file is available online here :-

http://standards.ieee.org/regauth/oui/oui.txt

Sample record:

   00-CA-FE   (hex)        ACME CORPORATION
   00CAFE     (base 16)        ACME CORPORATION
                   1 MAIN STREET
                   SPRINGFIELD
                   UNITED STATES
Instance Methods
 
__init__(self, filename)
Constructor.
source code
 
parse(self)
Parse an OUI registration file for records notifying subscribers
source code

Inherited from core.Publisher: attach, detach, notify

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties

Inherited from object: __class__

Method Details

__init__(self, filename)
(Constructor)

source code 

Constructor.

filename - location of file containing OUI records.

Overrides: object.__init__