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; |
HIGUCHI Yuta | 2051490 | 2013-06-12 11:24:16 -0700 | [diff] [blame] | 6 | import net.onrc.onos.ofcontroller.core.INetMapTopologyObjects.IDeviceObject; |
| 7 | import net.onrc.onos.ofcontroller.core.INetMapTopologyObjects.IPortObject; |
| 8 | import net.onrc.onos.ofcontroller.core.INetMapTopologyObjects.ISwitchObject; |
Pankaj Berde | d1259e8 | 2013-01-23 14:10:00 -0800 | [diff] [blame] | 9 | |
| 10 | public interface INetMapTopologyService extends INetMapService { |
| 11 | |
| 12 | public interface ITopoSwitchService { |
Pankaj Berde | 2497e54 | 2013-02-19 18:51:24 -0800 | [diff] [blame] | 13 | Iterable<ISwitchObject> getActiveSwitches(); |
| 14 | Iterable<ISwitchObject> getAllSwitches(); |
| 15 | Iterable<ISwitchObject> getInactiveSwitches(); |
| 16 | Iterable<IPortObject> getPortsOnSwitch(String dpid); |
| 17 | IPortObject getPortOnSwitch(String dpid, short port_num); |
Pankaj Berde | 1519309 | 2013-03-21 17:30:14 -0700 | [diff] [blame] | 18 | void close(); |
Pankaj Berde | 2497e54 | 2013-02-19 18:51:24 -0800 | [diff] [blame] | 19 | |
Pankaj Berde | d1259e8 | 2013-01-23 14:10:00 -0800 | [diff] [blame] | 20 | } |
| 21 | |
| 22 | public interface ITopoLinkService { |
Pankaj Berde | 2497e54 | 2013-02-19 18:51:24 -0800 | [diff] [blame] | 23 | List<Link> getActiveLinks(); |
| 24 | List<Link> getLinksOnSwitch(String dpid); |
Pankaj Berde | 1519309 | 2013-03-21 17:30:14 -0700 | [diff] [blame] | 25 | void close(); |
Pankaj Berde | d1259e8 | 2013-01-23 14:10:00 -0800 | [diff] [blame] | 26 | } |
| 27 | public interface ITopoDeviceService { |
Pankaj Berde | 2497e54 | 2013-02-19 18:51:24 -0800 | [diff] [blame] | 28 | Iterable<IDeviceObject> getActiveDevices(); |
| 29 | Iterable<IDeviceObject> getDevicesOnSwitch(String dpid); |
| 30 | Iterable<IDeviceObject> getDevicesOnSwitch(String dpid, short port_num); |
Pankaj Berde | d1259e8 | 2013-01-23 14:10:00 -0800 | [diff] [blame] | 31 | } |
Pankaj Berde | d1259e8 | 2013-01-23 14:10:00 -0800 | [diff] [blame] | 32 | } |