add default-originate to BGP peers

master
FAELIX SALT 5 years ago
parent b6d01c8683
commit 43bdf0f0cc

@ -312,6 +312,10 @@ protocols {
{% if neighbor_data['address-family']['ipv4-unicast'].get('maximum-prefix',None) != None %} {% if neighbor_data['address-family']['ipv4-unicast'].get('maximum-prefix',None) != None %}
maximum-prefix {{ neighbor_data['address-family']['ipv4-unicast'].get('maximum-prefix',None) }} maximum-prefix {{ neighbor_data['address-family']['ipv4-unicast'].get('maximum-prefix',None) }}
{% endif %} {% endif %}
{% if neighbor_data['address-family']['ipv4-unicast'].get('default-originate',False) %}
default-originate {
}
{% endif %}
} }
{% endif %} {% endif %}
{% if 'ipv6-unicast' in neighbor_data['address-family'] %} {% if 'ipv6-unicast' in neighbor_data['address-family'] %}
@ -348,6 +352,10 @@ protocols {
{% if neighbor_data['address-family']['ipv6-unicast'].get('maximum-prefix',None) != None %} {% if neighbor_data['address-family']['ipv6-unicast'].get('maximum-prefix',None) != None %}
maximum-prefix {{ neighbor_data['address-family']['ipv6-unicast'].get('maximum-prefix',None) }} maximum-prefix {{ neighbor_data['address-family']['ipv6-unicast'].get('maximum-prefix',None) }}
{% endif %} {% endif %}
{% if neighbor_data['address-family']['ipv6-unicast'].get('default-originate',False) %}
default-originate {
}
{% endif %}
} }
{% endif %} {% endif %}
} }

Loading…
Cancel
Save