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

Class L3UnicastRouteRange


L3UnicastRouteRange class represents the range tuple (Start L3 Unicast Prefix, Range Type, Count) used for filtering.

Instance Methods
 
__init__(self, start_prefix, range_type, count)
Create the range tuple (Start L3 Unicast Prefix, Range Type, Count) used for filtering.

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

Class Variables
  start_prefix = property(_get_start_prefix, _set_start_prefix, ...
  range_type = property(_get_range_type, _set_range_type, None, ...
  count = property(_get_count, _set_count, None, _doc)

Inherited from RouteRange.RouteRange: RangeType

Properties

Inherited from object: __class__

Method Details

__init__(self, start_prefix, range_type, count)
(Constructor)

 

Create the range tuple (Start L3 Unicast Prefix, Range Type, Count) used for filtering.

If range type is EQUAL_OR_LARGER, then the range indicates Count routes starting with the prefix equal or lexically larger than Start Prefix.

If range type is ROUTING_ROUTE_RANGE_LARGER, then the filter indicates Count routes starting with the prefix lexically larger than Start Prefix.

If count is 0, it is treated as no count limit and all routes matching the (Start L3 Unicast Prefix, Range Type) are included.

Parameters:
  • start_prefix (NetworkPrefix) - The starting prefix reference of the range.
  • range_type (RouteRange.RangeType) - Indicate if the range include the start prefix.
  • count (int) - Maximum number of route the range should cover. A count of 0 means no limit.
Overrides: object.__init__

Class Variable Details

start_prefix

Value:
property(_get_start_prefix, _set_start_prefix, None, _doc)

range_type

Value:
property(_get_range_type, _set_range_type, None, _doc)