Package netaddr :: Package ip :: Class MulticastParser
[frames] | no frames]

Class MulticastParser

source code

    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 :-

http://www.iana.org/assignments/multicast-addresses

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

Inherited from LineRecordParser: parse

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, 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