瀏覽代碼

snmpd: Use IP address provided from get_primary_ip().

Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
Maximilian Wilhelm 4 年之前
父節點
當前提交
af319a8d13
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      snmpd/snmpd.conf

+ 2 - 2
snmpd/snmpd.conf

@@ -20,8 +20,8 @@ agentAddress  udp:127.0.0.1:161
 agentAddress  udp6:[::1]:161
 
 # Listen for connections on Loopback-IPs
-agentAddress  udp:{{ salt['ffho_net.get_primary_ip'] (node_config, 'v4') }}:161
-agentAddress  udp6:[{{ salt['ffho_net.get_primary_ip'] (node_config, 'v6') }}]:161
+agentAddress  udp:{{ salt['ffho_net.get_primary_ip'] (node_config, 'v4').ip }}:161
+agentAddress  udp6:[{{ salt['ffho_net.get_primary_ip'] (node_config, 'v6').ip }}]:161
 
 # We accept requests from those fine boxes
 rocommunity	{{ ro_community }}	127.0.0.1