diff options
author | Ingela Anderton Andin <[email protected]> | 2014-04-24 17:05:03 +0200 |
---|---|---|
committer | Raimo Niskanen <[email protected]> | 2014-07-25 12:15:14 +0200 |
commit | d2002049e348f1da8d011fe5f628484ec909ec41 (patch) | |
tree | b0093d0b07bacd3689321cadb25170bb0414bf1f /lib/snmp/test/snmp_agent_test_lib.erl | |
parent | 382e91a930b3d20d4e4cce14ea6c3cbc7e4397d7 (diff) | |
download | otp-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.erl | 9 |
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), |