Package netaddr :: Package ip :: Module iana :: Class MulticastParser
[hide private]
[frames] | no frames]

Class MulticastParser

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

A LineParser that knows how to process the IANA IPv4 multicast address allocation file.

It can be found online here :-

Instance Methods [hide private]
 
__init__(self, fh, **kwargs)
Constructor.
 
normalise_addr(self, addr)
Removes variations from address entries found in this particular file.
 
parse_line(self, line)
Callback method invoked for every line considered valid by the line parser's settings.

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

    Inherited from LineRecordParser
 
parse(self)
Parse and normalises records, notifying registered subscribers with record data as it is encountered.
    Inherited from core.Publisher
 
attach(self, subscriber)
Add a new subscriber.
 
detach(self, subscriber)
Remove an existing subscriber.
 
notify(self, data)
Send update data to to all registered Subscribers.
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, fh, **kwargs)
(Constructor)

 

Constructor.

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

kwargs - additional parser options.

Overrides: object.__init__

parse_line(self, line)

 

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