- self.vnf = vnf.Vnf(http_client,**kwargs)
- self.vnfd = vnfd.Vnfd(http_client,**kwargs)
- self.ns = ns.Ns(http=http_client,client=self,**kwargs)
- self.nsd = nsd.Nsd(http_client,**kwargs)
- self.vim = vim.Vim(http=http_client,ro_http=ro_http_client,client=self,**kwargs)
- self.package = package.Package(http=http_client,upload_http=upload_client,client=self,**kwargs)
- self.vca = vca.Vca(http_client,**kwargs)
- self.utils = utils.Utils(http_client,**kwargs)
+ upload_client = http.Http(
+ 'https://{}:{}/composer/upload?api_server={}{}'.format(
+ self._host,
+ upload_port,
+ 'https://localhost&upload_server=https://',
+ self._host))
+
+ self.vnf = vnf.Vnf(http_client, **kwargs)
+ self.vnfd = vnfd.Vnfd(http_client, **kwargs)
+ self.ns = ns.Ns(http=http_client, client=self, **kwargs)
+ self.nsd = nsd.Nsd(http_client, **kwargs)
+ self.vim = vim.Vim(
+ http=http_client,
+ ro_http=ro_http_client,
+ client=self,
+ **kwargs)
+ self.package = package.Package(
+ http=http_client,
+ upload_http=upload_client,
+ client=self,
+ **kwargs)
+ self.vca = vca.Vca(http_client, **kwargs)
+ self.utils = utils.Utils(http_client, **kwargs)