Skip to main content
Version: Latest

Add Routes

Description: Create a route between the source and target resources in a specific blueprint.

Signature: add_route(topology_name, route_alias, source, target, route_interface, max_hops, direction, shared)

Parameters:

NameDirectionRequiredDescription
topology_nameInYesThe name of the blueprint
route_aliasInYesSpecify the route’s alias.
sourceInYesThe name and path of the source resource (end point)
targetInYesThe name and path of the target resource (end point)
route_interfaceInYesThe protocol type of the end points
max_hopsInYesSpecify the maximum number or allowed hops.
directionInYesSpecify the direction of the route: Uni, Bi
sharedInYesSpecify whether these routes are shared. Shared routes can be used in more than one sandbox.

Sample:

packageEditor.add_route('blueprint1', 'ABC','Chassis1/Blade1/Port1','Chassis2/Blade1/Port1','Ethernet',3,'Bi',False)