Skip to main content
Version: Latest

Set a Route's Attributes

Description: Set the value for an attribute on the route's L1 ports. The attribute is specified by the route’s alias and attribute name. Note that this action sets the attribute value on the actual L1 resource ports.

Signature: set_route_attribute(topology_name, route_alias, attribute_name, target, attribute_value)

Parameters:

NameDirectionRequiredDescription
topology_nameInYesThe name of the blueprint
route_aliasInYesSpecify the route’s alias.
attribute_nameInYesSpecify the attribute name that you want to add / update, only attributes that have the rule Link Configurations can be used as route attributes
targetInYes

Specify on which resources to apply the attribute changes:

  • Source refers to the L1 resource connected to the source endpoint of the route

  • Target refers to the L1 resource connected to the target endpoint of the route

  • All encompasses all of the route's L1 resources

attribute_valueInYesSpecify the value to set on the attribute

Sample:

packageEditor.set_route_attribute(‘environment1’, 'alias', 'type', 'All', 'auto connection')