blob: 920d29ed185a2d05e7ac403008ea6bd66408ec24 [file] [log] [blame]
Pankaj Berdee73452c2013-01-03 14:57:07 -08001package net.floodlightcontroller.core;
2
3import java.util.Collection;
4
5import org.openflow.protocol.OFPhysicalPort;
6
7public interface ISwitchStorage extends INetMapStorage {
8
9 /*
10 * Update the switch details
11 */
12 public void update(long dpid,DM_OPERATION op);
13 /*
14 * Associate a port on switch
15 */
16 public void addPort(long dpid, OFPhysicalPort port);
17 /*
18 * Get all ports associated on a switch
19 */
20 public Collection<OFPhysicalPort> getPorts(long dpid);
21 /*
22 * Get Port by Number
23 */
24 public OFPhysicalPort getPort(long dpid, short portnum);
25 /*
26 * Get port by name
27 */
28 public OFPhysicalPort getPort(long dpid, String portName);
29 /*
30 * Delete switch and associated ports
31 */
32 public void deleteSwitch(long dpid);
33 /*
34 * Delete a port on a switch by num
35 */
36 public void deletePort(long dpid, short port);
37 /*
38 * Delete port on a switch by name
39 */
40 public void deletePort(long dpid, String portName);
41}