Package netaddr :: Package ip :: Class IPv6Parser
[hide private]
[frames] | no frames]

Class IPv6Parser

source code

    object --+        
             |        
core.Publisher --+    
                 |    
  LineRecordParser --+
                     |
                    IPv6Parser

A LineRecordParser that understands how to parse and retrieve data records from the IANA IPv6 address space file.

It can be found online here :-

http://www.iana.org/assignments/ipv6-address-space

Instance Methods [hide private]
 
__init__(self, fh, **kwargs)
Constructor.
source code
 
parse_line(self, line)
Callback method invoked for every line considered valid by the line parser's settings.
source code

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

    Inherited from LineRecordParser
 
parse(self)
Parse and normalises records, notifying registered subscribers with record data as it is encountered.
source code
    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, fh, **kwargs)
(Constructor)

source code 

Constructor.

fh - a valid, open file handle to an OUI Registry data file.

kwargs - additional parser options.

Overrides: object.__init__

parse_line(self, line)

source code 

Callback method invoked for every line considered valid by the line parser's settings.

See base class method for more details.

Overrides: LineRecordParser.parse_line