blob: b7825f983e694e3f418d13f1e5c966ecdaefc0c6 [file] [log] [blame]
package net.onrc.onos.ofcontroller.core;
import net.floodlightcontroller.core.IOFSwitch;
import org.openflow.protocol.OFPhysicalPort;
public interface ISwitchStorage extends INetMapStorage {
public enum SwitchState {
INACTIVE,
ACTIVE
}
/*
* Initialize
*/
public void init(String conf);
/*
* Update the switch details
*/
public boolean updateSwitch(String dpid, SwitchState state, DM_OPERATION op);
/*
* Add a switch and all its associated ports
*/
public boolean addSwitch(IOFSwitch sw);
/*
* Add a switch
*/
public boolean addSwitch(String dpid);
/*
* Delete switch and associated ports
*/
public boolean deleteSwitch(String dpid);
/*
* Update the port details
*/
public boolean updatePort(String dpid, short port, int state, String desc);
/*
* Associate a port on switch
*/
public boolean addPort(String dpid, OFPhysicalPort port);
/*
* Delete a port on a switch by num
*/
public boolean deletePort(String dpid, short port);
}