diff options
author | Raimo Niskanen <[email protected]> | 2014-05-28 16:26:34 +0200 |
---|---|---|
committer | Raimo Niskanen <[email protected]> | 2014-07-25 12:17:49 +0200 |
commit | 4dba07b435696393adbf582933f9b539be48b943 (patch) | |
tree | 1d20e6bc8a0e47635b9ff5f219dc31ce030a15e5 /lib/snmp/src/manager/snmpm_conf.erl | |
parent | 20bb61e48a8370a4b5913d7d8e16a260bd3e31eb (diff) | |
download | otp-4dba07b435696393adbf582933f9b539be48b943.tar.gz otp-4dba07b435696393adbf582933f9b539be48b943.tar.bz2 otp-4dba07b435696393adbf582933f9b539be48b943.zip |
Use IPv6 config in manager
Diffstat (limited to 'lib/snmp/src/manager/snmpm_conf.erl')
-rw-r--r-- | lib/snmp/src/manager/snmpm_conf.erl | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/lib/snmp/src/manager/snmpm_conf.erl b/lib/snmp/src/manager/snmpm_conf.erl index d2f9ba9c26..ed4cfd749e 100644 --- a/lib/snmp/src/manager/snmpm_conf.erl +++ b/lib/snmp/src/manager/snmpm_conf.erl @@ -110,14 +110,15 @@ write_manager_conf(Fd, [H|T]) -> do_write_manager_conf(Fd, H), write_manager_conf(Fd, T). -do_write_manager_conf(Fd, {address = Tag, Val}) -> +do_write_manager_conf(Fd, {Tag, Val}) + when Tag =:= domain; + Tag =:= address; + Tag =:= port; + Tag =:= max_message_size -> io:format(Fd, "{~w, ~w}.~n", [Tag, Val]); -do_write_manager_conf(Fd, {port = Tag, Val} ) -> - io:format(Fd, "{~w, ~w}.~n", [Tag, Val]); -do_write_manager_conf(Fd, {engine_id = Tag, Val} ) -> +do_write_manager_conf(Fd, {Tag, Val}) + when Tag =:= engine_id -> io:format(Fd, "{~w, \"~s\"}.~n", [Tag, Val]); -do_write_manager_conf(Fd, {max_message_size = Tag, Val} ) -> - io:format(Fd, "{~w, ~w}.~n", [Tag, Val]); do_write_manager_conf(_Fd, Crap) -> error({bad_manager_config, Crap}). |