Support for SDX-L2 intents in Corsa Pipeline.
Changes: - Add VlanQuery behavior to Corsa driver; Workaround for ONOS-4924 Change-Id: Ib754ead0b752b96968f723d668703ede84820f6e
Showing
4 changed files
with
49 additions
and
0 deletions
| 1 | COMPILE_DEPS = [ | 1 | COMPILE_DEPS = [ |
| 2 | '//lib:CORE_DEPS', | 2 | '//lib:CORE_DEPS', |
| 3 | '//lib:openflowj', | 3 | '//lib:openflowj', |
| 4 | + '//drivers/default:onos-drivers-default', | ||
| 4 | '//drivers/utilities:onos-drivers-utilities', | 5 | '//drivers/utilities:onos-drivers-utilities', |
| 5 | '//protocols/openflow/api:onos-protocols-openflow-api', | 6 | '//protocols/openflow/api:onos-protocols-openflow-api', |
| 6 | ] | 7 | ] | ... | ... |
| ... | @@ -50,6 +50,11 @@ | ... | @@ -50,6 +50,11 @@ |
| 50 | <groupId>org.onosproject</groupId> | 50 | <groupId>org.onosproject</groupId> |
| 51 | <artifactId>openflowj</artifactId> | 51 | <artifactId>openflowj</artifactId> |
| 52 | </dependency> | 52 | </dependency> |
| 53 | + <dependency> | ||
| 54 | + <groupId>org.onosproject</groupId> | ||
| 55 | + <artifactId>onos-drivers</artifactId> | ||
| 56 | + <version>${project.version}</version> | ||
| 57 | + </dependency> | ||
| 53 | </dependencies> | 58 | </dependencies> |
| 54 | 59 | ||
| 55 | </project> | 60 | </project> |
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
| 1 | +/* | ||
| 2 | + * Copyright 2016-present 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 | + | ||
| 17 | +package org.onosproject.drivers.corsa; | ||
| 18 | + | ||
| 19 | +import com.google.common.annotations.Beta; | ||
| 20 | +import org.onosproject.driver.query.FullVlanAvailable; | ||
| 21 | + | ||
| 22 | +/** | ||
| 23 | + * Driver which always responds that all VLAN IDs are available for the Device. | ||
| 24 | + * | ||
| 25 | + * FIXME | ||
| 26 | + * To avoid CorsaFullVlanAvailable. | ||
| 27 | + * | ||
| 28 | + * OSGi: help bundle plugin discover runtime package dependency. | ||
| 29 | + * <pre> | ||
| 30 | + * <code> | ||
| 31 | + * Remember to add the tag: SuppressWarnings("unused") | ||
| 32 | + * private FullVlanAvailable fullVlans; | ||
| 33 | + * </code> | ||
| 34 | + * </pre> | ||
| 35 | + */ | ||
| 36 | + | ||
| 37 | + | ||
| 38 | +@Beta | ||
| 39 | +public class CorsaFullVlanAvailable extends FullVlanAvailable { | ||
| 40 | + | ||
| 41 | +} |
| ... | @@ -47,5 +47,7 @@ | ... | @@ -47,5 +47,7 @@ |
| 47 | impl="org.onosproject.drivers.corsa.CorsaPipelineV39"/> | 47 | impl="org.onosproject.drivers.corsa.CorsaPipelineV39"/> |
| 48 | <behaviour api="org.onosproject.openflow.controller.driver.OpenFlowSwitchDriver" | 48 | <behaviour api="org.onosproject.openflow.controller.driver.OpenFlowSwitchDriver" |
| 49 | impl="org.onosproject.drivers.corsa.CorsaSwitchHandshaker"/> | 49 | impl="org.onosproject.drivers.corsa.CorsaSwitchHandshaker"/> |
| 50 | + <behaviour api="org.onosproject.net.behaviour.VlanQuery" | ||
| 51 | + impl="org.onosproject.drivers.corsa.CorsaFullVlanAvailable"/> | ||
| 50 | </driver> | 52 | </driver> |
| 51 | </drivers> | 53 | </drivers> |
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
-
Please register or login to post a comment