X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=emuvim%2Fdcemulator%2Fnode.py;h=13007eb5fa85bb089f1c7651d8d2d460b667703b;hb=d7cb443596657a5c0a54e9c8230e441ad36a0cca;hp=6c1ecf733d016ff5cf2d020e6edf2d781681a227;hpb=9686a6d137ab79039b3c886837c7eb76815cdafa;p=osm%2Fvim-emu.git diff --git a/emuvim/dcemulator/node.py b/emuvim/dcemulator/node.py old mode 100644 new mode 100755 index 6c1ecf7..13007eb --- a/emuvim/dcemulator/node.py +++ b/emuvim/dcemulator/node.py @@ -99,7 +99,7 @@ class Datacenter(object): def start(self): pass - def startCompute(self, name, image=None, network=None): + def startCompute(self, name, image=None, command=None,network=None): """ Create a new container as compute resource and connect it to this data center. @@ -117,7 +117,7 @@ class Datacenter(object): if network is None: network = {} # {"ip": "10.0.0.254/8"} # create the container and connect it to the given network - d = self.net.addDocker("%s" % (name), dimage=image) + d = self.net.addDocker("%s" % (name), dimage=image, dcmd=command) self.net.addLink(d, self.switch, params1=network) # do bookkeeping self.containers[name] = d