Package onep :: Package routing :: Module RouteOperation :: Class RouteOperation
[frames] | no frames]

Class RouteOperation


This abstract class is the parent class of L3UnicastRouteOperation and in the future for L3MulticastRouteOperation, L2UnicastRouteOperation, L2MulticastRouteOperation, etc.

This class represents the operation to be performed on a route.

Instance Methods
 
__init__(self, opType)
Constructor

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

Class Variables
  RouteOperationType = enum('ADD', 'REMOVE', 'REPLACE',)
Properties
Enum op_type
The operation type.

Inherited from object: __class__

Method Details

__init__(self, opType)
(Constructor)

 

Constructor

Parameters:
  • opType (Enum) - The operation type.
Overrides: object.__init__

Property Details

op_type

The operation type.

Get Method:
_get_op_type(self)
Type:
Enum