aboutsummaryrefslogtreecommitdiffstats
path: root/lib/snmp/src/misc/snmp_conf.erl
diff options
context:
space:
mode:
authorRaimo Niskanen <[email protected]>2014-06-26 10:50:24 +0200
committerRaimo Niskanen <[email protected]>2014-07-25 12:17:50 +0200
commitdfb5cf6e2406486eeb7fbd89bf9118a6411bd5f2 (patch)
tree81418cc24ba9b30b07b93c300390031e9521ec4e /lib/snmp/src/misc/snmp_conf.erl
parent1ebfcb6f1f013e62aabc9935c878a55b788967a9 (diff)
downloadotp-dfb5cf6e2406486eeb7fbd89bf9118a6411bd5f2.tar.gz
otp-dfb5cf6e2406486eeb7fbd89bf9118a6411bd5f2.tar.bz2
otp-dfb5cf6e2406486eeb7fbd89bf9118a6411bd5f2.zip
Rewrite agent for IPv4 + IPv6
Diffstat (limited to 'lib/snmp/src/misc/snmp_conf.erl')
-rw-r--r--lib/snmp/src/misc/snmp_conf.erl8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/snmp/src/misc/snmp_conf.erl b/lib/snmp/src/misc/snmp_conf.erl
index 82cbf42e35..f4483995cb 100644
--- a/lib/snmp/src/misc/snmp_conf.erl
+++ b/lib/snmp/src/misc/snmp_conf.erl
@@ -223,13 +223,17 @@ read_check(_, _, [], _, Res) ->
lists:reverse(Res);
read_check(File, Check, [{StartLine, Row, EndLine}|Lines], State, Res) ->
try Check(Row, State) of
+ {Rows, NewState} when is_list(Rows) ->
+ ?vtrace("read_check -> ok:~n"
+ " Rows: ~p~n", [Rows]),
+ read_check(File, Check, Lines, NewState, Rows ++ Res);
{ok, NewState} ->
?vtrace("read_check -> ok", []),
- read_check(File, Check, Lines, NewState, [Row|Res]);
+ read_check(File, Check, Lines, NewState, [Row | Res]);
{{ok, NewRow}, NewState} ->
?vtrace("read_check -> ok:~n"
" NewRow: ~p~n", [NewRow]),
- read_check(File, Check, Lines, NewState, [NewRow|Res])
+ read_check(File, Check, Lines, NewState, [NewRow | Res])
catch
{error, Reason} ->
?vtrace("read_check -> error:~n"