Package onep :: Package interfaces :: Module InterfaceMtuFilter :: Class InterfaceMtuFilter
[frames] | no frames]

Class InterfaceMtuFilter


This class implements the EventFilter abstract class for filtering MTU event according to the specified criteria.

A Filter can be used to provide fine-tuned control over which MTU events to listen to.

Instance Methods
 
__init__(self, interface=None, interface_type=None)
Constructs an instance of InterfaceMTUFilter.

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

Class Variables
  interface = property(_get_interface, _set_interface, None, _doc)
  interface_type = property(_get_type, _set_type, None, _doc)
Properties

Inherited from object: __class__

Method Details

__init__(self, interface=None, interface_type=None)
(Constructor)

 

Constructs an instance of InterfaceMTUFilter. If no parameters are provided it returns an empty interface filter that will match all the interfaces on the network element.

Parameters:
  • interface (NetworkInterface) - Specific interface to be monitored. The value can be set to None to indicate any interface. When not None, this attribute supersedes any other settings in the filter. The default value is None
  • interface_type (InterfaceTypes) - Type of interfaces to be monitored. This parameter is ineffective if the interface parameter is set to a non-None value. The default value will be set to (InterfaceTypes.ONEP_IF_TYPE_ANY) if None is passed.
Returns:
InterfaceMtuFilter Instance
Overrides: object.__init__