{# SPDX-License-Identifier: Apache-2.0 #} {# Copyright (C) 2025 Marcin Zieba #} {# Structured summary of ONE device's captured route-map (rm = summarize_route_map output). #} {% if rm.default_action %}
Default action {{ rm.default_action }}
{% endif %} {% if rm.entries %} {% for e in rm.entries %} {% endfor %}
SeqActionMatchSet
{{ e.sequence }} {{ e.action|default:'permit' }} {% for af in e.match_afi %}{{ af }}{% endfor %} {% for nm in e.match_prefix_lists %}pl:{{ nm }}{% endfor %} {% for nm in e.match_community_lists %}cl:{{ nm }}{% endfor %} {% for nm in e.match_as_paths %}ap:{{ nm }}{% endfor %} {% for k, v in e.match_knobs.items %}{{ k }}={{ v }}{% endfor %} {% if not e.match_afi and not e.match_prefix_lists and not e.match_community_lists and not e.match_as_paths and not e.match_knobs %}any{% endif %} {% for sc in e.set_communities %}community {{ sc.operation }} {{ sc.name }}{% endfor %} {% if e.call_policy %}policy {{ e.call_policy }}{% endif %} {% for k, v in e.set_knobs.items %}{{ k }}={{ v }}{% endfor %} {% for ns, kv in e.vendor_ext.items %}{% for k, v in kv.items %} {{ ns }}:{{ k }}{% endfor %}{% endfor %} {% if not e.set_communities and not e.call_policy and not e.set_knobs and not e.vendor_ext %}{% endif %}
{% else %} No structured entries. {% endif %}