LABEL Maintainer="alfonso.tiernosepulveda@telefonica.com" \
- Description="This implements a north bound interface for OSM" \
+ Description="This implements the Life Cicle Management module of OSM" \
Version="1.0" \
Author="Alfonso Tierno"
db_vim = None
exc = None
RO_sdn_id = None
- RO_sdn_port_mapping = None
try:
step = "Getting vim-id='{}' from db".format(vim_id)
db_vim = self.db.get_one("vim_accounts", {"_id": vim_id})
--- /dev/null
+[Unit]
+Description=LCM server (OSM LCM)
+
+[Service]
+ExecStart=/usr/bin/lcm.py -c /etc/osm/lcm.cfg --log-file=/var/log/osm/lcm.log
+Restart=always
+
+[Install]
+WantedBy=multi-user.target
+
packages=[_name],
include_package_data=True,
data_files=[('/etc/osm/', ['osm_lcm/lcm.cfg']),
+ ('/etc/systemd/system/', ['osm_lcm/osm-lcm.service']),
],
dependency_links=[
"git+https://osm.etsi.org/gerrit/osm/common.git@master#egg=osm-common-0.1.4"
basepython = python3
deps = flake8
commands =
- flake8 setup.py --max-line-length 120 --exclude .svn,CVS,.gz,.git,__pycache__,.tox,local,temp --ignore W291,W293
+ flake8 osm_lcm --max-line-length 120 --exclude .svn,CVS,.gz,.git,__pycache__,.tox,local,temp --ignore W291,W293,E226
[testenv:build]
basepython = python3