Pankaj Berde | d1259e8 | 2013-01-23 14:10:00 -0800 | [diff] [blame^] | 1 | package net.floodlightcontroller.core; |
| 2 | |
| 3 | import java.util.List; |
| 4 | |
| 5 | import net.floodlightcontroller.routing.Link; |
| 6 | import net.floodlightcontroller.topology.NodePortTuple; |
| 7 | |
| 8 | public interface INetMapTopologyService extends INetMapService { |
| 9 | |
| 10 | public interface ITopoSwitchService { |
| 11 | List<String> GetActiveSwitches(); |
| 12 | List<String> GetAllSwitches(); |
| 13 | List<String> GetInactiveSwitches(); |
| 14 | List<String> GetPortsOnSwitch(String dpid); |
| 15 | } |
| 16 | |
| 17 | public interface ITopoLinkService { |
| 18 | List<Link> GetActiveLinks(); |
| 19 | List<Link> GetLinksOnSwitch(String dpid); |
| 20 | } |
| 21 | public interface ITopoDeviceService { |
| 22 | List<Link> GetActiveDevices(); |
| 23 | List<Link> GetDevicesOnSwitch(String dpid); |
| 24 | } |
| 25 | |
| 26 | public interface ITopoRouteService { |
| 27 | List<NodePortTuple> GetShortestpath(NodePortTuple src, NodePortTuple dest); |
| 28 | Boolean RouteExists(NodePortTuple src, NodePortTuple dest); |
| 29 | } |
| 30 | |
| 31 | public interface ITopoFlowService { |
| 32 | Boolean FlowExists(NodePortTuple src, NodePortTuple dest); |
| 33 | List<NodePortTuple> GetShortestFlowPath(NodePortTuple src, NodePortTuple dest); |
| 34 | |
| 35 | } |
| 36 | } |