blob: 79a4f766291fe34cd90efa5d26947bf1c46e9968 [file] [log] [blame]
package net.onrc.onos.ofcontroller.core;
import java.util.Collection;
import org.openflow.protocol.OFPhysicalPort;
public interface ISwitchStorage extends INetMapStorage {
public enum SwitchState {
INACTIVE,
ACTIVE
}
/*
* Update the switch details
*/
public void update(String dpid,SwitchState state, DM_OPERATION op);
/*
* Associate a port on switch
*/
public void addPort(String dpid, OFPhysicalPort port);
/*
* Get all ports associated on a switch
*/
public void addSwitch(String dpid);
/*
* Delete switch and associated ports
*/
public void deleteSwitch(String dpid);
/*
* Delete a port on a switch by num
*/
public void deletePort(String dpid, short port);
/*
* Initialize
*/
public void init(String conf);
}