blob: 7b6691251d49bdd063f926b9b20d2ad5774f9237 [file] [log] [blame]
/***************************************************************************************************
find the links that include the switch with this dpid
***************************************************************************************************/
function debug_findlink(model, dpid) {
var links = [];
model.links.forEach(function (link) {
if (link['src-switch'] == dpid || link['dst-switch'] == dpid) {
links.push(link);
}
});
return links;
}