X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FLCM.git;a=blobdiff_plain;f=osm_lcm%2Fns.py;fp=osm_lcm%2Fns.py;h=2fecb5db4030aa5e18c2127197fddef2a5f44244;hp=1504fb106c65f4a393c88f8c325858dbbba0d921;hb=0cd8af3ed256f15931ddc8501c061888fb809050;hpb=72d90d9217ee99b8e05cfe345f59db28f6d54d93 diff --git a/osm_lcm/ns.py b/osm_lcm/ns.py index 1504fb1..2fecb5d 100644 --- a/osm_lcm/ns.py +++ b/osm_lcm/ns.py @@ -5906,6 +5906,12 @@ class NsLcm(LcmBase): ) ) + step = "Checking whether the descriptor has SFC" + if db_nsr.get("nsd", {}).get("vnffgd"): + raise LcmException( + "Ns update is not allowed for NS with SFC" + ) + # There is no change in the charm package, then redeploy the VNF # based on new descriptor step = "Redeploying VNF" @@ -6286,6 +6292,10 @@ class NsLcm(LcmBase): old_operational_status = db_nsr["operational-status"] old_config_status = db_nsr["config-status"] + step = "Checking whether the descriptor has SFC" + if db_nsr.get("nsd", {}).get("vnffgd"): + raise LcmException("Scaling is not allowed for NS with SFC") + step = "Parsing scaling parameters" db_nsr_update["operational-status"] = "scaling" self.update_db_2("nsrs", nsr_id, db_nsr_update)