| /*************************************************************************************************** |
| find the links that include the switch with this dpid |
| ***************************************************************************************************/ |
| function debug_findlink(model, dpid) { |
| model.links.forEach(function (link) { |
| if (link['src-switch'] == dpid || link['dst-switch'] == dpid) { |
| function debug_findswitch(model, dpid) { |
| model.edgeSwitches.forEach(function (s) { |
| model.aggregationSwitches.forEach(function (s) { |
| model.coreSwitches.forEach(function (s) { |