Committed by
Gerrit Code Review
moving openflow drivers to their own bundle
Change-Id: Ie38dc932fdf23112cafc0fa5d0d7693a5023e16c
Showing
11 changed files
with
38 additions
and
65 deletions
... | @@ -134,6 +134,7 @@ | ... | @@ -134,6 +134,7 @@ |
134 | <feature>onos-api</feature> | 134 | <feature>onos-api</feature> |
135 | <bundle>mvn:io.netty/netty/3.9.2.Final</bundle> | 135 | <bundle>mvn:io.netty/netty/3.9.2.Final</bundle> |
136 | <bundle>mvn:org.onlab.onos/onos-of-api/1.0.0-SNAPSHOT</bundle> | 136 | <bundle>mvn:org.onlab.onos/onos-of-api/1.0.0-SNAPSHOT</bundle> |
137 | + <bundle>mvn:org.onlab.onos/onos-of-drivers/1.0.0-SNAPSHOT</bundle> | ||
137 | <bundle>mvn:org.onlab.onos/onos-of-ctl/1.0.0-SNAPSHOT</bundle> | 138 | <bundle>mvn:org.onlab.onos/onos-of-ctl/1.0.0-SNAPSHOT</bundle> |
138 | 139 | ||
139 | <bundle>mvn:org.onlab.onos/onos-lldp-provider/1.0.0-SNAPSHOT</bundle> | 140 | <bundle>mvn:org.onlab.onos/onos-lldp-provider/1.0.0-SNAPSHOT</bundle> | ... | ... |
... | @@ -36,6 +36,11 @@ | ... | @@ -36,6 +36,11 @@ |
36 | <artifactId>onos-of-api</artifactId> | 36 | <artifactId>onos-of-api</artifactId> |
37 | </dependency> | 37 | </dependency> |
38 | <dependency> | 38 | <dependency> |
39 | + <groupId>org.onlab.onos</groupId> | ||
40 | + <artifactId>onos-of-drivers</artifactId> | ||
41 | + <version>1.0.0-SNAPSHOT</version> | ||
42 | + </dependency> | ||
43 | + <dependency> | ||
39 | <groupId>io.netty</groupId> | 44 | <groupId>io.netty</groupId> |
40 | <artifactId>netty</artifactId> | 45 | <artifactId>netty</artifactId> |
41 | </dependency> | 46 | </dependency> | ... | ... |
... | @@ -31,7 +31,7 @@ import org.jboss.netty.channel.socket.nio.NioServerSocketChannelFactory; | ... | @@ -31,7 +31,7 @@ import org.jboss.netty.channel.socket.nio.NioServerSocketChannelFactory; |
31 | import org.onlab.onos.openflow.controller.Dpid; | 31 | import org.onlab.onos.openflow.controller.Dpid; |
32 | import org.onlab.onos.openflow.controller.driver.OpenFlowAgent; | 32 | import org.onlab.onos.openflow.controller.driver.OpenFlowAgent; |
33 | import org.onlab.onos.openflow.controller.driver.OpenFlowSwitchDriver; | 33 | import org.onlab.onos.openflow.controller.driver.OpenFlowSwitchDriver; |
34 | -import org.onlab.onos.openflow.drivers.impl.DriverManager; | 34 | +import org.onlab.onos.openflow.drivers.DriverManager; |
35 | import org.projectfloodlight.openflow.protocol.OFDescStatsReply; | 35 | import org.projectfloodlight.openflow.protocol.OFDescStatsReply; |
36 | import org.projectfloodlight.openflow.protocol.OFFactories; | 36 | import org.projectfloodlight.openflow.protocol.OFFactories; |
37 | import org.projectfloodlight.openflow.protocol.OFFactory; | 37 | import org.projectfloodlight.openflow.protocol.OFFactory; |
... | @@ -201,7 +201,7 @@ public class Controller { | ... | @@ -201,7 +201,7 @@ public class Controller { |
201 | protected OpenFlowSwitchDriver getOFSwitchInstance(long dpid, | 201 | protected OpenFlowSwitchDriver getOFSwitchInstance(long dpid, |
202 | OFDescStatsReply desc, OFVersion ofv) { | 202 | OFDescStatsReply desc, OFVersion ofv) { |
203 | OpenFlowSwitchDriver sw = DriverManager.getSwitch(new Dpid(dpid), | 203 | OpenFlowSwitchDriver sw = DriverManager.getSwitch(new Dpid(dpid), |
204 | - desc, ofv); | 204 | + desc, ofv); |
205 | sw.setAgent(agent); | 205 | sw.setAgent(agent); |
206 | sw.setRoleHandler(new RoleManager(sw)); | 206 | sw.setRoleHandler(new RoleManager(sw)); |
207 | return sw; | 207 | return sw; | ... | ... |
... | @@ -36,16 +36,4 @@ | ... | @@ -36,16 +36,4 @@ |
36 | <artifactId>onos-of-api</artifactId> | 36 | <artifactId>onos-of-api</artifactId> |
37 | </dependency> | 37 | </dependency> |
38 | </dependencies> | 38 | </dependencies> |
39 | - | ||
40 | - <build> | ||
41 | -<!-- | ||
42 | - <plugins> | ||
43 | - <plugin> | ||
44 | - <groupId>org.apache.felix</groupId> | ||
45 | - <artifactId>maven-scr-plugin</artifactId> | ||
46 | - </plugin> | ||
47 | - </plugins> | ||
48 | ---> | ||
49 | - </build> | ||
50 | - | ||
51 | </project> | 39 | </project> | ... | ... |
... | @@ -13,18 +13,15 @@ | ... | @@ -13,18 +13,15 @@ |
13 | * See the License for the specific language governing permissions and | 13 | * See the License for the specific language governing permissions and |
14 | * limitations under the License. | 14 | * limitations under the License. |
15 | */ | 15 | */ |
16 | -package org.onlab.onos.openflow.drivers.impl; | 16 | +package org.onlab.onos.openflow.drivers; |
17 | 17 | ||
18 | 18 | ||
19 | - | ||
20 | -import java.util.Collections; | ||
21 | -import java.util.List; | ||
22 | - | ||
23 | import org.onlab.onos.openflow.controller.Dpid; | 19 | import org.onlab.onos.openflow.controller.Dpid; |
24 | import org.onlab.onos.openflow.controller.RoleState; | 20 | import org.onlab.onos.openflow.controller.RoleState; |
25 | import org.onlab.onos.openflow.controller.driver.AbstractOpenFlowSwitch; | 21 | import org.onlab.onos.openflow.controller.driver.AbstractOpenFlowSwitch; |
26 | import org.onlab.onos.openflow.controller.driver.OpenFlowSwitchDriver; | 22 | import org.onlab.onos.openflow.controller.driver.OpenFlowSwitchDriver; |
27 | import org.onlab.onos.openflow.controller.driver.OpenFlowSwitchDriverFactory; | 23 | import org.onlab.onos.openflow.controller.driver.OpenFlowSwitchDriverFactory; |
24 | + | ||
28 | import org.projectfloodlight.openflow.protocol.OFDescStatsReply; | 25 | import org.projectfloodlight.openflow.protocol.OFDescStatsReply; |
29 | import org.projectfloodlight.openflow.protocol.OFMessage; | 26 | import org.projectfloodlight.openflow.protocol.OFMessage; |
30 | import org.projectfloodlight.openflow.protocol.OFPortDesc; | 27 | import org.projectfloodlight.openflow.protocol.OFPortDesc; |
... | @@ -32,6 +29,9 @@ import org.projectfloodlight.openflow.protocol.OFVersion; | ... | @@ -32,6 +29,9 @@ import org.projectfloodlight.openflow.protocol.OFVersion; |
32 | import org.slf4j.Logger; | 29 | import org.slf4j.Logger; |
33 | import org.slf4j.LoggerFactory; | 30 | import org.slf4j.LoggerFactory; |
34 | 31 | ||
32 | +import java.util.Collections; | ||
33 | +import java.util.List; | ||
34 | + | ||
35 | /** | 35 | /** |
36 | * A simple implementation of a driver manager that differentiates between | 36 | * A simple implementation of a driver manager that differentiates between |
37 | * connected switches using the OF Description Statistics Reply message. | 37 | * connected switches using the OF Description Statistics Reply message. | ... | ... |
... | @@ -13,13 +13,13 @@ | ... | @@ -13,13 +13,13 @@ |
13 | * See the License for the specific language governing permissions and | 13 | * See the License for the specific language governing permissions and |
14 | * limitations under the License. | 14 | * limitations under the License. |
15 | */ | 15 | */ |
16 | -package org.onlab.onos.openflow.drivers.impl; | 16 | +package org.onlab.onos.openflow.drivers; |
17 | 17 | ||
18 | +import org.onlab.onos.openflow.controller.Dpid; | ||
19 | +import org.onlab.onos.openflow.controller.driver.AbstractOpenFlowSwitch; | ||
18 | import org.onlab.onos.openflow.controller.driver.SwitchDriverSubHandshakeAlreadyStarted; | 20 | import org.onlab.onos.openflow.controller.driver.SwitchDriverSubHandshakeAlreadyStarted; |
19 | import org.onlab.onos.openflow.controller.driver.SwitchDriverSubHandshakeCompleted; | 21 | import org.onlab.onos.openflow.controller.driver.SwitchDriverSubHandshakeCompleted; |
20 | import org.onlab.onos.openflow.controller.driver.SwitchDriverSubHandshakeNotStarted; | 22 | import org.onlab.onos.openflow.controller.driver.SwitchDriverSubHandshakeNotStarted; |
21 | -import org.onlab.onos.openflow.controller.Dpid; | ||
22 | -import org.onlab.onos.openflow.controller.driver.AbstractOpenFlowSwitch; | ||
23 | import org.projectfloodlight.openflow.protocol.OFCircuitPortStatus; | 23 | import org.projectfloodlight.openflow.protocol.OFCircuitPortStatus; |
24 | import org.projectfloodlight.openflow.protocol.OFCircuitPortsReply; | 24 | import org.projectfloodlight.openflow.protocol.OFCircuitPortsReply; |
25 | import org.projectfloodlight.openflow.protocol.OFCircuitPortsRequest; | 25 | import org.projectfloodlight.openflow.protocol.OFCircuitPortsRequest; |
... | @@ -30,6 +30,7 @@ import org.projectfloodlight.openflow.protocol.OFPortDescStatsReply; | ... | @@ -30,6 +30,7 @@ import org.projectfloodlight.openflow.protocol.OFPortDescStatsReply; |
30 | import org.projectfloodlight.openflow.protocol.OFPortOptical; | 30 | import org.projectfloodlight.openflow.protocol.OFPortOptical; |
31 | import org.projectfloodlight.openflow.protocol.OFStatsReply; | 31 | import org.projectfloodlight.openflow.protocol.OFStatsReply; |
32 | import org.projectfloodlight.openflow.protocol.OFStatsType; | 32 | import org.projectfloodlight.openflow.protocol.OFStatsType; |
33 | + | ||
33 | import java.io.IOException; | 34 | import java.io.IOException; |
34 | import java.util.ArrayList; | 35 | import java.util.ArrayList; |
35 | import java.util.Collection; | 36 | import java.util.Collection; | ... | ... |
... | @@ -13,15 +13,7 @@ | ... | @@ -13,15 +13,7 @@ |
13 | * See the License for the specific language governing permissions and | 13 | * See the License for the specific language governing permissions and |
14 | * limitations under the License. | 14 | * limitations under the License. |
15 | */ | 15 | */ |
16 | -package org.onlab.onos.openflow.drivers.impl; | 16 | +package org.onlab.onos.openflow.drivers; |
17 | - | ||
18 | -import java.io.IOException; | ||
19 | -import java.util.ArrayList; | ||
20 | -import java.util.Collections; | ||
21 | -import java.util.List; | ||
22 | -import java.util.Map; | ||
23 | -import java.util.concurrent.ConcurrentHashMap; | ||
24 | -import java.util.concurrent.atomic.AtomicBoolean; | ||
25 | 17 | ||
26 | import org.onlab.onos.openflow.controller.Dpid; | 18 | import org.onlab.onos.openflow.controller.Dpid; |
27 | import org.onlab.onos.openflow.controller.RoleState; | 19 | import org.onlab.onos.openflow.controller.RoleState; |
... | @@ -65,6 +57,14 @@ import org.projectfloodlight.openflow.types.U32; | ... | @@ -65,6 +57,14 @@ import org.projectfloodlight.openflow.types.U32; |
65 | import org.projectfloodlight.openflow.types.U64; | 57 | import org.projectfloodlight.openflow.types.U64; |
66 | import org.projectfloodlight.openflow.util.HexString; | 58 | import org.projectfloodlight.openflow.util.HexString; |
67 | 59 | ||
60 | +import java.io.IOException; | ||
61 | +import java.util.ArrayList; | ||
62 | +import java.util.Collections; | ||
63 | +import java.util.List; | ||
64 | +import java.util.Map; | ||
65 | +import java.util.concurrent.ConcurrentHashMap; | ||
66 | +import java.util.concurrent.atomic.AtomicBoolean; | ||
67 | + | ||
68 | /** | 68 | /** |
69 | * OFDescriptionStatistics Vendor (Manufacturer Desc.): Stanford University, | 69 | * OFDescriptionStatistics Vendor (Manufacturer Desc.): Stanford University, |
70 | * Ericsson Research and CPqD Research. Make (Hardware Desc.) : OpenFlow 1.3 | 70 | * Ericsson Research and CPqD Research. Make (Hardware Desc.) : OpenFlow 1.3 |
... | @@ -1138,7 +1138,7 @@ public class OFSwitchImplCPqD13 extends AbstractOpenFlowSwitch { | ... | @@ -1138,7 +1138,7 @@ public class OFSwitchImplCPqD13 extends AbstractOpenFlowSwitch { |
1138 | * @param toControllerWrite as a WRITE_ACITION instruction | 1138 | * @param toControllerWrite as a WRITE_ACITION instruction |
1139 | * @param toTable as a GOTO_TABLE instruction | 1139 | * @param toTable as a GOTO_TABLE instruction |
1140 | * @param tableToSend | 1140 | * @param tableToSend |
1141 | - * @throws IOException | 1141 | + * @throws java.io.IOException |
1142 | */ | 1142 | */ |
1143 | @SuppressWarnings("unchecked") | 1143 | @SuppressWarnings("unchecked") |
1144 | private void populateTableMissEntry(int tableToAdd, boolean toControllerNow, | 1144 | private void populateTableMissEntry(int tableToAdd, boolean toControllerNow, | ... | ... |
... | @@ -13,10 +13,7 @@ | ... | @@ -13,10 +13,7 @@ |
13 | * See the License for the specific language governing permissions and | 13 | * See the License for the specific language governing permissions and |
14 | * limitations under the License. | 14 | * limitations under the License. |
15 | */ | 15 | */ |
16 | -package org.onlab.onos.openflow.drivers.impl; | 16 | +package org.onlab.onos.openflow.drivers; |
17 | - | ||
18 | -import java.util.Collections; | ||
19 | -import java.util.List; | ||
20 | 17 | ||
21 | import org.onlab.onos.openflow.controller.Dpid; | 18 | import org.onlab.onos.openflow.controller.Dpid; |
22 | import org.onlab.onos.openflow.controller.driver.AbstractOpenFlowSwitch; | 19 | import org.onlab.onos.openflow.controller.driver.AbstractOpenFlowSwitch; |
... | @@ -24,6 +21,9 @@ import org.projectfloodlight.openflow.protocol.OFDescStatsReply; | ... | @@ -24,6 +21,9 @@ import org.projectfloodlight.openflow.protocol.OFDescStatsReply; |
24 | import org.projectfloodlight.openflow.protocol.OFMessage; | 21 | import org.projectfloodlight.openflow.protocol.OFMessage; |
25 | import org.projectfloodlight.openflow.protocol.OFPortDesc; | 22 | import org.projectfloodlight.openflow.protocol.OFPortDesc; |
26 | 23 | ||
24 | +import java.util.Collections; | ||
25 | +import java.util.List; | ||
26 | + | ||
27 | /** | 27 | /** |
28 | * OFDescriptionStatistics Vendor (Manufacturer Desc.): Nicira, Inc. Make | 28 | * OFDescriptionStatistics Vendor (Manufacturer Desc.): Nicira, Inc. Make |
29 | * (Hardware Desc.) : Open vSwitch Model (Datapath Desc.) : None Software : | 29 | * (Hardware Desc.) : Open vSwitch Model (Datapath Desc.) : None Software : | ... | ... |
... | @@ -13,12 +13,7 @@ | ... | @@ -13,12 +13,7 @@ |
13 | * See the License for the specific language governing permissions and | 13 | * See the License for the specific language governing permissions and |
14 | * limitations under the License. | 14 | * limitations under the License. |
15 | */ | 15 | */ |
16 | -package org.onlab.onos.openflow.drivers.impl; | 16 | +package org.onlab.onos.openflow.drivers; |
17 | - | ||
18 | -import java.util.ArrayList; | ||
19 | -import java.util.Collections; | ||
20 | -import java.util.List; | ||
21 | -import java.util.concurrent.atomic.AtomicBoolean; | ||
22 | 17 | ||
23 | import org.onlab.onos.openflow.controller.Dpid; | 18 | import org.onlab.onos.openflow.controller.Dpid; |
24 | import org.onlab.onos.openflow.controller.driver.AbstractOpenFlowSwitch; | 19 | import org.onlab.onos.openflow.controller.driver.AbstractOpenFlowSwitch; |
... | @@ -37,6 +32,11 @@ import org.projectfloodlight.openflow.types.OFBufferId; | ... | @@ -37,6 +32,11 @@ import org.projectfloodlight.openflow.types.OFBufferId; |
37 | import org.projectfloodlight.openflow.types.OFPort; | 32 | import org.projectfloodlight.openflow.types.OFPort; |
38 | import org.projectfloodlight.openflow.types.TableId; | 33 | import org.projectfloodlight.openflow.types.TableId; |
39 | 34 | ||
35 | +import java.util.ArrayList; | ||
36 | +import java.util.Collections; | ||
37 | +import java.util.List; | ||
38 | +import java.util.concurrent.atomic.AtomicBoolean; | ||
39 | + | ||
40 | /** | 40 | /** |
41 | * OFDescriptionStatistics Vendor (Manufacturer Desc.): Nicira, Inc. Make | 41 | * OFDescriptionStatistics Vendor (Manufacturer Desc.): Nicira, Inc. Make |
42 | * (Hardware Desc.) : Open vSwitch Model (Datapath Desc.) : None Software : | 42 | * (Hardware Desc.) : Open vSwitch Model (Datapath Desc.) : None Software : | ... | ... |
openflow/drivers/src/main/java/org/onlab/onos/openflow/drivers/impl/DeleteMe.java
deleted
100644 → 0
1 | -/* | ||
2 | - * Copyright 2014 Open Networking Laboratory | ||
3 | - * | ||
4 | - * Licensed under the Apache License, Version 2.0 (the "License"); | ||
5 | - * you may not use this file except in compliance with the License. | ||
6 | - * You may obtain a copy of the License at | ||
7 | - * | ||
8 | - * http://www.apache.org/licenses/LICENSE-2.0 | ||
9 | - * | ||
10 | - * Unless required by applicable law or agreed to in writing, software | ||
11 | - * distributed under the License is distributed on an "AS IS" BASIS, | ||
12 | - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
13 | - * See the License for the specific language governing permissions and | ||
14 | - * limitations under the License. | ||
15 | - */ | ||
16 | -package org.onlab.onos.openflow.drivers.impl; | ||
17 | - | ||
18 | -/** | ||
19 | - * Created by tom on 9/2/14. | ||
20 | - */ | ||
21 | -public class DeleteMe { | ||
22 | -} |
-
Please register or login to post a comment