!
{% if protocol is vyos_defined %}
{%     for protocol_name, protocol_config in protocol.items() %}
{%         if protocol_name is vyos_defined('ospfv3') %}
{%             set protocol_name = 'ospf6' %}
{%         endif %}
{{ afi }} protocol {{ protocol_name }} route-map {{ protocol_config.route_map }}
{%     endfor %}
{% endif %}