blob: 7b6691251d49bdd063f926b9b20d2ad5774f9237 [file] [log] [blame]
Paul Greyson7a300822013-04-09 12:57:49 -07001/***************************************************************************************************
2find the links that include the switch with this dpid
3***************************************************************************************************/
4function debug_findlink(model, dpid) {
5 var links = [];
6 model.links.forEach(function (link) {
7 if (link['src-switch'] == dpid || link['dst-switch'] == dpid) {
8 links.push(link);
9 }
10 });
11 return links;
12}