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

Class InterfaceBandwidthFilter


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

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

InterfaceBandwidthFilter is deprecated and replaced by onep.interfaces.InterfaceFilter

If both the parameters, network interface and interface type are specified, network interface takes precedence over interface type.

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

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 InterfaceBandwidthFilter.

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 specific 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:
InterfaceBandwidthFilter Instance
Decorators:
  • @deprecated(InterfaceFilter)
Overrides: object.__init__