{{ "routing-options"|progress }} {
|
|
ppm;
|
|
static {
|
|
{%- for (route, route_data) in device.config_context.get('routes',{}).items() %}
|
|
route {{ route }} {
|
|
next-hop {{ route_data.get('next-hop', None) }};
|
|
retain;
|
|
no-readvertise;
|
|
}
|
|
{%- endfor %}
|
|
|
|
/* blackhole destination */
|
|
route 193.162.44.0/32 {
|
|
discard;
|
|
no-readvertise;
|
|
}
|
|
|
|
{% for announcement in 'as59811-origin'|get_netbox_tagged_prefixes %}{% if announcement.prefix|ipv4 %}
|
|
route {{ announcement.prefix }} {
|
|
/* {{ announcement.description }} */
|
|
discard;
|
|
retain;
|
|
community [ {{ ("COMMUNITY-ORIGIN-AS59811"|get_bgp_community).value }} ];
|
|
}
|
|
{% endif %}{% endfor %}
|
|
{% for announcement in 'as59811-origin'|get_netbox_tagged_aggregates %}{% if announcement.prefix|ipv4 %}
|
|
route {{ announcement.prefix }} {
|
|
/* {{ announcement.description }} */
|
|
discard;
|
|
retain;
|
|
community [ {{ ("COMMUNITY-ORIGIN-AS59811"|get_bgp_community).value }} ];
|
|
}
|
|
{% endif %}{% endfor %}
|
|
}
|
|
rib inet6.0 {
|
|
static {
|
|
/* blackhole destination */
|
|
route 2a10:f0c0::/128 {
|
|
discard;
|
|
no-readvertise;
|
|
}
|
|
{% for announcement in 'as59811-origin'|get_netbox_tagged_prefixes %}{% if announcement.prefix|ipv6 %}
|
|
route {{ announcement.prefix }} {
|
|
/* {{ announcement.description }} */
|
|
discard;
|
|
retain;
|
|
community [ {{ ("COMMUNITY-ORIGIN-AS59811"|get_bgp_community).value }} ];
|
|
}
|
|
{% endif %}{% endfor %}
|
|
{% for announcement in 'as59811-origin'|get_netbox_tagged_aggregates %}{% if announcement.prefix|ipv6 %}
|
|
route {{ announcement.prefix }} {
|
|
/* {{ announcement.description }} */
|
|
discard;
|
|
retain;
|
|
community [ {{ ("COMMUNITY-ORIGIN-AS59811"|get_bgp_community).value }} ];
|
|
}
|
|
{% endif %}{% endfor %}
|
|
}
|
|
generate {
|
|
route ::/0 {
|
|
policy CONDITIONAL-DEFAULT-IPv6;
|
|
discard;
|
|
}
|
|
}
|
|
}
|
|
nonstop-routing;
|
|
autonomous-system 59811;
|
|
forwarding-table {
|
|
export LOAD-BALANCING;
|
|
chained-composite-next-hop {
|
|
ingress {
|
|
l2vpn;
|
|
l3vpn;
|
|
}
|
|
}
|
|
}
|
|
generate {
|
|
route 0.0.0.0/0 {
|
|
policy CONDITIONAL-DEFAULT-IPv4;
|
|
discard;
|
|
}
|
|
}
|
|
}
|