Browse Source

snmpd: Set bandwidth of user facing fastd interfaces to 500Mb/s too

Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
Maximilian Wilhelm 2 years ago
parent
commit
69fbd2ea5a
2 changed files with 3 additions and 1 deletions
  1. 1 1
      snmpd/init.sls
  2. 2 0
      snmpd/snmpd.conf.tmpl

+ 1 - 1
snmpd/init.sls

@@ -39,7 +39,7 @@ snmpd:
 /etc/snmp/snmpd.conf:
   file.managed:
     - template: jinja
-    - source: salt://snmpd/snmpd.conf
+    - source: salt://snmpd/snmpd.conf.tmpl
     - require:
       - pkg: snmpd
     - watch_in:

+ 2 - 0
snmpd/snmpd.conf → snmpd/snmpd.conf.tmpl

@@ -52,6 +52,8 @@ interface	{{ iface }}	6	500000000	# 500 Mb/s
 {%- if "fastd" in node_config.get ('roles') %}
   {%- for site in node_config.get ('sites') %}
 interface	{{ site }}_intergw	6	500000000	# 500 Mb/s
+interface	{{ site }}_nodes4	6	500000000	# 500 Mb/s
+interface	{{ site }}_nodes6	6	500000000	# 500 Mb/s
   {%- endfor %}
 {%- endif %}