aboutsummaryrefslogtreecommitdiffstats
path: root/lib/snmp/test/snmp_agent_test_lib.erl
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2014-04-24 17:05:03 +0200
committerRaimo Niskanen <[email protected]>2014-07-25 12:15:14 +0200
commitd2002049e348f1da8d011fe5f628484ec909ec41 (patch)
treeb0093d0b07bacd3689321cadb25170bb0414bf1f /lib/snmp/test/snmp_agent_test_lib.erl
parent382e91a930b3d20d4e4cce14ea6c3cbc7e4397d7 (diff)
downloadotp-d2002049e348f1da8d011fe5f628484ec909ec41.tar.gz
otp-d2002049e348f1da8d011fe5f628484ec909ec41.tar.bz2
otp-d2002049e348f1da8d011fe5f628484ec909ec41.zip
snmp: Add IPV6 tests
Diffstat (limited to 'lib/snmp/test/snmp_agent_test_lib.erl')
-rw-r--r--lib/snmp/test/snmp_agent_test_lib.erl9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/snmp/test/snmp_agent_test_lib.erl b/lib/snmp/test/snmp_agent_test_lib.erl
index e12a282a34..6061732879 100644
--- a/lib/snmp/test/snmp_agent_test_lib.erl
+++ b/lib/snmp/test/snmp_agent_test_lib.erl
@@ -232,13 +232,14 @@ init_case(Config) when is_list(Config) ->
MgrNode = ?config(snmp_mgr, Config),
MasterNode = ?config(snmp_master, Config),
%% MasterNode = node(),
-
+ IpFamily = proplists:get_value(ipfamily, Config, inet),
+
SaHost = ?HOSTNAME(SaNode),
MgrHost = ?HOSTNAME(MgrNode),
MasterHost = ?HOSTNAME(MasterNode),
- {ok, MasterIP} = snmp_misc:ip(MasterHost),
- {ok, MIP} = snmp_misc:ip(MgrHost),
- {ok, SIP} = snmp_misc:ip(SaHost),
+ {ok, MasterIP} = snmp_misc:ip(MasterHost, IpFamily),
+ {ok, MIP} = snmp_misc:ip(MgrHost, IpFamily),
+ {ok, SIP} = snmp_misc:ip(SaHost, IpFamily),
put(mgr_node, MgrNode),