FIX: Data centers now have a user defined label (to be identified) but use a short internal name 'dc%d' to avoid too long host/switch names causing Mininet to crash.
diff --git a/emuvim/api/zerorpcapi.py b/emuvim/api/zerorpcapi.py
index 7aecba4..bbb95ca 100644
--- a/emuvim/api/zerorpcapi.py
+++ b/emuvim/api/zerorpcapi.py
@@ -28,9 +28,9 @@
self.__class__.__name__, self.ip, self.port))
def connectDatacenter(self, dc):
- self.dcs[dc.name] = dc
+ self.dcs[dc.label] = dc
logging.info("Connected DC(%s) to API endpoint %s(%s:%d)" % (
- dc.name, self.__class__.__name__, self.ip, self.port))
+ dc.label, self.__class__.__name__, self.ip, self.port))
def start(self):
thread = threading.Thread(target=self._api_server_thread, args=())