Package netaddr :: Package eui :: Class OUIIndexParser
[hide private]
[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 [hide private]
 
__init__(self, filename)
Constructor.
source code
 
parse(self)
Parse an OUI registration file for records notifying subscribers
source code

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

    Inherited from core.Publisher
 
attach(self, subscriber)
Add a new subscriber
source code
 
detach(self, subscriber)
Remove an existing subscriber
source code
 
notify(self, data)
Send notification message to all registered subscribers
source code
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, filename)
(Constructor)

source code 

Constructor.

filename - location of file containing OUI records.

Overrides: object.__init__