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