[sonic-cfggen]: Move get_machine_info function to sonic_platform.py (#489)

* Move get_machine_info to lib
* Add get platform info API
* Create sonic_platform.py

Signed-off-by: Sihui Han <sihan@microsoft.com>
This commit is contained in:
sihuihan88
2017-04-11 13:04:21 -07:00
committed by Shuotian Cheng
parent 4c81204eaf
commit ec73735d21
4 changed files with 39 additions and 21 deletions

View File

@@ -15,7 +15,7 @@ setup(name='sonic-config-engine',
author='Taoyu Li',
author_email='taoyl@microsoft.com',
url='https://github.com/Azure/sonic-buildimage',
py_modules=['minigraph', 'openconfig_acl'],
py_modules=['minigraph', 'openconfig_acl', 'sonic_platform'],
scripts=['sonic-cfggen', 'translate_acl'],
install_requires=['lxml', 'jinja2', 'netaddr', 'ipaddr', 'pyyaml', 'pyangbind'],
test_suite='setup.get_test_suite',