bugfix: hosts info is wrongly processed 41/47241/7
authorSerenaFeng <feng.xiaowei@zte.com.cn>
Wed, 15 Nov 2017 09:46:44 +0000 (17:46 +0800)
committerLeo wang <grakiss.wanglei@huawei.com>
Mon, 20 Nov 2017 01:50:37 +0000 (01:50 +0000)
commit2b090511832f1898f7d15cc33a6b9b20a8d88e07
treece71801b2214e647ea9aba642ddfefd4b63fb9b9
parent81ea24a3e8fca5a11191129e92ab1b9bc985759d
bugfix: hosts info is wrongly processed

changes:
1. add usage example in hosts.yaml.sample
2. fix /etc/hosts from wrong format {'hostname': 'ip'} to
   the right 'ip hostnames'
3. fix --add-hosts from wrong usage --add-host {'hostname': 'ip'} to
   the right --add-host='hostnames':ip
4. support per ip mapping mutiple hostnames, which is also
   in line with /etc/hosts schema

JIRA: DOVETAIL-556

Change-Id: I92e8cb0fd3476b61f5c73a69e34c4a66aef51d6e
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
dovetail/container.py
dovetail/userconfig/hosts.yaml.sample
dovetail/utils/dovetail_utils.py
requirements.txt