selftest: Try to tie dns_hub IP mapping to Samba.pm better
authorTim Beale <timbeale@catalyst.net.nz>
Thu, 14 Feb 2019 02:38:54 +0000 (15:38 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 5 Mar 2019 23:27:30 +0000 (23:27 +0000)
commit90ea8c2a99c1feb1c6f789d53f2f97eb0f8175e2
treeddaa731c826c36d9ff30886e287e200054292ca5
parentd1e145d644ca15beb4e59213d570922b1dc8881e
selftest: Try to tie dns_hub IP mapping to Samba.pm better

dns_hub.py maps the testenv realm to an IP and Samba.pm maps the testenv
NetBIOS name to an IP. We need to keep the two places consistent, as we
add or remove testenvs.

This patch changes dns_hub.py so that it uses a similar hashmap to
Samba.pm. We now have a hashmap with the same name in 2 different
places, so hopefully that's easier to tie them together and keep them in
sync.

Signed-off-by: Tim Beale <timbeale@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
selftest/target/dns_hub.py