HIGUCHI Yuta | 2051490 | 2013-06-12 11:24:16 -0700 | [diff] [blame] | 1 | package net.onrc.onos.ofcontroller.core; |
Pankaj Berde | d1259e8 | 2013-01-23 14:10:00 -0800 | [diff] [blame] | 2 | |
| 3 | import java.util.List; |
| 4 | |
| 5 | import net.floodlightcontroller.routing.Link; |
| 6 | import net.floodlightcontroller.topology.NodePortTuple; |
HIGUCHI Yuta | 2051490 | 2013-06-12 11:24:16 -0700 | [diff] [blame] | 7 | import net.onrc.onos.ofcontroller.core.INetMapTopologyObjects.IDeviceObject; |
| 8 | import net.onrc.onos.ofcontroller.core.INetMapTopologyObjects.IPortObject; |
| 9 | import net.onrc.onos.ofcontroller.core.INetMapTopologyObjects.ISwitchObject; |
Pankaj Berde | d1259e8 | 2013-01-23 14:10:00 -0800 | [diff] [blame] | 10 | |
| 11 | public interface INetMapTopologyService extends INetMapService { |
| 12 | |
| 13 | public interface ITopoSwitchService { |
Pankaj Berde | 2497e54 | 2013-02-19 18:51:24 -0800 | [diff] [blame] | 14 | Iterable<ISwitchObject> getActiveSwitches(); |
| 15 | Iterable<ISwitchObject> getAllSwitches(); |
| 16 | Iterable<ISwitchObject> getInactiveSwitches(); |
| 17 | Iterable<IPortObject> getPortsOnSwitch(String dpid); |
| 18 | IPortObject getPortOnSwitch(String dpid, short port_num); |
Pankaj Berde | 1519309 | 2013-03-21 17:30:14 -0700 | [diff] [blame] | 19 | void close(); |
Pankaj Berde | 2497e54 | 2013-02-19 18:51:24 -0800 | [diff] [blame] | 20 | |
Pankaj Berde | d1259e8 | 2013-01-23 14:10:00 -0800 | [diff] [blame] | 21 | } |
| 22 | |
| 23 | public interface ITopoLinkService { |
Pankaj Berde | 2497e54 | 2013-02-19 18:51:24 -0800 | [diff] [blame] | 24 | List<Link> getActiveLinks(); |
| 25 | List<Link> getLinksOnSwitch(String dpid); |
Pankaj Berde | 1519309 | 2013-03-21 17:30:14 -0700 | [diff] [blame] | 26 | void close(); |
Pankaj Berde | d1259e8 | 2013-01-23 14:10:00 -0800 | [diff] [blame] | 27 | } |
| 28 | public interface ITopoDeviceService { |
Pankaj Berde | 2497e54 | 2013-02-19 18:51:24 -0800 | [diff] [blame] | 29 | Iterable<IDeviceObject> getActiveDevices(); |
| 30 | Iterable<IDeviceObject> getDevicesOnSwitch(String dpid); |
| 31 | Iterable<IDeviceObject> getDevicesOnSwitch(String dpid, short port_num); |
Pankaj Berde | d1259e8 | 2013-01-23 14:10:00 -0800 | [diff] [blame] | 32 | } |
Pavlin Radoslavov | a5f167b | 2013-03-21 11:39:27 -0700 | [diff] [blame] | 33 | |
Pankaj Berde | d1259e8 | 2013-01-23 14:10:00 -0800 | [diff] [blame] | 34 | public interface ITopoFlowService { |
Pankaj Berde | 2497e54 | 2013-02-19 18:51:24 -0800 | [diff] [blame] | 35 | Boolean flowExists(NodePortTuple src, NodePortTuple dest); |
| 36 | List<NodePortTuple> getShortestFlowPath(NodePortTuple src, NodePortTuple dest); |
Pankaj Berde | d1259e8 | 2013-01-23 14:10:00 -0800 | [diff] [blame] | 37 | |
| 38 | } |
| 39 | } |