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

Class L3UnicastScope


Instance Methods
 
__init__(self, vrf=None, afi=None, safi=None, topology=None)
Constructor
 
__str__(self)
Returns a string representation of the L3UnicastScope object.

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

Class Variables
  AFIType = enum('UNKNOWN', 'IPV4', 'IPV6')
  SAFIType = enum('UNKNOWN', 'UNICAST', 'MULTICAST')
Properties
int afi
The address family to set.
int safi
Sets the subsequence address family.
str topology
Sets name of the topology.

Inherited from Scope.Scope: vrf

Inherited from object: __class__

Method Details

__init__(self, vrf=None, afi=None, safi=None, topology=None)
(Constructor)

 

Constructor

Parameters:
  • vrf (str) - Name of the VRF. An empty string means default VRF. If the input is None, it will be interpreted as empty string.
  • afi (int) - The address family. See AFIType for allowed value. If this parameter is None, default is IPV4.
  • safi (int) - The subsequence address family. See SAFIType for allowed value. If this parameter is None, default is UNICAST.
  • topology (str) - Name of the topology. An empty string means the default topology. If the input is None, it will be interpreted as empty string.
Raises:
Overrides: object.__init__

__str__(self)
(Informal representation operator)

 

Returns a string representation of the L3UnicastScope object.

Returns:
a string representation of the object
Overrides: object.__str__

Property Details

afi

The address family to set. If this parameter is null, default is IPV4

Get Method:
_get_afi(self)
Set Method:
_set_afi(self, afi)
Type:
int

safi

Sets the subsequence address family. If this parameter is null, default is UNICAST.

Get Method:
_get_safi(self)
Set Method:
_set_safi(self, safi)
Type:
int

topology

Sets name of the topology. None means the default topology. An empty string means the default topology.

Get Method:
_get_topology_name(self)
Set Method:
_set_topology_name(self, topology)
Type:
str