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:
| Name | Direction | Required | Description |
|---|---|---|---|
topology_name | In | Yes | The name of the blueprint |
route_alias | In | Yes | Specify the route’s alias. |
attribute_name | In | Yes | Specify the attribute name that you want to add / update, only attributes that have the rule Link Configurations can be used as route attributes |
target | In | Yes | Specify on which resources to apply the attribute changes:
|
attribute_value | In | Yes | Specify the value to set on the attribute |
Sample:
packageEditor.set_route_attribute(‘environment1’, 'alias', 'type', 'All', 'auto connection')