X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=src%2Femuvim%2Fdcemulator%2Fnode.py;h=09dca9cb6c23672da273541222d478dac9f26f03;hb=5b37641a26aef3691b6f5ad2e3d1b768841eee8f;hp=2943b6db6a433e7052684ba921b0cc7b76ceecbb;hpb=994245bc4fb59f4c5129a5cb977af1871f08ce13;p=osm%2Fvim-emu.git diff --git a/src/emuvim/dcemulator/node.py b/src/emuvim/dcemulator/node.py index 2943b6d..09dca9c 100755 --- a/src/emuvim/dcemulator/node.py +++ b/src/emuvim/dcemulator/node.py @@ -167,11 +167,10 @@ class Datacenter(object): # connect all given networks # if no --net option is given, network = [{}], so 1 empty dict in the list # this results in 1 default interface with a default ip address - logging.info('nwlist: {0}'.format(network)) for nw in network: # TODO we cannot use TCLink here (see: https://github.com/mpeuster/dockernet/issues/3) logging.info('nw: {0}'.format(nw)) - self.net.addLink(d, self.switch, params1=nw, cls=Link) + self.net.addLink(d, self.switch, params1=nw, cls=Link, intfName1=nw.get('id')) # do bookkeeping self.containers[name] = d return d # we might use UUIDs for naming later on