aboutsummaryrefslogtreecommitdiffstats
path: root/examples/tg23/templates/ae-event-lol.conf
blob: 0a359423278811fac1ef89dfd34dc7b73a1804ae (plain)
1
2
3
4
5
6
7
8
9
{% set switch_name = options["switch"] %}
{% import "vars.conf" as v with context %}

{% for ae_name, if_state in v.states[switch_name].ifs.items() if 'ae' in ae_name %}
    {% if if_state.live and ae_name != "ae0" %}
activate interfaces ge-0/0/{{ ae_name[2:] | int - 100 }} ether-options
deactivate interfaces ge-0/0/{{ ae_name[2:] | int - 100 }} unit 0
    {% endif %}
{% endfor %}