Skip to content

Commit

Permalink
Replaced reserved keyword interface with k_interface
Browse files Browse the repository at this point in the history
  • Loading branch information
HeriLFIU committed Dec 16, 2024
1 parent 67700cf commit db4d05d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions ui/k-info-panel/list_connections.kytos
Original file line number Diff line number Diff line change
Expand Up @@ -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;
});
}
});
Expand Down
18 changes: 9 additions & 9 deletions ui/k-info-panel/show_circuit.kytos
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit db4d05d

Please sign in to comment.