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

Class InterfaceVlanFilter


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

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

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

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)
  vlan_event_type = property(_get_vlan_event_type, _set_vlan_eve...
Properties

Inherited from object: __class__

Method Details

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

 

Constructs an instance of InterfaceVlanFilter. 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.
  • vlan_event_type (InterfaceVLANEventType) - Specifies the VLan event type to be monitored.If it is set to null, it means any type.
Returns:
InterfaceVlanFilter
Overrides: object.__init__

Class Variable Details

vlan_event_type

Value:
property(_get_vlan_event_type, _set_vlan_event_type, None, _doc)