Merge commit 'refs/changes/29/5829/2' of https://osm.etsi.org/gerrit/osm/RO into lcm 30/5830/1
authorAdam Israel <adam.israel@canonical.com>
Wed, 31 Jan 2018 23:41:57 +0000 (18:41 -0500)
committerAdam Israel <adam.israel@canonical.com>
Wed, 31 Jan 2018 23:41:57 +0000 (18:41 -0500)
1  2 
lcm/lcm.py

diff --cc lcm/lcm.py
@@@ -36,9 -36,7 +36,10 @@@ ns_status = ("CREATION-SCHEDULED", "DEP
  db = dbmemory.dbmemory()
  
  
 +class RO_Exception(Exception):
 +    pass
 +
  async def CreateNS(loop, nsr_id):
      logger.debug("CreateNS task nsr_id={} Enter".format(nsr_id))
      nsr_lcm = {
                  base_folder = vnfd["_admin"]["storage"]
                  path = base_folder + "/charms/" + proxy_charm
                  mgmt_ip = nsr_lcm['nsr_ip'][vnfd_index]
++<<<<<<< HEAD
 +                # task = asyncio.ensure_future(DeployCharm(loop, path, mgmt_ip, config_primitive))
 +                pass
 +                # TODO launch VCA charm
++=======
+                 # TODO launch VCA charm
+                 # task = asyncio.ensure_future(DeployCharm(loop, path, mgmt_ip, config_primitive))
++>>>>>>> 6ce7cc879dda3b729b10d563bd26df613dc9f70f
          nsr_lcm["status"] = "DONE"
          db.replace("nsr_lcm", {"id": nsr_id}, nsr_lcm)
  
@@@ -178,7 -175,7 +184,11 @@@ async def DestroyNS(loop, nsr_id)
      nsr_lcm["status"] = "DELETING"
      nsr_lcm["status_detailed"] = "Deleting charms"
      db.replace("nsr_lcm", {"id": nsr_id}, nsr_lcm)
++<<<<<<< HEAD
 +    # TODO destroy charms
++=======
+     # TODO destroy VCA charm
++>>>>>>> 6ce7cc879dda3b729b10d563bd26df613dc9f70f
  
      # remove from RO
      RO = ROclient.ROClient(loop, endpoint_url=ro_account["url"], tenant=ro_account["tenant"],
@@@ -378,6 -375,6 +388,3 @@@ if __name__ == '__main__'
      db.create("ns_request", ns_request)
      # lcm2()
      lcm()
--
--
--