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

Class L3UnicastRoute


This clase represents a layer 3 unicast route.

Instance Methods
 
__init__(self, prefix, next_hop_list=None, owner_type=None, owner_tag=None, route_type=None, admin_distance=None, metric=0, error_code=0)
Constructor that provides convenience can be called with only prefix or prefix and Next hop list
 
__str__(self)
Gets the string representation of the object
Class Variables
  OwnerType = enum('NONE', 'APP', 'CONNECTED', 'STATIC', 'BGP', ...
  RouteType = enum('NONE', 'OSPF_INTRA', 'OSPF_INTER', 'OSPF_EXT...
  prefix = property(_get_prefix, _set_prefix, None, _doc)
  owner_type = property(_get_owner_type, None, None, _doc)
  owner_tag = property(_get_owner_tag, None, None, _doc)
  route_type = property(_get_route_type, None, None, _doc)
  next_hop_list = property(_get_next_hop_list, _set_next_hop_lis...
  admin_distance = property(_get_admin_distance, _set_admin_dist...
  metric = property(_get_metric, None, None, _doc)
  error_code = property(_get_error_code, None, None, _doc)
Method Details

__init__(self, prefix, next_hop_list=None, owner_type=None, owner_tag=None, route_type=None, admin_distance=None, metric=0, error_code=0)
(Constructor)

 

Constructor that provides convenience can be called with only prefix or prefix and Next hop list

Parameters:
  • prefix (NetworkPrefix) - Prefix of the destination network in the route.
  • next_hop_list (list) - The list of next hop of the route. Note that the list is in the form of "set" to ensure duplicate hops in the list.

__str__(self)
(Informal representation operator)

 

Gets the string representation of the object

Returns:
The string representation of the object.

Class Variable Details

OwnerType

Value:
enum('NONE', 'APP', 'CONNECTED', 'STATIC', 'BGP', 'MOBILE', 'RIP', 'OS\
PF', 'ISIS', 'EIGRP', 'IGRP2', 'OSPFV3', 'ODR', 'HSRP', 'NHRP', 'LISP'\
, 'NEMO', 'ND', 'RPL', 'LOCAL', 'MAX')

RouteType

Value:
enum('NONE', 'OSPF_INTRA', 'OSPF_INTER', 'OSPF_EXTERN1', 'OSPF_EXTERN2\
', 'OSPF_NSSA1', 'OSPF_NSSA2', 'BGP_INT', 'BGP_EXT', 'BGP_LOC', 'BGP_A\
NY', 'ISIS_SUM', 'ISIS_L1', 'ISIS_L2', 'ISIS_L1_IA', 'IGRP2_INT', 'IGR\
P2_EXT', 'MAX')

next_hop_list

Value:
property(_get_next_hop_list, _set_next_hop_list, None, _doc)

admin_distance

Value:
property(_get_admin_distance, _set_admin_distance, None, _doc)