HIGUCHI Yuta
Committed by Gerrit Code Review

[ONOS-4513] Slice optical-model into separate bundle (1/3)

- net and cli bundle has dependency to optical-model bundle,
  which should be removed in the longer run. (ONOS-4626)

Change-Id: Ieff43ef2002ee21f4578a6e2a729cd35ce3eae3d
Showing 58 changed files with 212 additions and 14 deletions
......@@ -3,6 +3,7 @@ COMPILE_DEPS = [
'//core/store/serializers:onos-core-serializers',
'//lib:org.apache.karaf.shell.console',
'//cli:onos-cli',
'//apps/optical-model:onos-apps-optical-model',
]
TEST_DEPS = [
......@@ -19,4 +20,5 @@ onos_app (
category = 'Traffic Steering',
url = 'http://onosproject.org',
description = 'Packet/Optical use-case application.',
required_apps = [ 'org.onosproject.optical-model' ],
)
......
......@@ -32,9 +32,13 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<onos.app.name>org.onosproject.newoptical</onos.app.name>
<onos.app.title>Packet/Optical Use-Case App</onos.app.title>
<onos.app.category>Traffic Steering</onos.app.category>
<onos.app.url>https://wiki.onosproject.org/display/ONOS/Packet+Optical+Convergence</onos.app.url>
<onos.app.origin>ON.Lab</onos.app.origin>
<onos.app.requires>
org.onosproject.optical-model
</onos.app.requires>
</properties>
<dependencies>
......@@ -46,6 +50,12 @@
<dependency>
<groupId>org.onosproject</groupId>
<artifactId>onos-optical-model</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.onosproject</groupId>
<artifactId>onos-core-dist</artifactId>
<version>${project.version}</version>
</dependency>
......
COMPILE_DEPS = [
'//lib:CORE_DEPS',
'//incubator/api:onos-incubator-api',
]
TEST_DEPS = [
'//lib:TEST',
]
osgi_jar_with_tests (
deps = COMPILE_DEPS,
test_deps = TEST_DEPS,
)
onos_app (
app_name = 'org.onosproject.optical-model',
# Is there a way to change BUCK target name properly?
#name = 'onos-optical-model',
feature_coords = 'org.onosproject:onos-optical-model:%s' % (ONOS_VERSION),
title = 'Optical information model',
category = 'Optical',
url = 'https://wiki.onosproject.org/x/C4m',
description = 'ONOS optical information model.',
required_apps = [ ],
)
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!--
~ Copyright 2016-present Open Networking Laboratory
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<features xmlns="http://karaf.apache.org/xmlns/features/v1.2.1" name="${project.artifactId}-${project.version}">
<feature name="${project.artifactId}" version="${project.version}"
description="${project.description}">
<feature>onos-api</feature>
<bundle>mvn:${project.groupId}/${project.artifactId}/${project.version}</bundle>
</feature>
</features>
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright 2016-present Open Networking Laboratory
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>onos-apps</artifactId>
<groupId>org.onosproject</groupId>
<version>1.7.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>onos-optical-model</artifactId>
<packaging>bundle</packaging>
<description>ONOS Optical Model extensions</description>
<properties>
<onos.app.name>org.onosproject.optical-model</onos.app.name>
<onos.app.origin>ON.Lab</onos.app.origin>
<onos.app.category>Optical</onos.app.category>
<onos.app.title>Optical information model</onos.app.title>
<onos.app.url>https://wiki.onosproject.org/x/C4m</onos.app.url>
<onos.app.requires>
</onos.app.requires>
</properties>
<dependencies>
<dependency>
<groupId>org.onosproject</groupId>
<artifactId>onos-api</artifactId>
</dependency>
<dependency>
<groupId>org.onosproject</groupId>
<artifactId>onlab-junit</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava-testlib</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
</project>
COMPILE_DEPS = [
'//lib:CORE_DEPS',
'//apps/optical-model:onos-apps-optical-model',
]
osgi_jar_with_tests (
......@@ -11,4 +12,5 @@ onos_app (
category = 'Traffic Steering',
url = 'http://onosproject.org',
description = 'Packet/Optical use-case application.',
required_apps = [ 'org.onosproject.optical-model' ],
)
......
......@@ -36,11 +36,19 @@
<onos.app.category>Traffic Steering</onos.app.category>
<onos.app.url>http://onosproject.org</onos.app.url>
<onos.app.readme>Packet/Optical use-case application.</onos.app.readme>
<onos.app.requires>
org.onosproject.optical-model
</onos.app.requires>
</properties>
<dependencies>
<dependency>
<groupId>org.onosproject</groupId>
<artifactId>onos-optical-model</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.onosproject</groupId>
<artifactId>onos-cli</artifactId>
<version>${project.version}</version>
</dependency>
......
......@@ -34,6 +34,7 @@
<module>mobility</module>
<module>proxyarp</module>
<module>sdnip</module>
<module>optical-model</module>
<module>optical</module>
<module>newoptical</module>
<module>metrics</module>
......
......@@ -5,6 +5,8 @@ COMPILE_DEPS = [
'//incubator/net:onos-incubator-net',
'//utils/rest:onlab-rest',
'//core/common:onos-core-common',
# TODO Remove after decoupling optical
'//apps/optical-model:onos-apps-optical-model',
]
osgi_jar (
......
......@@ -49,6 +49,13 @@
<artifactId>onos-core-common</artifactId>
</dependency>
<!-- TODO Remove after decoupling optical -->
<dependency>
<groupId>org.onosproject</groupId>
<artifactId>onos-optical-model</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
......
......@@ -4,6 +4,8 @@ COMPILE_DEPS = [
'//utils/rest:onlab-rest',
'//incubator/net:onos-incubator-net',
'//incubator/store:onos-incubator-store',
# TODO Remove after decoupling optical
'//apps/optical-model:onos-apps-optical-model',
]
TEST_DEPS = [
......@@ -19,4 +21,4 @@ osgi_jar_with_tests (
deps = COMPILE_DEPS,
test_deps = TEST_DEPS,
visibility = ['PUBLIC'],
)
\ No newline at end of file
)
......
......@@ -104,6 +104,16 @@
<artifactId>onos-incubator-api</artifactId>
</dependency>
<!-- TODO Remove after decoupling optical -->
<!-- - DeviceManager.InternalDeviceProviderService#ensureGeneric -->
<!-- - OpticalCompilers x4 -->
<!-- - OpticalPortOperator -->
<dependency>
<groupId>org.onosproject</groupId>
<artifactId>onos-optical-model</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.karaf.features</groupId>
<artifactId>org.apache.karaf.features.core</artifactId>
......
......@@ -569,6 +569,7 @@ public class DeviceManager
case VIRTUAL:
return desc;
default:
// TODO: add plugin mechanism in order to decouple this
OpticalPortConfig opc = networkConfigService.getConfig(
new ConnectPoint(did, desc.portNumber()), OpticalPortConfig.class);
return OpticalPortOperator.combine(opc, desc);
......
......@@ -4,6 +4,7 @@ COMPILE_DEPS = [
'//utils/rest:onlab-rest',
'//drivers/utilities:onos-drivers-utilities',
'//protocols/rest/api:onos-protocols-rest-api',
'//apps/optical-model:onos-apps-optical-model',
]
TEST_DEPS = [
......@@ -30,5 +31,5 @@ onos_app (
url = 'http://onosproject.org',
description = 'ONOS Ciena Device Drivers application.',
included_bundles = BUNDLES,
required_apps = [ 'org.onosproject.restsb' ],
required_apps = [ 'org.onosproject.restsb', 'org.onosproject.optical-model' ],
)
......
......@@ -37,13 +37,20 @@
<onos.app.category>Drivers</onos.app.category>
<onos.app.url>http://onosproject.org</onos.app.url>
<onos.app.requires>
org.onosproject.restsb
org.onosproject.restsb,
org.onosproject.optical-model
</onos.app.requires>
</properties>
<dependencies>
<dependency>
<groupId>org.onosproject</groupId>
<artifactId>onos-optical-model</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.onosproject</groupId>
<artifactId>onos-drivers-utilities</artifactId>
<version>${project.version}</version>
</dependency>
......@@ -54,4 +61,4 @@
</dependency>
</dependencies>
</project>
\ No newline at end of file
</project>
......
......@@ -4,6 +4,7 @@ COMPILE_DEPS = [
'//protocols/netconf/api:onos-protocols-netconf-api',
'//lib:org.apache.karaf.shell.console',
'//cli:onos-cli',
'//apps/optical-model:onos-apps-optical-model',
]
TEST_DEPS = [
......@@ -30,5 +31,5 @@ onos_app (
url = 'http://onosproject.org',
description = 'ONOS Fujitsu device drivers application.',
included_bundles = BUNDLES,
required_apps = [ 'org.onosproject.netconf' ],
required_apps = [ 'org.onosproject.netconf', 'org.onosproject.optical-model' ],
)
......
......@@ -37,13 +37,20 @@
<onos.app.title>Fujitsu Device Drivers</onos.app.title>
<onos.app.url>http://onosproject.org</onos.app.url>
<onos.app.requires>
org.onosproject.netconf
org.onosproject.netconf,
org.onosproject.optical-model
</onos.app.requires>
</properties>
<dependencies>
<dependency>
<groupId>org.onosproject</groupId>
<artifactId>onos-optical-model</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.onosproject</groupId>
<artifactId>onos-netconf-api</artifactId>
<version>${project.version}</version>
</dependency>
......@@ -64,4 +71,4 @@
</dependency>
</dependencies>
</project>
\ No newline at end of file
</project>
......
......@@ -4,6 +4,7 @@ COMPILE_DEPS = [
'//drivers/utilities:onos-drivers-utilities',
'//protocols/snmp/api:onos-protocols-snmp-api',
'//incubator/api:onos-incubator-api',
'//apps/optical-model:onos-apps-optical-model',
]
TEST_DEPS = [
......@@ -24,5 +25,5 @@ onos_app (
category = 'Drivers',
url = 'http://onosproject.org',
description = 'ONOS Lumentum Device Drivers application.',
required_apps = [ 'org.onosproject.snmp', 'org.onosproject.faultmanagement' ],
required_apps = [ 'org.onosproject.snmp', 'org.onosproject.faultmanagement', 'org.onosproject.optical-model' ],
)
......
......@@ -37,12 +37,19 @@
<onos.app.url>http://onosproject.org</onos.app.url>
<onos.app.requires>
org.onosproject.snmp,
org.onosproject.faultmanagement
org.onosproject.faultmanagement,
org.onosproject.optical-model
</onos.app.requires>
</properties>
<dependencies>
<dependency>
<groupId>org.onosproject</groupId>
<artifactId>onos-optical-model</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.servicemix.bundles</groupId>
<artifactId>org.apache.servicemix.bundles.snmp4j</artifactId>
<version>2.3.4_1</version>
......@@ -53,4 +60,4 @@
<version>${project.version}</version>
</dependency>
</dependencies>
</project>
\ No newline at end of file
</project>
......
......@@ -3,6 +3,7 @@ COMPILE_DEPS = [
'//lib:openflowj',
'//protocols/openflow/api:onos-protocols-openflow-api',
'//drivers/default:onos-drivers-default',
'//apps/optical-model:onos-apps-optical-model',
]
TEST_DEPS = [
......@@ -23,5 +24,5 @@ onos_app (
category = 'Drivers',
url = 'http://onosproject.org',
description = 'ONOS other optical Device Drivers application.',
required_apps = [ 'org.onosproject.drivers' ],
required_apps = [ 'org.onosproject.drivers', 'org.onosproject.optical-model' ],
)
......
......@@ -37,11 +37,17 @@
<onos.app.title>Other optical Device Drivers</onos.app.title>
<onos.app.url>http://onosproject.org</onos.app.url>
<onos.app.requires>
org.onosproject.drivers
org.onosproject.drivers,
org.onosproject.optical-model
</onos.app.requires>
</properties>
<dependencies>
<dependency>
<groupId>org.onosproject</groupId>
<artifactId>onos-optical-model</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.onosproject</groupId>
......
......@@ -30,4 +30,4 @@
<artifactId>onos-drivers-utilities</artifactId>
<packaging>bundle</packaging>
</project>
\ No newline at end of file
</project>
......
......@@ -128,6 +128,8 @@ osgi_feature (
required_features = ['onos-api'],
included_bundles = [
'//cli:onos-cli',
# TODO Remove after decoupling optical
'//apps/optical-model:onos-apps-optical-model',
]
)
......
......@@ -142,6 +142,8 @@
description="ONOS admin command console components">
<feature>onos-api</feature>
<bundle>mvn:org.onosproject/onos-cli/@ONOS-VERSION</bundle>
<!-- TODO Remove after decoupling optical -->
<bundle>mvn:org.onosproject/onos-optical-model/@ONOS-VERSION</bundle>
</feature>
<feature name="onos-security" version="@FEATURE-VERSION"
......
......@@ -127,6 +127,7 @@ ONOS_APPS = [
'//apps/mobility:onos-apps-mobility-oar',
'//apps/optical:onos-apps-optical-oar',
'//apps/newoptical:onos-apps-newoptical-oar',
'//apps/optical-model:onos-apps-optical-model-oar',
'//apps/pathpainter:onos-apps-pathpainter-oar',
'//apps/pcep-api:onos-apps-pcep-api-oar',
'//apps/pim:onos-apps-pim-oar',
......
......@@ -2,6 +2,7 @@ COMPILE_DEPS = [
'//lib:CORE_DEPS',
'//lib:openflowj',
'//protocols/openflow/api:onos-protocols-openflow-api',
'//apps/optical-model:onos-apps-optical-model',
]
TEST_DEPS = [
......
......@@ -31,6 +31,12 @@
<description>ONOS OpenFlow protocol device provider</description>
<dependencies>
<dependency>
<groupId>org.onosproject</groupId>
<artifactId>onos-optical-model</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.osgi</groupId>
<artifactId>org.osgi.compendium</artifactId>
</dependency>
......
......@@ -14,4 +14,4 @@ osgi_jar_with_tests (
deps = COMPILE_DEPS,
test_deps = TEST_DEPS,
web_context = '/onos/v1',
)
\ No newline at end of file
)
......