Browse Source

snmpd: Use IP address provided from get_primary_ip().

Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
Maximilian Wilhelm 3 years ago
parent
commit
af319a8d13
1 changed files with 2 additions and 2 deletions
  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