HIGUCHI Yuta
Committed by Yuta HIGUCHI

[ONOS-4513] Slice optical-model into separate bundle

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

Change-Id: Ieff43ef2002ee21f4578a6e2a729cd35ce3eae3d
Showing 57 changed files with 182 additions and 3 deletions
...@@ -120,6 +120,7 @@ APPS = [ ...@@ -120,6 +120,7 @@ APPS = [
120 '//apps/mobility:onos-apps-mobility-oar', 120 '//apps/mobility:onos-apps-mobility-oar',
121 '//apps/optical:onos-apps-optical-oar', 121 '//apps/optical:onos-apps-optical-oar',
122 '//apps/newoptical:onos-apps-newoptical-oar', 122 '//apps/newoptical:onos-apps-newoptical-oar',
123 + '//apps/optical-model:onos-apps-optical-model-oar',
123 '//apps/pathpainter:onos-apps-pathpainter-oar', 124 '//apps/pathpainter:onos-apps-pathpainter-oar',
124 '//apps/pcep-api:onos-apps-pcep-api-oar', 125 '//apps/pcep-api:onos-apps-pcep-api-oar',
125 '//apps/pim:onos-apps-pim-oar', 126 '//apps/pim:onos-apps-pim-oar',
......
...@@ -2,6 +2,7 @@ COMPILE_DEPS = [ ...@@ -2,6 +2,7 @@ COMPILE_DEPS = [
2 '//lib:CORE_DEPS', 2 '//lib:CORE_DEPS',
3 '//lib:org.apache.karaf.shell.console', 3 '//lib:org.apache.karaf.shell.console',
4 '//cli:onos-cli', 4 '//cli:onos-cli',
5 + '//apps/optical-model:onos-apps-optical-model',
5 ] 6 ]
6 7
7 osgi_jar_with_tests ( 8 osgi_jar_with_tests (
......
...@@ -47,6 +47,12 @@ ...@@ -47,6 +47,12 @@
47 47
48 <dependency> 48 <dependency>
49 <groupId>org.onosproject</groupId> 49 <groupId>org.onosproject</groupId>
50 + <artifactId>onos-optical-model</artifactId>
51 + <version>${project.version}</version>
52 + </dependency>
53 +
54 + <dependency>
55 + <groupId>org.onosproject</groupId>
50 <artifactId>onos-core-dist</artifactId> 56 <artifactId>onos-core-dist</artifactId>
51 <version>${project.version}</version> 57 <version>${project.version}</version>
52 </dependency> 58 </dependency>
......
1 +COMPILE_DEPS = [
2 + '//lib:CORE_DEPS',
3 + '//incubator/api:onos-incubator-api',
4 +]
5 +
6 +TEST_DEPS = [
7 + '//lib:TEST',
8 +]
9 +
10 +
11 +osgi_jar_with_tests (
12 + deps = COMPILE_DEPS,
13 + test_deps = TEST_DEPS,
14 +)
15 +
16 +onos_app (
17 + title = 'Optical infromation model',
18 + category = 'Optical',
19 + url = 'http://onosproject.org',
20 + description = 'ONOS optical infromation model.',
21 + required_apps = [ ],
22 +)
1 +<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2 +<!--
3 + ~ Copyright 2016-present Open Networking Laboratory
4 + ~
5 + ~ Licensed under the Apache License, Version 2.0 (the "License");
6 + ~ you may not use this file except in compliance with the License.
7 + ~ You may obtain a copy of the License at
8 + ~
9 + ~ http://www.apache.org/licenses/LICENSE-2.0
10 + ~
11 + ~ Unless required by applicable law or agreed to in writing, software
12 + ~ distributed under the License is distributed on an "AS IS" BASIS,
13 + ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 + ~ See the License for the specific language governing permissions and
15 + ~ limitations under the License.
16 + -->
17 +<features xmlns="http://karaf.apache.org/xmlns/features/v1.2.1" name="${project.artifactId}-${project.version}">
18 + <feature name="${project.artifactId}" version="${project.version}"
19 + description="${project.description}">
20 + <feature>onos-api</feature>
21 + <bundle>mvn:${project.groupId}/${project.artifactId}/${project.version}</bundle>
22 + </feature>
23 +</features>
1 +<?xml version="1.0" encoding="UTF-8"?>
2 +<!--
3 + ~ Copyright 2016-present Open Networking Laboratory
4 + ~
5 + ~ Licensed under the Apache License, Version 2.0 (the "License");
6 + ~ you may not use this file except in compliance with the License.
7 + ~ You may obtain a copy of the License at
8 + ~
9 + ~ http://www.apache.org/licenses/LICENSE-2.0
10 + ~
11 + ~ Unless required by applicable law or agreed to in writing, software
12 + ~ distributed under the License is distributed on an "AS IS" BASIS,
13 + ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 + ~ See the License for the specific language governing permissions and
15 + ~ limitations under the License.
16 + -->
17 +<project xmlns="http://maven.apache.org/POM/4.0.0"
18 + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
19 + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
20 + <parent>
21 + <artifactId>onos-apps</artifactId>
22 + <groupId>org.onosproject</groupId>
23 + <version>1.6.0-SNAPSHOT</version>
24 + </parent>
25 + <modelVersion>4.0.0</modelVersion>
26 +
27 + <artifactId>onos-optical-model</artifactId>
28 + <packaging>bundle</packaging>
29 +
30 + <description>ONOS Optical Model extensions</description>
31 +
32 + <properties>
33 + <onos.app.name>org.onosproject.apps.optical-model</onos.app.name>
34 + <onos.app.origin>ON.Lab</onos.app.origin>
35 + <onos.app.category>Optical</onos.app.category>
36 + <onos.app.title>Optical information model</onos.app.title>
37 + <onos.app.url>http://onosproject.org</onos.app.url>
38 + <onos.app.requires>
39 + </onos.app.requires>
40 + </properties>
41 +
42 + <dependencies>
43 + <dependency>
44 + <groupId>org.onosproject</groupId>
45 + <artifactId>onos-api</artifactId>
46 + </dependency>
47 +
48 + <dependency>
49 + <groupId>org.onosproject</groupId>
50 + <artifactId>onlab-junit</artifactId>
51 + <scope>test</scope>
52 + </dependency>
53 +
54 + <dependency>
55 + <groupId>com.google.guava</groupId>
56 + <artifactId>guava-testlib</artifactId>
57 + <scope>test</scope>
58 + </dependency>
59 +
60 + </dependencies>
61 +</project>
1 COMPILE_DEPS = [ 1 COMPILE_DEPS = [
2 '//lib:CORE_DEPS', 2 '//lib:CORE_DEPS',
3 + '//apps/optical-model:onos-apps-optical-model',
3 ] 4 ]
4 5
5 osgi_jar_with_tests ( 6 osgi_jar_with_tests (
......
...@@ -42,6 +42,11 @@ ...@@ -42,6 +42,11 @@
42 <dependencies> 42 <dependencies>
43 <dependency> 43 <dependency>
44 <groupId>org.onosproject</groupId> 44 <groupId>org.onosproject</groupId>
45 + <artifactId>onos-optical-model</artifactId>
46 + <version>${project.version}</version>
47 + </dependency>
48 + <dependency>
49 + <groupId>org.onosproject</groupId>
45 <artifactId>onos-cli</artifactId> 50 <artifactId>onos-cli</artifactId>
46 <version>${project.version}</version> 51 <version>${project.version}</version>
47 </dependency> 52 </dependency>
......
...@@ -35,6 +35,7 @@ ...@@ -35,6 +35,7 @@
35 <module>mobility</module> 35 <module>mobility</module>
36 <module>proxyarp</module> 36 <module>proxyarp</module>
37 <module>sdnip</module> 37 <module>sdnip</module>
38 + <module>optical-model</module>
38 <module>optical</module> 39 <module>optical</module>
39 <module>newoptical</module> 40 <module>newoptical</module>
40 <module>metrics</module> 41 <module>metrics</module>
......
...@@ -4,6 +4,8 @@ COMPILE_DEPS = [ ...@@ -4,6 +4,8 @@ COMPILE_DEPS = [
4 '//incubator/api:onos-incubator-api', 4 '//incubator/api:onos-incubator-api',
5 '//utils/rest:onlab-rest', 5 '//utils/rest:onlab-rest',
6 '//core/common:onos-core-common', 6 '//core/common:onos-core-common',
7 + # TODO Remove after decoupling optical
8 + '//apps/optical-model:onos-apps-optical-model',
7 ] 9 ]
8 10
9 osgi_jar ( 11 osgi_jar (
......
...@@ -50,6 +50,13 @@ ...@@ -50,6 +50,13 @@
50 <artifactId>onos-core-common</artifactId> 50 <artifactId>onos-core-common</artifactId>
51 </dependency> 51 </dependency>
52 52
53 + <!-- TODO Remove after decoupling optical -->
54 + <dependency>
55 + <groupId>org.onosproject</groupId>
56 + <artifactId>onos-optical-model</artifactId>
57 + <version>${project.version}</version>
58 + </dependency>
59 +
53 <dependency> 60 <dependency>
54 <groupId>com.fasterxml.jackson.core</groupId> 61 <groupId>com.fasterxml.jackson.core</groupId>
55 <artifactId>jackson-databind</artifactId> 62 <artifactId>jackson-databind</artifactId>
......
1 COMPILE_DEPS = [ 1 COMPILE_DEPS = [
2 '//lib:CORE_DEPS', 2 '//lib:CORE_DEPS',
3 '//incubator/api:onos-incubator-api', 3 '//incubator/api:onos-incubator-api',
4 + # TODO Remove after decoupling optical
5 + '//apps/optical-model:onos-apps-optical-model',
4 ] 6 ]
5 7
6 TEST_DEPS = [ 8 TEST_DEPS = [
...@@ -15,4 +17,4 @@ osgi_jar_with_tests ( ...@@ -15,4 +17,4 @@ osgi_jar_with_tests (
15 deps = COMPILE_DEPS, 17 deps = COMPILE_DEPS,
16 test_deps = TEST_DEPS, 18 test_deps = TEST_DEPS,
17 visibility = ['PUBLIC'], 19 visibility = ['PUBLIC'],
18 -)
...\ No newline at end of file ...\ No newline at end of file
20 +)
......
...@@ -97,6 +97,16 @@ ...@@ -97,6 +97,16 @@
97 <artifactId>onos-incubator-api</artifactId> 97 <artifactId>onos-incubator-api</artifactId>
98 </dependency> 98 </dependency>
99 99
100 + <!-- TODO Remove after decoupling optical -->
101 + <!-- - DeviceManager.InternalDeviceProviderService#ensureGeneric -->
102 + <!-- - OpticalCompilers x4 -->
103 + <!-- - OpticalPortOperator -->
104 + <dependency>
105 + <groupId>org.onosproject</groupId>
106 + <artifactId>onos-optical-model</artifactId>
107 + <version>${project.version}</version>
108 + </dependency>
109 +
100 <dependency> 110 <dependency>
101 <groupId>org.apache.karaf.features</groupId> 111 <groupId>org.apache.karaf.features</groupId>
102 <artifactId>org.apache.karaf.features.core</artifactId> 112 <artifactId>org.apache.karaf.features.core</artifactId>
......
...@@ -546,6 +546,7 @@ public class DeviceManager ...@@ -546,6 +546,7 @@ public class DeviceManager
546 case VIRTUAL: 546 case VIRTUAL:
547 return desc; 547 return desc;
548 default: 548 default:
549 + // TODO: add plugin mechanism in order to decouple this
549 OpticalPortConfig opc = networkConfigService.getConfig( 550 OpticalPortConfig opc = networkConfigService.getConfig(
550 new ConnectPoint(did, desc.portNumber()), OpticalPortConfig.class); 551 new ConnectPoint(did, desc.portNumber()), OpticalPortConfig.class);
551 return OpticalPortOperator.combine(opc, desc); 552 return OpticalPortOperator.combine(opc, desc);
......
...@@ -4,6 +4,7 @@ COMPILE_DEPS = [ ...@@ -4,6 +4,7 @@ COMPILE_DEPS = [
4 '//utils/rest:onlab-rest', 4 '//utils/rest:onlab-rest',
5 '//drivers/utilities:onos-drivers-utilities', 5 '//drivers/utilities:onos-drivers-utilities',
6 '//protocols/rest/api:onos-protocols-rest-api', 6 '//protocols/rest/api:onos-protocols-rest-api',
7 + '//apps/optical-model:onos-apps-optical-model',
7 ] 8 ]
8 9
9 osgi_jar_with_tests ( 10 osgi_jar_with_tests (
......
...@@ -44,6 +44,12 @@ ...@@ -44,6 +44,12 @@
44 <dependencies> 44 <dependencies>
45 <dependency> 45 <dependency>
46 <groupId>org.onosproject</groupId> 46 <groupId>org.onosproject</groupId>
47 + <artifactId>onos-optical-model</artifactId>
48 + <version>${project.version}</version>
49 + </dependency>
50 +
51 + <dependency>
52 + <groupId>org.onosproject</groupId>
47 <artifactId>onos-drivers-utilities</artifactId> 53 <artifactId>onos-drivers-utilities</artifactId>
48 <version>${project.version}</version> 54 <version>${project.version}</version>
49 </dependency> 55 </dependency>
......
...@@ -2,6 +2,7 @@ COMPILE_DEPS = [ ...@@ -2,6 +2,7 @@ COMPILE_DEPS = [
2 '//lib:CORE_DEPS', 2 '//lib:CORE_DEPS',
3 '//drivers/utilities:onos-drivers-utilities', 3 '//drivers/utilities:onos-drivers-utilities',
4 '//protocols/netconf/api:onos-protocols-netconf-api', 4 '//protocols/netconf/api:onos-protocols-netconf-api',
5 + '//apps/optical-model:onos-apps-optical-model',
5 ] 6 ]
6 7
7 osgi_jar_with_tests ( 8 osgi_jar_with_tests (
......
...@@ -44,6 +44,12 @@ ...@@ -44,6 +44,12 @@
44 <dependencies> 44 <dependencies>
45 <dependency> 45 <dependency>
46 <groupId>org.onosproject</groupId> 46 <groupId>org.onosproject</groupId>
47 + <artifactId>onos-optical-model</artifactId>
48 + <version>${project.version}</version>
49 + </dependency>
50 +
51 + <dependency>
52 + <groupId>org.onosproject</groupId>
47 <artifactId>onos-netconf-api</artifactId> 53 <artifactId>onos-netconf-api</artifactId>
48 <version>${project.version}</version> 54 <version>${project.version}</version>
49 </dependency> 55 </dependency>
......
...@@ -4,6 +4,7 @@ COMPILE_DEPS = [ ...@@ -4,6 +4,7 @@ COMPILE_DEPS = [
4 '//drivers/utilities:onos-drivers-utilities', 4 '//drivers/utilities:onos-drivers-utilities',
5 '//protocols/snmp/api:onos-protocols-snmp-api', 5 '//protocols/snmp/api:onos-protocols-snmp-api',
6 '//incubator/api:onos-incubator-api', 6 '//incubator/api:onos-incubator-api',
7 + '//apps/optical-model:onos-apps-optical-model',
7 ] 8 ]
8 9
9 osgi_jar_with_tests ( 10 osgi_jar_with_tests (
......
...@@ -43,6 +43,12 @@ ...@@ -43,6 +43,12 @@
43 43
44 <dependencies> 44 <dependencies>
45 <dependency> 45 <dependency>
46 + <groupId>org.onosproject</groupId>
47 + <artifactId>onos-optical-model</artifactId>
48 + <version>${project.version}</version>
49 + </dependency>
50 +
51 + <dependency>
46 <groupId>org.apache.servicemix.bundles</groupId> 52 <groupId>org.apache.servicemix.bundles</groupId>
47 <artifactId>org.apache.servicemix.bundles.snmp4j</artifactId> 53 <artifactId>org.apache.servicemix.bundles.snmp4j</artifactId>
48 <version>2.3.4_1</version> 54 <version>2.3.4_1</version>
......
...@@ -3,6 +3,7 @@ COMPILE_DEPS = [ ...@@ -3,6 +3,7 @@ COMPILE_DEPS = [
3 '//lib:openflowj', 3 '//lib:openflowj',
4 '//protocols/openflow/api:onos-protocols-openflow-api', 4 '//protocols/openflow/api:onos-protocols-openflow-api',
5 '//drivers/default:onos-drivers-default', 5 '//drivers/default:onos-drivers-default',
6 + '//apps/optical-model:onos-apps-optical-model',
6 ] 7 ]
7 8
8 osgi_jar_with_tests ( 9 osgi_jar_with_tests (
......
...@@ -42,6 +42,11 @@ ...@@ -42,6 +42,11 @@
42 </properties> 42 </properties>
43 43
44 <dependencies> 44 <dependencies>
45 + <dependency>
46 + <groupId>org.onosproject</groupId>
47 + <artifactId>onos-optical-model</artifactId>
48 + <version>${project.version}</version>
49 + </dependency>
45 50
46 <dependency> 51 <dependency>
47 <groupId>org.onosproject</groupId> 52 <groupId>org.onosproject</groupId>
......
...@@ -30,4 +30,4 @@ ...@@ -30,4 +30,4 @@
30 <artifactId>onos-drivers-utilities</artifactId> 30 <artifactId>onos-drivers-utilities</artifactId>
31 <packaging>bundle</packaging> 31 <packaging>bundle</packaging>
32 32
33 -</project>
...\ No newline at end of file ...\ No newline at end of file
33 +</project>
......
...@@ -142,6 +142,8 @@ ...@@ -142,6 +142,8 @@
142 description="ONOS admin command console components"> 142 description="ONOS admin command console components">
143 <feature>onos-api</feature> 143 <feature>onos-api</feature>
144 <bundle>mvn:org.onosproject/onos-cli/@ONOS-VERSION</bundle> 144 <bundle>mvn:org.onosproject/onos-cli/@ONOS-VERSION</bundle>
145 + <!-- TODO Remove after decoupling optical -->
146 + <bundle>mvn:org.onosproject/onos-optical-model/@ONOS-VERSION</bundle>
145 </feature> 147 </feature>
146 148
147 <feature name="onos-security" version="@FEATURE-VERSION" 149 <feature name="onos-security" version="@FEATURE-VERSION"
......
...@@ -2,6 +2,7 @@ COMPILE_DEPS = [ ...@@ -2,6 +2,7 @@ COMPILE_DEPS = [
2 '//lib:CORE_DEPS', 2 '//lib:CORE_DEPS',
3 '//lib:openflowj', 3 '//lib:openflowj',
4 '//protocols/openflow/api:onos-protocols-openflow-api', 4 '//protocols/openflow/api:onos-protocols-openflow-api',
5 + '//apps/optical-model:onos-apps-optical-model',
5 ] 6 ]
6 7
7 TEST_DEPS = [ 8 TEST_DEPS = [
......
...@@ -32,6 +32,12 @@ ...@@ -32,6 +32,12 @@
32 <description>ONOS OpenFlow protocol device provider</description> 32 <description>ONOS OpenFlow protocol device provider</description>
33 <dependencies> 33 <dependencies>
34 <dependency> 34 <dependency>
35 + <groupId>org.onosproject</groupId>
36 + <artifactId>onos-optical-model</artifactId>
37 + <version>${project.version}</version>
38 + </dependency>
39 +
40 + <dependency>
35 <groupId>org.osgi</groupId> 41 <groupId>org.osgi</groupId>
36 <artifactId>org.osgi.compendium</artifactId> 42 <artifactId>org.osgi.compendium</artifactId>
37 </dependency> 43 </dependency>
......
...@@ -14,4 +14,4 @@ osgi_jar_with_tests ( ...@@ -14,4 +14,4 @@ osgi_jar_with_tests (
14 deps = COMPILE_DEPS, 14 deps = COMPILE_DEPS,
15 test_deps = TEST_DEPS, 15 test_deps = TEST_DEPS,
16 web_context = '/onos/v1', 16 web_context = '/onos/v1',
17 -)
...\ No newline at end of file ...\ No newline at end of file
17 +)
......