diff --git a/src/service/clmcservice/__init__.py b/src/service/clmcservice/__init__.py index b2248c354978037e781fcf69a46dc065b1554666..73167d7310cefcee4ba56e16cd1146077286d0f3 100644 --- a/src/service/clmcservice/__init__.py +++ b/src/service/clmcservice/__init__.py @@ -55,7 +55,7 @@ def main(global_config, **settings): settings['influx_port'] = int(settings['influx_port']) # the influx port setting must be converted to integer instead of a string settings['kapacitor_port'] = int(settings['kapacitor_port']) # the kapacitor port setting must be converted to integer instead of a string - settings["network_bandwidth"] = 104857600 # TODO currently assumed fixed bandwidth across all links + settings["network_bandwidth"] = int(settings["network_bandwidth"]) # TODO currently assumed fixed bandwidth across all links config = Configurator(settings=settings) diff --git a/src/service/development.ini b/src/service/development.ini index ea65782e94adf07bc350c65764a26a5c33159ad8..74acfa128855b4e1fdd9e023834acc25d213441c 100644 --- a/src/service/development.ini +++ b/src/service/development.ini @@ -15,7 +15,8 @@ pyramid.includes = pyramid_debugtoolbar pyramid_exclog exclog.ignore = -network_configuration_path = /vagrant/src/service/resources/GraphAPI/network_clusters.json +network_configuration_path = /opt/clmc/src/service/resources/GraphAPI/network_clusters.json +network_bandwidth = 104857600 # PostgreSQL connection url sqlalchemy.url = postgresql://clmc:clmc_service@localhost:5432/whoamidb diff --git a/src/service/production.ini b/src/service/production.ini index 083bb91d2bc1cae25c1021b93081c87ff5a3b73f..7ef165986f779b3fe289cb187adfd7d0f4544f9e 100644 --- a/src/service/production.ini +++ b/src/service/production.ini @@ -16,6 +16,7 @@ exclog.ignore = network_configuration_path = /opt/clmc/src/service/resources/GraphAPI/network_clusters.json +network_bandwidth = 104857600 # PostgreSQL connection url sqlalchemy.url = postgresql://clmc:clmc_service@localhost:5432/whoamidb