add ability to originate default on OSPF

master
Marek Isalski 5 years ago
parent 4f85fe97ab
commit f88ce976ea

@ -121,6 +121,17 @@ protocols {
abr-type {{ salt['pillar.get']('protocols:ospf:parameters:abr-type','cisco') }}
}
{% if 'default-information' in salt['pillar.get']('protocols:ospf') %}
default-information {
{% if 'originate' in salt['pillar.get']('protocols:ospf:default-information') %}
originate {
{% if salt['pillar.get']('protocols:ospf:default-information:originate:metric',None) %}metric {{ salt['pillar.get']('protocols:ospf:default-information:originate:metric') }}{% endif %}
{% if salt['pillar.get']('protocols:ospf:default-information:originate:metric-type',None) %}metric-type {{ salt['pillar.get']('protocols:ospf:default-information:originate:metric-type') }}{% endif %}
}
{% endif %}
}
{% endif %}
{% for iface_name, iface_data in pillar['netbox']['interfaces'].items() %}{% if salt['pillar.get']('interfaces:'+iface_name+':ip:ospf:passive') %}
passive-interface {{ iface_name }}
{% endif %}{% endfor %}

Loading…
Cancel
Save