Browse Source

snmpd: Don't generate synthetica bandwidth for VLAN and VXLAN interfaces

Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
Maximilian Wilhelm 11 months ago
parent
commit
89781ebb00
1 changed files with 3 additions and 0 deletions
  1. 3 0
      snmpd/snmpd.conf.tmpl

+ 3 - 0
snmpd/snmpd.conf.tmpl

@@ -41,6 +41,9 @@ rocommunity	{{ ro_community }}	{{ entry }}
 interface	lo		6	1000000000	#   1 Gb/s
 {%- for iface in ifaces|sort %}
  {%- set config = ifaces.get (iface) %}
+ {%- if "vlan" in config or "vxlan" in config %}
+   {%- continue %}
+ {%- endif %}
  {%- if "batman" in config or "bridge" in config %}
 interface	{{ iface }}	6	 500000000	# 500 Mb/s
  {%- endif %}