Comment 0 for bug 1427996

Revision history for this message
Daisuke Nakajima (dnakajima) wrote :

A section of tor_agent in testbed.py is wrong information.
There are 'tor_http_server_port': '9010', line in testbed.py. The last word " , " is wrong. So, the syntax error is occurred.

#env.tor_agent = {host10:[{
# 'tor_ip':'10.204.217.39', IP of the tor switch
# 'tor_id':'1',
# 'tor_type':'ovs',
# 'tor_ovs_port':'9999',
# 'tor_ovs_protocol':'tcp',
# 'tor_tsn_ip':'10.204.221.35',
# 'tor_tsn_name':'nodec45',
# 'tor_name':'bng-contrail-qfx51-2',
# 'tor_tunnel_ip':'34.34.34.34',
# 'tor_vendor_name':'Juniper'
# 'tor_http_server_port': '9010',
# }]
# }

> Traceback (most recent call last):
> File "/usr/local/lib/python2.7/dist-packages/fabric/main.py", line 658, in main
> docstring, callables, default = load_fabfile(fabfile)
> File "/usr/local/lib/python2.7/dist-packages/fabric/main.py", line 165, in load_fabfile
> imported = importer(os.path.splitext(fabfile)[0])
> File "/opt/contrail/utils/fabfile/__init__.py", line 15, in <module>
> from config import *
> File "/opt/contrail/utils/fabfile/config.py", line 22, in <module>
> import testbeds.testbed as testbed
> File "/opt/contrail/utils/fabfile/testbeds/testbed.py", line 357
> 'tor_http_server_port': '9010',