Browse Source

snmpd: Update synthetic bandwidth values

Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
Maximilian Wilhelm 2 years ago
parent
commit
43ba5498e5
1 changed files with 7 additions and 4 deletions
  1. 7 4
      snmpd/snmpd.conf

+ 7 - 4
snmpd/snmpd.conf

@@ -41,14 +41,17 @@ rocommunity	{{ ro_community }}	{{ entry }}
 # an ideal value for everyone.
 {%- for iface in ifaces|sort %}
  {%- set config = ifaces.get (iface) %}
- {%- if 'vlan-raw-device' in config or "batman" in config or "bridge" in config or config.get ('link-type', '') == 'veth' %}
-interface	{{ iface }}	6	100000000
+ {%- if 'vlan-raw-device' in config %}
+interface	{{ iface }}	6	1000000000	#   1 Gb/s
+ {%- endif %}
+ {%- if "batman" in config or "bridge" in config %}
+interface	{{ iface }}	6	500000000	# 500 Mb/s
  {%- endif %}
 {%- endfor %}
 
 {%- if "fastd" in node_config.get ('roles') %}
   {%- for site in node_config.get ('sites') %}
-interface	{{ site }}_intergw	6	100000000
+interface	{{ site }}_intergw	6	500000000	# 500 Mb/s
   {%- endfor %}
 {%- endif %}
 
@@ -65,5 +68,5 @@ interface	{{ site }}_intergw	6	100000000
   {%- if loop.first %}
 # OpenVPN interfaces
   {%- endif %}
-interface	{{ interface }}	6	100000000
+interface	{{ interface }}	6	100000000	# 100 Mb/s
 {%- endfor %}