X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;ds=inline;f=emuvim%2Fapi%2Fzerorpcapi.py;h=7aecba4e8bd71f67b1a2b15efd1773fdd558a310;hb=7303abc38b4751466953c8db55815c63df6687ac;hp=be44444ee57a993b67c4dbee633454defbc49c2b;hpb=7973f056b636b5eaef7d0d5b330bccecddda8588;p=osm%2Fvim-emu.git diff --git a/emuvim/api/zerorpcapi.py b/emuvim/api/zerorpcapi.py index be44444..7aecba4 100644 --- a/emuvim/api/zerorpcapi.py +++ b/emuvim/api/zerorpcapi.py @@ -56,11 +56,13 @@ class MultiDatacenterApi(object): def __init__(self, dcs): self.dcs = dcs - def compute_action_start(self, dc_name, compute_name, image): + def compute_action_start(self, dc_name, compute_name, image, network): + # network e.g. {"ip": "10.0.0.254/8"} # TODO what to return UUID / given name / internal name ? logging.debug("RPC CALL: compute start") try: - c = self.dcs.get(dc_name).startCompute(compute_name, image=image) + c = self.dcs.get(dc_name).startCompute( + compute_name, image=image, network=network) return str(c.name) except Exception as ex: logging.exception("RPC error.")