X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=src%2Femuvim%2Fapi%2Fzerorpc%2Fcompute.py;h=39ccec29a86a2086b5d5b9c39f4039a7c6142b60;hb=5b37641a26aef3691b6f5ad2e3d1b768841eee8f;hp=38b0a0636d68b95aae80dd9fa206fdc75819bd21;hpb=994245bc4fb59f4c5129a5cb977af1871f08ce13;p=osm%2Fvim-emu.git diff --git a/src/emuvim/api/zerorpc/compute.py b/src/emuvim/api/zerorpc/compute.py index 38b0a06..39ccec2 100644 --- a/src/emuvim/api/zerorpc/compute.py +++ b/src/emuvim/api/zerorpc/compute.py @@ -68,7 +68,6 @@ class MultiDatacenterApi(object): """ # TODO what to return UUID / given name / internal name ? logging.debug("RPC CALL: compute start") - logging.info('nwlist2: {0}'.format(network)) try: c = self.dcs.get(dc_label).startCompute( compute_name, image=image, command=command, network=network) @@ -117,13 +116,17 @@ class MultiDatacenterApi(object): def compute_profile(self, dc_label, compute_name, image, kwargs): # note: zerorpc does not support keyword arguments + ## VIM/dummy gatekeeper's tasks: # start vnf vnf_status = self.compute_action_start(self, dc_label, compute_name, image, kwargs.get('network'), kwargs.get('command')) - # start traffic source (with fixed ip addres, no use for now...) - self.compute_action_start(self, dc_label, 'psrc', 'profile_source', [{'id':'output','ip':'10.0.10.1/24'}], None) + self.compute_action_start(self, dc_label, 'psrc', 'profile_source', [{'id':'output'}], None) + # link vnf to traffic source + DCNetwork = self.dcs.get(dc_label).net + DCNetwork.setChain() +