Skip to content
Snippets Groups Projects
Commit fefeccbb authored by Aleksandr Kurbatov's avatar Aleksandr Kurbatov
Browse files

update to bgp_base

parent dcb53162
No related branches found
No related tags found
1 merge request!167PE base config - integrated into `base_config` role.
{% if bgp_context == 'vprn' %}
{% if bgp_base_obj.families is defined %}
{% for fam in bgp_base_obj.families %}
<{{ fam }}>true</{{ fam }}>
{% endfor %}
{% endif %}
{% endif %}
{% if bgp_base_obj.best_path_selection is defined %}
<best-path-selection>
{% for bps in bgp_base_obj.best_path_selection %}
<{{ bps }}>true</{{ bps }}>
{% endfor %}
</best-path-selection>
{% endif %}
{% if bgp_base_obj.error_handling is defined %}
<error-handling>
<{{ bgp_base_obj.error_handling }}>true</{{ pe_bgp_base.error_handling }}>
</error-handling>
{% endif %}
{% if bgp_base_obj.next_hop_resolution.shortcut_tunnel is defined %}
<next-hop-resolution>
<shortcut-tunnel>
{% for nhr in bgp_base_obj.next_hop_resolution.shortcut_tunnel %}
<family>
<family-type>{{ nhr.type }}</family-type>
<resolution-filter>
<{{ nhr.resolution_filter }}>true</{{ nhr.resolution_filter }}>
</resolution-filter>
</family>
{% endfor %}
</shortcut-tunnel>
</next-hop-resolution>
{% endif %}
{% if bgp_base_obj.multipath is defined %}
<multipath alu:operation="replace">
{% if bgp_base_obj.multipath.ibgp is defined %}
<ibgp>{{ bgp_base_obj.multipath.ibgp }}</ibgp>
{% endif %}
{% if bgp_base_obj.multipath.ebgp is defined %}
<ebgp>{{ bgp_base_obj.multipath.ebgp }}</ebgp>
{% endif %}
{% if bgp_base_obj.multipath.ipv4 is defined %}
<family>
<family-type>ipv4</family-type>
<max-paths>{{ bgp_base_obj.multipath.ipv4 }}</max-paths>
</family>
{% endif %}
{% if bgp_base_obj.multipath.ipv6 is defined %}
<family>
<family-type>ipv6</family-type>
<max-paths>{{ bgp_base_obj.multipath.ipv6 }}</max-paths>
</family>
{% endif %}
</multipath>
{% endif %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment