Add SNMP config
parent
211ce5ec9e
commit
b2036bfe4d
|
|
@ -165,6 +165,23 @@ interfaces {
|
||||||
}
|
}
|
||||||
{%- endmacro %}
|
{%- endmacro %}
|
||||||
|
|
||||||
|
{% macro snmpsection(rack, config_context) %}
|
||||||
|
snmp {
|
||||||
|
location "Domicilium Datacentre RS02 {{ rack }}";
|
||||||
|
contact "{{ config_context['snmp']['contact'] }}";
|
||||||
|
community {{ config_context['snmp']['community'] }} {
|
||||||
|
authorization read-only;
|
||||||
|
{% for client in config_context['snmp']['clients'] %}
|
||||||
|
{% if loop.first %}
|
||||||
|
clients {
|
||||||
|
{% endif %}
|
||||||
|
{{ client }};
|
||||||
|
{% if loop.last %}
|
||||||
|
}
|
||||||
|
{% endif %}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
{- endmacro %}
|
||||||
|
|
||||||
{% macro routingoptionssection(primary_ip4, config_context) %}
|
{% macro routingoptionssection(primary_ip4, config_context) %}
|
||||||
routing-options {
|
routing-options {
|
||||||
|
|
|
||||||
|
|
@ -28,6 +28,7 @@ policy-options {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
{{ junos.snmpsection(rack, config_context) }}
|
||||||
{{ junos.routingoptionssection(primary_ip4, config_context) }}
|
{{ junos.routingoptionssection(primary_ip4, config_context) }}
|
||||||
protocols {
|
protocols {
|
||||||
{{ junos.bgpsection(device,tenant['spines']) }}
|
{{ junos.bgpsection(device,tenant['spines']) }}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue