aboutsummaryrefslogtreecommitdiffstats
path: root/lib/snmp/test/snmp_to_snmpnet_SUITE.erl
diff options
context:
space:
mode:
authorRaimo Niskanen <[email protected]>2014-08-19 15:42:49 +0200
committerRaimo Niskanen <[email protected]>2014-08-19 15:42:49 +0200
commitc49a434098b715b5d7d47ebcb1c2b9a22d0ee500 (patch)
tree00d7e48ea8ae447dbb15f725b8c883f0ae7d85cd /lib/snmp/test/snmp_to_snmpnet_SUITE.erl
parent0685f5c84f0f6ecfd8535d471d082271e77517c6 (diff)
downloadotp-c49a434098b715b5d7d47ebcb1c2b9a22d0ee500.tar.gz
otp-c49a434098b715b5d7d47ebcb1c2b9a22d0ee500.tar.bz2
otp-c49a434098b715b5d7d47ebcb1c2b9a22d0ee500.zip
Implement IPv4+IPv6 in MT manager
Diffstat (limited to 'lib/snmp/test/snmp_to_snmpnet_SUITE.erl')
-rw-r--r--lib/snmp/test/snmp_to_snmpnet_SUITE.erl16
1 files changed, 15 insertions, 1 deletions
diff --git a/lib/snmp/test/snmp_to_snmpnet_SUITE.erl b/lib/snmp/test/snmp_to_snmpnet_SUITE.erl
index 5ce9cf9e5c..c514eafd7d 100644
--- a/lib/snmp/test/snmp_to_snmpnet_SUITE.erl
+++ b/lib/snmp/test/snmp_to_snmpnet_SUITE.erl
@@ -60,16 +60,19 @@ groups() ->
[{ipv4, [],
[{group, snmpget},
{group, snmptrapd},
+ {group, snmpd_mt},
{group, snmpd}
]},
{ipv6, [],
[{group, snmpget},
{group, snmptrapd},
+ {group, snmpd_mt},
{group, snmpd}
]},
{ipv4_ipv6, [],
[{group, snmpget},
{group, snmptrapd},
+ {group, snmpd_mt},
{group, snmpd}
]},
%%
@@ -77,6 +80,8 @@ groups() ->
[erlang_agent_netsnmp_get]},
{snmptrapd, [],
[erlang_agent_netsnmp_inform]},
+ {snmpd_mt, [],
+ [erlang_manager_netsnmp_get]},
{snmpd, [],
[erlang_manager_netsnmp_get]}
].
@@ -100,9 +105,16 @@ init_per_group(snmpget = Exec, Config) ->
init_per_group(snmptrapd = Exec, Config) ->
%% From Ubuntu package snmpd
init_per_group_agent(Exec, Config);
+init_per_group(snmpd_mt, Config) ->
+ %% From Ubuntu package snmp
+ init_per_group_manager(
+ snmpd,
+ [{manager_net_if_module, snmpm_net_if_mt} | Config]);
init_per_group(snmpd = Exec, Config) ->
%% From Ubuntu package snmp
- init_per_group_manager(Exec, Config);
+ init_per_group_manager(
+ Exec,
+ [{manager_net_if_module, snmpm_net_if} | Config]);
%%
init_per_group(_, Config) ->
Config.
@@ -462,10 +474,12 @@ agent_app_env(Config) ->
manager_app_env(Config) ->
Dir = ?config(priv_dir, Config),
Vsns = ?config(snmp_versions, Config),
+ NetIfModule = ?config(manager_net_if_module, Config),
[{versions, Vsns},
{audit_trail_log, [{type, read_write},
{dir, Dir},
{size, {10240, 10}}]},
+ {net_if, [{module, NetIfModule}]},
{config, [{dir, Dir},
{db_dir, Dir},
{verbosity, trace}]}