X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2Fvim-emu.git;a=blobdiff_plain;f=src%2Femuvim%2Fdcemulator%2Fnode.py;fp=src%2Femuvim%2Fdcemulator%2Fnode.py;h=8a7be0ad6c59ed2bb936b857cbf891db2223e4f7;hp=8e7a63ac08a88ca254661b7f7d19139e85d322e9;hb=8a9df3f1c408ceb55146bfbde5a10f5f5b6175eb;hpb=7062cee83ca95f51b9f43987e61a434e9e5e32f4 diff --git a/src/emuvim/dcemulator/node.py b/src/emuvim/dcemulator/node.py index 8e7a63a..8a7be0a 100755 --- a/src/emuvim/dcemulator/node.py +++ b/src/emuvim/dcemulator/node.py @@ -90,6 +90,7 @@ class EmulatorCompute(Docker): status["memswap_limit"] = self.memswap_limit status["state"] = self.dcli.inspect_container(self.dc)["State"] status["id"] = self.dcli.inspect_container(self.dc)["Id"] + status["short_id"] = self.dcli.inspect_container(self.dc)["Id"][:12] status["datacenter"] = (None if self.datacenter is None else self.datacenter.label) return status @@ -190,7 +191,8 @@ class Datacenter(object): datacenter=self, flavor_name=flavor_name, cpu_period = cpu_period, - cpu_quota = cpu_quota + cpu_quota = cpu_quota, + environment = {'VNF_NAME':name} )