X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FNBI.git;a=blobdiff_plain;f=osm_nbi%2Fnbi.py;h=0520ef8ce68031ea8fb23da137664453baa623b4;hp=0a344fbb4fb331f657500d102723162effe3dab7;hb=refs%2Fchanges%2F75%2F5975%2F1;hpb=55945e7f57333fac8d39e4aa158c033c6f99e00f diff --git a/osm_nbi/nbi.py b/osm_nbi/nbi.py index 0a344fb..0520ef8 100644 --- a/osm_nbi/nbi.py +++ b/osm_nbi/nbi.py @@ -21,6 +21,7 @@ from os import environ __author__ = "Alfonso Tierno " __version__ = "0.3" version_date = "Apr 2018" +database_version = '1.0' """ North Bound Interface (O: OSM specific; 5,X: SOL005 not implemented yet; O5: SOL005 implemented) @@ -788,7 +789,7 @@ def _start_service(): # TODO add more entries, e.g.: storage cherrypy.tree.apps['/osm'].root.engine.start(engine_config) try: - cherrypy.tree.apps['/osm'].root.engine.create_admin() + cherrypy.tree.apps['/osm'].root.engine.init_db(target_version=database_version) except EngineException: pass # getenv('OSMOPENMANO_TENANT', None)