Package netaddr :: Package eui :: Class IABIndexParser
[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/iab/iab.txt

Sample record:

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

Overrides: object.__init__