blob: 4e84d2878abf1190d7480af3171bb13ba89f31ff [file] [log] [blame]
tom7ef8ff92014-09-17 13:08:06 -07001package org.onlab.onos.of.controller.driver;
2
3import org.onlab.onos.of.controller.Dpid;
4import org.projectfloodlight.openflow.protocol.OFDescStatsReply;
5import org.projectfloodlight.openflow.protocol.OFVersion;
6
7/**
8 * Switch factory which returns concrete switch objects for the
9 * physical openflow switch in use.
10 *
11 */
12public interface OpenFlowSwitchDriverFactory {
13
14
15 /**
16 * Constructs the real openflow switch representation.
17 * @param dpid the dpid for this switch.
18 * @param desc its description.
19 * @param ofv the OF version in use
20 * @return the openflow switch representation.
21 */
22 public OpenFlowSwitchDriver getOFSwitchImpl(Dpid dpid,
23 OFDescStatsReply desc, OFVersion ofv);
24}