__author__ = "Alfonso Tierno"
__date__ = "$10-jul-2014 12:07:15$"
-__version__ = "0.5.8-r524"
-version_date = "March 2017"
-database_version = "0.15" #expected database schema version
+
import httpserver
import auxiliary_functions as af
for o, a in opts:
if o in ("-v", "--version"):
- print "openvimd version", __version__, version_date
+ print "openvimd version", ovim.ovim.get_version(), ovim.ovim.get_version_date()
print "(c) Copyright Telefonica"
sys.exit(0)
elif o in ("-h", "--help"):
print '!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!'
print "!! Warning, openvimd in TEST mode '%s'" % config_dic['mode']
print '!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!'
- config_dic['version'] = __version__
+ config_dic['version'] = ovim.get_version()
- config_dic["database_version"] = database_version
+ config_dic["database_version"] = ovim.ovim.get_database_version()
config_dic["logger_name"] = "openvim"
engine = ovim.ovim(config_dic)
__author__ = "Alfonso Tierno, Leonardo Mirabal"
__date__ = "$06-Feb-2017 12:07:15$"
+__version__ = "0.5.8-r524"
+version_date = "March 2017"
+database_version = "0.15" #expected database schema version
import threading
import vim_db
self.config['db_host']) )
return db
+ @staticmethod
+ def get_version():
+ return __version__
+
+ @staticmethod
+ def get_version_date():
+ return version_date
+
+ @staticmethod
+ def get_database_version():
+ return database_version
+
@staticmethod
def _check_dhcp_data_integrity(network):
"""