X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=osmclient%2Fsol005%2Fclient.py;h=479fc9adda321781e6f9dea7b35ec51ee9a08889;hb=refs%2Fchanges%2F23%2F6323%2F4;hp=b8627b94bf315e819944a632178ddc73bb33d8b5;hpb=f157128052e59df5c37489926f7d5755714c3cbf;p=osm%2Fosmclient.git diff --git a/osmclient/sol005/client.py b/osmclient/sol005/client.py index b8627b9..479fc9a 100644 --- a/osmclient/sol005/client.py +++ b/osmclient/sol005/client.py @@ -18,11 +18,11 @@ OSM SOL005 client API """ -#from osmclient.v1 import vnf #from osmclient.v1 import vca from osmclient.sol005 import vnfd from osmclient.sol005 import nsd from osmclient.sol005 import ns +from osmclient.sol005 import vnf from osmclient.sol005 import vim from osmclient.sol005 import package from osmclient.sol005 import http @@ -58,9 +58,9 @@ class Client(object): if ro_host is None: ro_host = host - ro_http_client = http.Http('http://{}:{}/'.format(ro_host, ro_port)) + ro_http_client = http.Http('http://{}:{}/openmano'.format(ro_host, ro_port)) ro_http_client.set_http_header( - ['Accept: application/vnd.yand.data+json', + ['Accept: application/json', 'Content-Type: application/json']) self._http_client = http.Http( @@ -68,7 +68,7 @@ class Client(object): self._headers['Accept'] = 'application/json' self._headers['Content-Type'] = 'application/yaml' http_header = ['{}: {}'.format(key,val) - for (key,val) in self._headers.items()] + for (key,val) in list(self._headers.items())] self._http_client.set_http_header(http_header) token = self.get_token() @@ -85,8 +85,8 @@ class Client(object): self.ns = ns.Ns(self._http_client, client=self) self.vim = vim.Vim(self._http_client, client=self) self.sdnc = sdncontroller.SdnController(self._http_client, client=self) + self.vnf = vnf.Vnf(self._http_client, client=self) ''' - self.vnf = vnf.Vnf(http_client, client=self, **kwargs) self.vca = vca.Vca(http_client, client=self, **kwargs) self.utils = utils.Utils(http_client, **kwargs) '''