diff options
author | Micael Karlberg <[email protected]> | 2019-03-27 15:40:56 +0100 |
---|---|---|
committer | Micael Karlberg <[email protected]> | 2019-03-28 17:14:56 +0100 |
commit | b9a0da00aa0259e35b505d674d2a656020fdbdfe (patch) | |
tree | 2387442ce63be1465dd6370a0f88e060db8fb40f /lib/snmp | |
parent | 2a82321d9c4aea154161c79f55d7854ae182d002 (diff) | |
download | otp-b9a0da00aa0259e35b505d674d2a656020fdbdfe.tar.gz otp-b9a0da00aa0259e35b505d674d2a656020fdbdfe.tar.bz2 otp-b9a0da00aa0259e35b505d674d2a656020fdbdfe.zip |
[snmp|manager|test] Add bind_to for agents
On some linux platforms "they" add a 127.0.1.1
in the hosts file, wich can cause problems for
some (manager) test cases. So, just to be on
the safe side, make sure we bind to the configured
address.
Note that this has nothing to do with the current
issue.
Diffstat (limited to 'lib/snmp')
-rw-r--r-- | lib/snmp/test/snmp_manager_test.erl | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/snmp/test/snmp_manager_test.erl b/lib/snmp/test/snmp_manager_test.erl index 6ced55f0cc..bb9b05b89f 100644 --- a/lib/snmp/test/snmp_manager_test.erl +++ b/lib/snmp/test/snmp_manager_test.erl @@ -6179,7 +6179,12 @@ start_agent(Node, Vsns, Conf0, _Opts) -> {mib_server, [{verbosity, MSV}]}, {note_store, [{verbosity, NSV}]}, {stymbolic_store, [{verbosity, SSV}]}, - {net_if, [{verbosity, NIV}]}, + {net_if, [{verbosity, NIV}, + %% On some linux "they" add a 127.0.1.1 or somthing + %% similar, so if we don't specify bind_to + %% we don't know which address will be selected + %% (which will cause problems for some test cases). + {options, [{bind_to, true}]}]}, {multi_threaded, true}], ?line ok = set_agent_env(Node, Env), |