small updates in dashboard + E-LAN deployment
authorstevenvanrossem <steven.vanrossem@intec.ugent.be>
Thu, 4 May 2017 21:45:15 +0000 (23:45 +0200)
committerstevenvanrossem <steven.vanrossem@intec.ugent.be>
Thu, 4 May 2017 21:45:15 +0000 (23:45 +0200)
src/emuvim/api/sonata/dummygatekeeper.py
src/emuvim/dashboard/css/main.css
src/emuvim/dashboard/js/main.js
src/emuvim/dcemulator/net.py

index a57a6b9..151e5b3 100755 (executable)
@@ -679,15 +679,14 @@ class Service(object):
                     "Setting up E-LAN interface. (%s:%s) -> %s" % (
                         vnf_id, intf_name, ip_address))
 
                     "Setting up E-LAN interface. (%s:%s) -> %s" % (
                         vnf_id, intf_name, ip_address))
 
-                if vnf_id in self.vnfds:
-                    # re-configure the VNFs IP assignment and ensure that a new subnet is used for each E-LAN
-                    # E-LAN relies on the learning switch capability of Ryu which has to be turned on in the topology
-                    # (DCNetwork(controller=RemoteController, enable_learning=True)), so no explicit chaining is necessary.
-                    vnfi = self._get_vnf_instance(instance_uuid, vnf_id)
-                    if vnfi is not None:
-                        self._vnf_reconfigure_network(vnfi, intf_name, ip_address)
-                        # add this vnf and interface to the E-LAN for tagging
-                        elan_vnf_list.append({'name': src_docker_name, 'interface': intf_name})
+                # re-configure the VNFs IP assignment and ensure that a new subnet is used for each E-LAN
+                # E-LAN relies on the learning switch capability of Ryu which has to be turned on in the topology
+                # (DCNetwork(controller=RemoteController, enable_learning=True)), so no explicit chaining is necessary.
+                vnfi = self._get_vnf_instance(instance_uuid, vnf_id)
+                if vnfi is not None:
+                    self._vnf_reconfigure_network(vnfi, intf_name, ip_address)
+                    # add this vnf and interface to the E-LAN for tagging
+                    elan_vnf_list.append({'name': src_docker_name, 'interface': intf_name})
 
             # install the VLAN tags for this E-LAN
             GK.net.setLAN(elan_vnf_list)
 
             # install the VLAN tags for this E-LAN
             GK.net.setLAN(elan_vnf_list)
index a518f28..5e9162c 100755 (executable)
@@ -36,16 +36,16 @@ body {
 }
 
 .interface_table {
 }
 
 .interface_table {
-    width: 350px;
+    width: 420px;
 }
 
 
 .interface_port {
 }
 
 
 .interface_port {
-   width: 150px;
+   width: 120px;
 }
 
 .interface_name {
 }
 
 .interface_name {
-   width: 150px;
+   width: 200px;
 }
 
 .interface_ip {
 }
 
 .interface_ip {
index 1fcdf4c..c8d65ea 100755 (executable)
@@ -66,7 +66,7 @@ function update_table_container(data)
     // clear table
     $("#table_container").empty();
     // header
     // clear table
     $("#table_container").empty();
     // header
-    $("#table_container").append('<tr class="tbl-head"><td>Datacenter</td><td>Container</td><td>Image</td><td>docker0</td><td>Networking   [datacenter port | interface | ip]</td></tr>');
+    $("#table_container").append('<tr class="tbl-head"><td>Datacenter</td><td>Container</td><td>Image</td><td>docker0</td><td>--Networking--<div id="table_network"></div></td></tr>');
     // fill table
     $.each(data, function(i, item) {
         var row_str = "";
     // fill table
     $.each(data, function(i, item) {
         var row_str = "";
@@ -83,6 +83,7 @@ function update_table_container(data)
            build_network_table(item[1].network, item[0]);
     });
     $("#lbl_container_count").text(data.length);
            build_network_table(item[1].network, item[0]);
     });
     $("#lbl_container_count").text(data.length);
+    $("#table_network").append('<table class="interface_table"><tr class="interface_row"><td class="interface_port">datacenter port</td><td class="interface name">interface</td><td class="interface_ip">ip</td></tr></table>')
     // update lateness counter
     LAST_UPDATE_TIMESTAMP_CONTAINER = Date.now();
 }
     // update lateness counter
     LAST_UPDATE_TIMESTAMP_CONTAINER = Date.now();
 }
index 8973bb9..9dfef36 100755 (executable)
@@ -274,7 +274,6 @@ class DCNetwork(Containernet):
         # add this switch to the global topology overview
         if add_to_graph:
             self.DCNetwork_graph.add_node(name, type=params.get('type','switch'))
         # add this switch to the global topology overview
         if add_to_graph:
             self.DCNetwork_graph.add_node(name, type=params.get('type','switch'))
-            LOG.info('*** **** *** add switch: {0} type: {1}'.format(name, params.get('type')))
 
         # set the learning switch behavior
         if 'failMode' in params :
 
         # set the learning switch behavior
         if 'failMode' in params :