traffic_replay: Make sure naming assumptions are in a single place
authorTim Beale <timbeale@catalyst.net.nz>
Mon, 5 Nov 2018 20:35:41 +0000 (09:35 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 7 Nov 2018 16:55:09 +0000 (17:55 +0100)
commitc7fe4814777696be06e455de5d04ced9a3366d27
treebeddc0284a66c7727e43e133c7bf38a74f11c963
parent51917fc07f2322786d21f9987f52366d9005c1d3
traffic_replay: Make sure naming assumptions are in a single place

The traffic_replay group/user/machine account names follow a standard
format. This adds a function to generate the machine-name. It also makes
sure the existing user_name() function gets called in all applicable
places.

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