blob: 5ee85cb2bc941e865adbe0126fe87fe976034499 [file] [log] [blame]
tom9c94c5b2014-09-17 13:14:42 -07001package org.onlab.onos.openflow.controller.driver;
tom7ef8ff92014-09-17 13:08:06 -07002
tom9c94c5b2014-09-17 13:14:42 -07003import org.onlab.onos.openflow.controller.Dpid;
tom7ef8ff92014-09-17 13:08:06 -07004import 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}