瀏覽代碼

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

Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
Maximilian Wilhelm 1 年之前
父節點
當前提交
89781ebb00
共有 1 個文件被更改,包括 3 次插入0 次删除
  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 %}