[autotest] Update shadow config in container with correct db/afe server name.

The original CL 260980 was reverted due to a missing package (netifaces).
This CL is almost the same as the original one except moving import of netifaces
after import common.

Container uses a copy of shadow config from the host. The config file needs to
be updated for autoserv running in container to use:

1. Disable master ssh connection in shadow config, as it is not working
   properly in container yet, and produces noise in the log.
2. Update AUTOTEST_WEB/host and SERVER/hostname to be IP of the host
   if any is set to localhost or 127.0.0.1.

BUG=chromium:453624
TEST=lxc_functional_test, verify in moblab
http://chromeos1-dshi-moblab1.cros/afe/#tab_id=view_job&object_id=25

Change-Id: Ic836d3f46901117b8f21d655c32b22d9815c328c
Reviewed-on: https://chromium-review.googlesource.com/261575
Tested-by: Dan Shi <dshi@chromium.org>
Reviewed-by: Simran Basi <sbasi@chromium.org>
Commit-Queue: Dan Shi <dshi@chromium.org>
Trybot-Ready: Dan Shi <dshi@chromium.org>
1 file changed