traffic_replay: Rework machine accounts to remove redundant code
authorTim Beale <timbeale@catalyst.net.nz>
Mon, 5 Nov 2018 22:27:42 +0000 (11:27 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 7 Nov 2018 16:55:09 +0000 (17:55 +0100)
commita0b5f4b7b05b8ea2bf061b8af5b702aa14a7a5a5
treeac97978ba00fd0bec4aae8d308a762408feb2b4c
parent1d7fb66f7630a994dbb261ce417c26d17b409593
traffic_replay: Rework machine accounts to remove redundant code

generate_users_and_groups() now generates the machine acounts as well as
the user accounts, so it seems there's no need to also have
generate_traffic_accounts(), which does the same job.

Instead, we can just pass through the number of machine acounts to
generate_users_and_groups() and delete the other function.

Also updated generate_users_and_groups() so that machine_accounts is
no longer optional (we want to create machine accounts in all cases).

Signed-off-by: Tim Beale <timbeale@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/emulate/traffic.py
script/traffic_replay