Skip to content

generate_route_target

Note

Always use the FQCN (Fully Qualified Collection Name) arista.avd.generate_route_target when using this plugin.

This plugin is deprecated

This will be removed in version 5.0.0.

Transforms short_esi 0303:0202:0101 to route-target format 03:03:02:02:01:01

Synopsis

Removes : and inserts new : for each two characters.

Parameters

Argument Type Required Default Value Restrictions Description
_input string True None Short ESI value as per AVD definition in eos_designs.

Examples

---
rt: "{{ short_esi | arista.avd.generate_route_target }}"

Return Values

Name Type Description
_value string String based on route-target format like 03:03:02:02:01:01

Authors

  • Arista Ansible Team (@aristanetworks)