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

Class IABIndexParser

source code

    object --+    
             |    
core.Publisher --+
                 |
                IABIndexParser

A parser that processes IAB (Individual Address Block) registration file data published by the IEEE.

It sends out notifications to registered Subscriber objects 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/iab.txt

Sample record:

   00-50-C2   (hex)        ACME CORPORATION
   ABC000-ABCFFF     (base 16)        ACME CORPORATION
                   1 MAIN STREET
                   SPRINGFIELD
                   UNITED STATES
Instance Methods [hide private]
 
__init__(self, filename)
Constructor.
source code
 
parse(self)
Parse an IAB 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 IAB records.

Overrides: object.__init__