Added support for dual-homed hosts (on "classic" topo).

Change-Id: I47f4b3bf5756928452cbf99c4be2e3e1d6c8fa92
diff --git a/web/gui/src/main/webapp/app/view/topo/topoModel.js b/web/gui/src/main/webapp/app/view/topo/topoModel.js
index caaf38b..2ef94a6 100644
--- a/web/gui/src/main/webapp/app/view/topo/topoModel.js
+++ b/web/gui/src/main/webapp/app/view/topo/topoModel.js
@@ -158,11 +158,9 @@
         return node;
     }
 
-    function createHostLink(host) {
-        var src = host.id,
-            dst = host.cp.device,
-            id = host.ingress,
-            lnk = linkEndPoints(src, dst);
+    function createHostLink(hostId, devId, devPort) {
+        var linkKey = hostId + '/0-' + devId + '/' + devPort,
+            lnk = linkEndPoints(hostId, devId);
 
         if (!lnk) {
             return null;
@@ -170,10 +168,10 @@
 
         // Synthesize link ...
         angular.extend(lnk, {
-            key: id,
+            key: linkKey,
             class: 'link',
             // NOTE: srcPort left undefined (host end of the link)
-            tgtPort: host.cp.port,
+            tgtPort: devPort,
 
             type: function () { return 'hostLink'; },
             expected: function () { return true; },