You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add support for Flow-tracking in eos_cli_config_gen
Which component of AVD is impacted
eos_cli_config_gen
Use case example
Configuring flow tracking for an interface
Describe the solution you would like
currently used custom_template that is a starting point
{# Jinja template for flow-tracking #}
{% for flow in flows if flow.name is arista.avd.defined %}
flow tracking {{ flow.name }}
sample {{ flow.sample | arista.avd.default(16384) }}
{% for tracker in flow.trackers if tracker.name is arista.avd.defined %}
tracker {{ tracker.name }}
{% if tracker.record_export is arista.avd.defined %}
{% if tracker.record_export.inactive_timeout is arista.avd.defined %}
record export on inactive timeout {{ tracker.record_export.inactive_timeout }}
{% endif %}
{% if tracker.record_export.interval is arista.avd.defined %}
record export on interval {{ tracker.record_export.interval }}
{% endif %}
{% endif %}
{% for exporter in tracker.exporters if exporter.name is arista.avd.defined %}
exporter {{ exporter.name }}
{% if exporter.collector.ip is arista.avd.defined %}
{% set collector_cli = 'collector ' ~ exporter.collector.ip %}
{% if exporter.collector.port is arista.avd.defined %}
{% set collector_cli = collector_cli ~ ' port ' ~ exporter.collector.port %}
{% endif %}
{{ collector_cli }}
{% endif %}
format ipfix version 10
{# TODO - the next line works in AVD 3.7.0 but will probably fail in future releases as the switch is #}
{# unavailable by default. Additionally this is using an eos_designs construct in a eos_cli_config_gen #}
{# custom template #}
local interface {{ exporter.local_interface | arista.avd.default(switch.mgmt_interface) }}
{% if exporter.template_interval is arista.avd.defined %}
template interval {{ exporter.template_interval }}
{% endif %}
{% endfor %}
{% endfor %}
no shutdown
{% endfor %}
Enhancement summary
Add support for Flow-tracking in eos_cli_config_gen
Which component of AVD is impacted
eos_cli_config_gen
Use case example
Configuring flow tracking for an interface
Describe the solution you would like
currently used custom_template that is a starting point
This then requires the following
eos_cli
usage that should be modeled under ethernet_interfacesDescribe alternatives you have considered
using custom_template for now
Additional context
No response
Contributing Guide
The text was updated successfully, but these errors were encountered: