diff --git a/ui/k-info-panel/list_connections.kytos b/ui/k-info-panel/list_connections.kytos index d936570c..9373c8f3 100644 --- a/ui/k-info-panel/list_connections.kytos +++ b/ui/k-info-panel/list_connections.kytos @@ -210,8 +210,8 @@ module.exports = { _dpid_names[sw.dpid] = sw.metadata.node_name; } if(sw.interfaces) { - $.each(sw.interfaces, function(j , interface) { - _interface_names[interface.id] = interface.name; + $.each(sw.interfaces, function(j , k_interface) { + _interface_names[k_interface.id] = k_interface.name; }); } }); diff --git a/ui/k-info-panel/show_circuit.kytos b/ui/k-info-panel/show_circuit.kytos index c4152a31..132b049f 100644 --- a/ui/k-info-panel/show_circuit.kytos +++ b/ui/k-info-panel/show_circuit.kytos @@ -588,18 +588,18 @@ module.exports = { _dpid_names[sw.dpid] = sw.metadata.node_name; } if(sw.interfaces) { - $.each(sw.interfaces, function(j , interface) { + $.each(sw.interfaces, function(j , k_interface) { // store interface name data - let metadata = interface.metadata; - _interface_data[interface.id] = { - "name": interface.name, - "link_name": (metadata && "link_name" in metadata) ? interface.metadata.link_name : "", - "port_name": (metadata && "port_name" in metadata) ? interface.metadata.port_name : "" + let metadata = k_interface.metadata; + _interface_data[k_interface.id] = { + "name": k_interface.name, + "link_name": (metadata && "link_name" in metadata) ? k_interface.metadata.link_name : "", + "port_name": (metadata && "port_name" in metadata) ? k_interface.metadata.port_name : "" }; // store autocomplete dpids - let value = interface.id; - if(interface.name) { - value = interface.name + " - " + value; + let value = k_interface.id; + if(k_interface.name) { + value = k_interface.name + " - " + value; } if(!_this.dpids.includes(value)) { _this.dpids.push(value);