X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=osmclient%2Fsol005%2Fns.py;fp=osmclient%2Fsol005%2Fns.py;h=dfe46e7e41d318026d7024c3d6fc86128d4261f7;hb=3438b975a2c637dc87f1ba39d109184cf504f741;hp=f4b5b89b25de9777c81c91fa55fb0d385353b43b;hpb=bea7283d41dfaeb0eac8f940234dff9ae39e653b;p=osm%2Fosmclient.git diff --git a/osmclient/sol005/ns.py b/osmclient/sol005/ns.py index f4b5b89..dfe46e7 100644 --- a/osmclient/sol005/ns.py +++ b/osmclient/sol005/ns.py @@ -394,7 +394,7 @@ class Ns(object): str(exc)) raise ClientException(message) - def scale_vnf(self, ns_name, vnf_name, scaling_group, scale_in, scale_out, wait=False): + def scale_vnf(self, ns_name, vnf_name, scaling_group, scale_in, scale_out, wait=False, timeout=None): """Scales a VNF by adding/removing VDUs """ self._logger.debug("") @@ -413,6 +413,8 @@ class Ns(object): "member-vnf-index": vnf_name, "scaling-group-descriptor": scaling_group, } + if timeout: + op_data["timeout_ns_scale"] = timeout op_id = self.exec_op(ns_name, op_name='scale', op_data=op_data, wait=wait) print(str(op_id)) except ClientException as exc: