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 = [ | ... | @@ -3,6 +3,7 @@ COMPILE_DEPS = [ |
3 | '//core/store/serializers:onos-core-serializers', | 3 | '//core/store/serializers:onos-core-serializers', |
4 | '//lib:org.apache.karaf.shell.console', | 4 | '//lib:org.apache.karaf.shell.console', |
5 | '//cli:onos-cli', | 5 | '//cli:onos-cli', |
6 | + '//apps/optical-model:onos-apps-optical-model', | ||
6 | ] | 7 | ] |
7 | 8 | ||
8 | TEST_DEPS = [ | 9 | TEST_DEPS = [ |
... | @@ -19,4 +20,5 @@ onos_app ( | ... | @@ -19,4 +20,5 @@ onos_app ( |
19 | category = 'Traffic Steering', | 20 | category = 'Traffic Steering', |
20 | url = 'http://onosproject.org', | 21 | url = 'http://onosproject.org', |
21 | description = 'Packet/Optical use-case application.', | 22 | description = 'Packet/Optical use-case application.', |
23 | + required_apps = [ 'org.onosproject.optical-model' ], | ||
22 | ) | 24 | ) | ... | ... |
... | @@ -32,9 +32,13 @@ | ... | @@ -32,9 +32,13 @@ |
32 | <properties> | 32 | <properties> |
33 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | 33 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
34 | <onos.app.name>org.onosproject.newoptical</onos.app.name> | 34 | <onos.app.name>org.onosproject.newoptical</onos.app.name> |
35 | + <onos.app.title>Packet/Optical Use-Case App</onos.app.title> | ||
35 | <onos.app.category>Traffic Steering</onos.app.category> | 36 | <onos.app.category>Traffic Steering</onos.app.category> |
36 | <onos.app.url>https://wiki.onosproject.org/display/ONOS/Packet+Optical+Convergence</onos.app.url> | 37 | <onos.app.url>https://wiki.onosproject.org/display/ONOS/Packet+Optical+Convergence</onos.app.url> |
37 | <onos.app.origin>ON.Lab</onos.app.origin> | 38 | <onos.app.origin>ON.Lab</onos.app.origin> |
39 | + <onos.app.requires> | ||
40 | + org.onosproject.optical-model | ||
41 | + </onos.app.requires> | ||
38 | </properties> | 42 | </properties> |
39 | 43 | ||
40 | <dependencies> | 44 | <dependencies> |
... | @@ -46,6 +50,12 @@ | ... | @@ -46,6 +50,12 @@ |
46 | 50 | ||
47 | <dependency> | 51 | <dependency> |
48 | <groupId>org.onosproject</groupId> | 52 | <groupId>org.onosproject</groupId> |
53 | + <artifactId>onos-optical-model</artifactId> | ||
54 | + <version>${project.version}</version> | ||
55 | + </dependency> | ||
56 | + | ||
57 | + <dependency> | ||
58 | + <groupId>org.onosproject</groupId> | ||
49 | <artifactId>onos-core-dist</artifactId> | 59 | <artifactId>onos-core-dist</artifactId> |
50 | <version>${project.version}</version> | 60 | <version>${project.version}</version> |
51 | </dependency> | 61 | </dependency> | ... | ... |
apps/optical-model/BUCK
0 → 100644
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 | + app_name = 'org.onosproject.optical-model', | ||
18 | + # Is there a way to change BUCK target name properly? | ||
19 | + #name = 'onos-optical-model', | ||
20 | + feature_coords = 'org.onosproject:onos-optical-model:%s' % (ONOS_VERSION), | ||
21 | + title = 'Optical information model', | ||
22 | + category = 'Optical', | ||
23 | + url = 'https://wiki.onosproject.org/x/C4m', | ||
24 | + description = 'ONOS optical information model.', | ||
25 | + required_apps = [ ], | ||
26 | +) |
apps/optical-model/features.xml
0 → 100644
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> |
apps/optical-model/pom.xml
0 → 100644
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.7.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.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>https://wiki.onosproject.org/x/C4m</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 ( |
... | @@ -11,4 +12,5 @@ onos_app ( | ... | @@ -11,4 +12,5 @@ onos_app ( |
11 | category = 'Traffic Steering', | 12 | category = 'Traffic Steering', |
12 | url = 'http://onosproject.org', | 13 | url = 'http://onosproject.org', |
13 | description = 'Packet/Optical use-case application.', | 14 | description = 'Packet/Optical use-case application.', |
15 | + required_apps = [ 'org.onosproject.optical-model' ], | ||
14 | ) | 16 | ) | ... | ... |
... | @@ -36,11 +36,19 @@ | ... | @@ -36,11 +36,19 @@ |
36 | <onos.app.category>Traffic Steering</onos.app.category> | 36 | <onos.app.category>Traffic Steering</onos.app.category> |
37 | <onos.app.url>http://onosproject.org</onos.app.url> | 37 | <onos.app.url>http://onosproject.org</onos.app.url> |
38 | <onos.app.readme>Packet/Optical use-case application.</onos.app.readme> | 38 | <onos.app.readme>Packet/Optical use-case application.</onos.app.readme> |
39 | + <onos.app.requires> | ||
40 | + org.onosproject.optical-model | ||
41 | + </onos.app.requires> | ||
39 | </properties> | 42 | </properties> |
40 | 43 | ||
41 | <dependencies> | 44 | <dependencies> |
42 | <dependency> | 45 | <dependency> |
43 | <groupId>org.onosproject</groupId> | 46 | <groupId>org.onosproject</groupId> |
47 | + <artifactId>onos-optical-model</artifactId> | ||
48 | + <version>${project.version}</version> | ||
49 | + </dependency> | ||
50 | + <dependency> | ||
51 | + <groupId>org.onosproject</groupId> | ||
44 | <artifactId>onos-cli</artifactId> | 52 | <artifactId>onos-cli</artifactId> |
45 | <version>${project.version}</version> | 53 | <version>${project.version}</version> |
46 | </dependency> | 54 | </dependency> | ... | ... |
... | @@ -34,6 +34,7 @@ | ... | @@ -34,6 +34,7 @@ |
34 | <module>mobility</module> | 34 | <module>mobility</module> |
35 | <module>proxyarp</module> | 35 | <module>proxyarp</module> |
36 | <module>sdnip</module> | 36 | <module>sdnip</module> |
37 | + <module>optical-model</module> | ||
37 | <module>optical</module> | 38 | <module>optical</module> |
38 | <module>newoptical</module> | 39 | <module>newoptical</module> |
39 | <module>metrics</module> | 40 | <module>metrics</module> | ... | ... |
... | @@ -5,6 +5,8 @@ COMPILE_DEPS = [ | ... | @@ -5,6 +5,8 @@ COMPILE_DEPS = [ |
5 | '//incubator/net:onos-incubator-net', | 5 | '//incubator/net:onos-incubator-net', |
6 | '//utils/rest:onlab-rest', | 6 | '//utils/rest:onlab-rest', |
7 | '//core/common:onos-core-common', | 7 | '//core/common:onos-core-common', |
8 | + # TODO Remove after decoupling optical | ||
9 | + '//apps/optical-model:onos-apps-optical-model', | ||
8 | ] | 10 | ] |
9 | 11 | ||
10 | osgi_jar ( | 12 | osgi_jar ( | ... | ... |
... | @@ -49,6 +49,13 @@ | ... | @@ -49,6 +49,13 @@ |
49 | <artifactId>onos-core-common</artifactId> | 49 | <artifactId>onos-core-common</artifactId> |
50 | </dependency> | 50 | </dependency> |
51 | 51 | ||
52 | + <!-- TODO Remove after decoupling optical --> | ||
53 | + <dependency> | ||
54 | + <groupId>org.onosproject</groupId> | ||
55 | + <artifactId>onos-optical-model</artifactId> | ||
56 | + <version>${project.version}</version> | ||
57 | + </dependency> | ||
58 | + | ||
52 | <dependency> | 59 | <dependency> |
53 | <groupId>com.fasterxml.jackson.core</groupId> | 60 | <groupId>com.fasterxml.jackson.core</groupId> |
54 | <artifactId>jackson-databind</artifactId> | 61 | <artifactId>jackson-databind</artifactId> | ... | ... |
... | @@ -4,6 +4,8 @@ COMPILE_DEPS = [ | ... | @@ -4,6 +4,8 @@ COMPILE_DEPS = [ |
4 | '//utils/rest:onlab-rest', | 4 | '//utils/rest:onlab-rest', |
5 | '//incubator/net:onos-incubator-net', | 5 | '//incubator/net:onos-incubator-net', |
6 | '//incubator/store:onos-incubator-store', | 6 | '//incubator/store:onos-incubator-store', |
7 | + # TODO Remove after decoupling optical | ||
8 | + '//apps/optical-model:onos-apps-optical-model', | ||
7 | ] | 9 | ] |
8 | 10 | ||
9 | TEST_DEPS = [ | 11 | TEST_DEPS = [ |
... | @@ -19,4 +21,4 @@ osgi_jar_with_tests ( | ... | @@ -19,4 +21,4 @@ osgi_jar_with_tests ( |
19 | deps = COMPILE_DEPS, | 21 | deps = COMPILE_DEPS, |
20 | test_deps = TEST_DEPS, | 22 | test_deps = TEST_DEPS, |
21 | visibility = ['PUBLIC'], | 23 | visibility = ['PUBLIC'], |
22 | -) | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
24 | +) | ... | ... |
... | @@ -104,6 +104,16 @@ | ... | @@ -104,6 +104,16 @@ |
104 | <artifactId>onos-incubator-api</artifactId> | 104 | <artifactId>onos-incubator-api</artifactId> |
105 | </dependency> | 105 | </dependency> |
106 | 106 | ||
107 | + <!-- TODO Remove after decoupling optical --> | ||
108 | + <!-- - DeviceManager.InternalDeviceProviderService#ensureGeneric --> | ||
109 | + <!-- - OpticalCompilers x4 --> | ||
110 | + <!-- - OpticalPortOperator --> | ||
111 | + <dependency> | ||
112 | + <groupId>org.onosproject</groupId> | ||
113 | + <artifactId>onos-optical-model</artifactId> | ||
114 | + <version>${project.version}</version> | ||
115 | + </dependency> | ||
116 | + | ||
107 | <dependency> | 117 | <dependency> |
108 | <groupId>org.apache.karaf.features</groupId> | 118 | <groupId>org.apache.karaf.features</groupId> |
109 | <artifactId>org.apache.karaf.features.core</artifactId> | 119 | <artifactId>org.apache.karaf.features.core</artifactId> | ... | ... |
... | @@ -569,6 +569,7 @@ public class DeviceManager | ... | @@ -569,6 +569,7 @@ public class DeviceManager |
569 | case VIRTUAL: | 569 | case VIRTUAL: |
570 | return desc; | 570 | return desc; |
571 | default: | 571 | default: |
572 | + // TODO: add plugin mechanism in order to decouple this | ||
572 | OpticalPortConfig opc = networkConfigService.getConfig( | 573 | OpticalPortConfig opc = networkConfigService.getConfig( |
573 | new ConnectPoint(did, desc.portNumber()), OpticalPortConfig.class); | 574 | new ConnectPoint(did, desc.portNumber()), OpticalPortConfig.class); |
574 | return OpticalPortOperator.combine(opc, desc); | 575 | 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 | TEST_DEPS = [ | 10 | TEST_DEPS = [ |
... | @@ -30,5 +31,5 @@ onos_app ( | ... | @@ -30,5 +31,5 @@ onos_app ( |
30 | url = 'http://onosproject.org', | 31 | url = 'http://onosproject.org', |
31 | description = 'ONOS Ciena Device Drivers application.', | 32 | description = 'ONOS Ciena Device Drivers application.', |
32 | included_bundles = BUNDLES, | 33 | included_bundles = BUNDLES, |
33 | - required_apps = [ 'org.onosproject.restsb' ], | 34 | + required_apps = [ 'org.onosproject.restsb', 'org.onosproject.optical-model' ], |
34 | ) | 35 | ) | ... | ... |
... | @@ -37,13 +37,20 @@ | ... | @@ -37,13 +37,20 @@ |
37 | <onos.app.category>Drivers</onos.app.category> | 37 | <onos.app.category>Drivers</onos.app.category> |
38 | <onos.app.url>http://onosproject.org</onos.app.url> | 38 | <onos.app.url>http://onosproject.org</onos.app.url> |
39 | <onos.app.requires> | 39 | <onos.app.requires> |
40 | - org.onosproject.restsb | 40 | + org.onosproject.restsb, |
41 | + org.onosproject.optical-model | ||
41 | </onos.app.requires> | 42 | </onos.app.requires> |
42 | </properties> | 43 | </properties> |
43 | 44 | ||
44 | <dependencies> | 45 | <dependencies> |
45 | <dependency> | 46 | <dependency> |
46 | <groupId>org.onosproject</groupId> | 47 | <groupId>org.onosproject</groupId> |
48 | + <artifactId>onos-optical-model</artifactId> | ||
49 | + <version>${project.version}</version> | ||
50 | + </dependency> | ||
51 | + | ||
52 | + <dependency> | ||
53 | + <groupId>org.onosproject</groupId> | ||
47 | <artifactId>onos-drivers-utilities</artifactId> | 54 | <artifactId>onos-drivers-utilities</artifactId> |
48 | <version>${project.version}</version> | 55 | <version>${project.version}</version> |
49 | </dependency> | 56 | </dependency> |
... | @@ -54,4 +61,4 @@ | ... | @@ -54,4 +61,4 @@ |
54 | </dependency> | 61 | </dependency> |
55 | </dependencies> | 62 | </dependencies> |
56 | 63 | ||
57 | -</project> | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
64 | +</project> | ... | ... |
... | @@ -4,6 +4,7 @@ COMPILE_DEPS = [ | ... | @@ -4,6 +4,7 @@ COMPILE_DEPS = [ |
4 | '//protocols/netconf/api:onos-protocols-netconf-api', | 4 | '//protocols/netconf/api:onos-protocols-netconf-api', |
5 | '//lib:org.apache.karaf.shell.console', | 5 | '//lib:org.apache.karaf.shell.console', |
6 | '//cli:onos-cli', | 6 | '//cli:onos-cli', |
7 | + '//apps/optical-model:onos-apps-optical-model', | ||
7 | ] | 8 | ] |
8 | 9 | ||
9 | TEST_DEPS = [ | 10 | TEST_DEPS = [ |
... | @@ -30,5 +31,5 @@ onos_app ( | ... | @@ -30,5 +31,5 @@ onos_app ( |
30 | url = 'http://onosproject.org', | 31 | url = 'http://onosproject.org', |
31 | description = 'ONOS Fujitsu device drivers application.', | 32 | description = 'ONOS Fujitsu device drivers application.', |
32 | included_bundles = BUNDLES, | 33 | included_bundles = BUNDLES, |
33 | - required_apps = [ 'org.onosproject.netconf' ], | 34 | + required_apps = [ 'org.onosproject.netconf', 'org.onosproject.optical-model' ], |
34 | ) | 35 | ) | ... | ... |
... | @@ -37,13 +37,20 @@ | ... | @@ -37,13 +37,20 @@ |
37 | <onos.app.title>Fujitsu Device Drivers</onos.app.title> | 37 | <onos.app.title>Fujitsu Device Drivers</onos.app.title> |
38 | <onos.app.url>http://onosproject.org</onos.app.url> | 38 | <onos.app.url>http://onosproject.org</onos.app.url> |
39 | <onos.app.requires> | 39 | <onos.app.requires> |
40 | - org.onosproject.netconf | 40 | + org.onosproject.netconf, |
41 | + org.onosproject.optical-model | ||
41 | </onos.app.requires> | 42 | </onos.app.requires> |
42 | </properties> | 43 | </properties> |
43 | 44 | ||
44 | <dependencies> | 45 | <dependencies> |
45 | <dependency> | 46 | <dependency> |
46 | <groupId>org.onosproject</groupId> | 47 | <groupId>org.onosproject</groupId> |
48 | + <artifactId>onos-optical-model</artifactId> | ||
49 | + <version>${project.version}</version> | ||
50 | + </dependency> | ||
51 | + | ||
52 | + <dependency> | ||
53 | + <groupId>org.onosproject</groupId> | ||
47 | <artifactId>onos-netconf-api</artifactId> | 54 | <artifactId>onos-netconf-api</artifactId> |
48 | <version>${project.version}</version> | 55 | <version>${project.version}</version> |
49 | </dependency> | 56 | </dependency> |
... | @@ -64,4 +71,4 @@ | ... | @@ -64,4 +71,4 @@ |
64 | </dependency> | 71 | </dependency> |
65 | </dependencies> | 72 | </dependencies> |
66 | 73 | ||
67 | -</project> | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
74 | +</project> | ... | ... |
... | @@ -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 | TEST_DEPS = [ | 10 | TEST_DEPS = [ |
... | @@ -24,5 +25,5 @@ onos_app ( | ... | @@ -24,5 +25,5 @@ onos_app ( |
24 | category = 'Drivers', | 25 | category = 'Drivers', |
25 | url = 'http://onosproject.org', | 26 | url = 'http://onosproject.org', |
26 | description = 'ONOS Lumentum Device Drivers application.', | 27 | description = 'ONOS Lumentum Device Drivers application.', |
27 | - required_apps = [ 'org.onosproject.snmp', 'org.onosproject.faultmanagement' ], | 28 | + required_apps = [ 'org.onosproject.snmp', 'org.onosproject.faultmanagement', 'org.onosproject.optical-model' ], |
28 | ) | 29 | ) | ... | ... |
... | @@ -37,12 +37,19 @@ | ... | @@ -37,12 +37,19 @@ |
37 | <onos.app.url>http://onosproject.org</onos.app.url> | 37 | <onos.app.url>http://onosproject.org</onos.app.url> |
38 | <onos.app.requires> | 38 | <onos.app.requires> |
39 | org.onosproject.snmp, | 39 | org.onosproject.snmp, |
40 | - org.onosproject.faultmanagement | 40 | + org.onosproject.faultmanagement, |
41 | + org.onosproject.optical-model | ||
41 | </onos.app.requires> | 42 | </onos.app.requires> |
42 | </properties> | 43 | </properties> |
43 | 44 | ||
44 | <dependencies> | 45 | <dependencies> |
45 | <dependency> | 46 | <dependency> |
47 | + <groupId>org.onosproject</groupId> | ||
48 | + <artifactId>onos-optical-model</artifactId> | ||
49 | + <version>${project.version}</version> | ||
50 | + </dependency> | ||
51 | + | ||
52 | + <dependency> | ||
46 | <groupId>org.apache.servicemix.bundles</groupId> | 53 | <groupId>org.apache.servicemix.bundles</groupId> |
47 | <artifactId>org.apache.servicemix.bundles.snmp4j</artifactId> | 54 | <artifactId>org.apache.servicemix.bundles.snmp4j</artifactId> |
48 | <version>2.3.4_1</version> | 55 | <version>2.3.4_1</version> |
... | @@ -53,4 +60,4 @@ | ... | @@ -53,4 +60,4 @@ |
53 | <version>${project.version}</version> | 60 | <version>${project.version}</version> |
54 | </dependency> | 61 | </dependency> |
55 | </dependencies> | 62 | </dependencies> |
56 | -</project> | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
63 | +</project> | ... | ... |
... | @@ -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 | TEST_DEPS = [ | 9 | TEST_DEPS = [ |
... | @@ -23,5 +24,5 @@ onos_app ( | ... | @@ -23,5 +24,5 @@ onos_app ( |
23 | category = 'Drivers', | 24 | category = 'Drivers', |
24 | url = 'http://onosproject.org', | 25 | url = 'http://onosproject.org', |
25 | description = 'ONOS other optical Device Drivers application.', | 26 | description = 'ONOS other optical Device Drivers application.', |
26 | - required_apps = [ 'org.onosproject.drivers' ], | 27 | + required_apps = [ 'org.onosproject.drivers', 'org.onosproject.optical-model' ], |
27 | ) | 28 | ) | ... | ... |
... | @@ -37,11 +37,17 @@ | ... | @@ -37,11 +37,17 @@ |
37 | <onos.app.title>Other optical Device Drivers</onos.app.title> | 37 | <onos.app.title>Other optical Device Drivers</onos.app.title> |
38 | <onos.app.url>http://onosproject.org</onos.app.url> | 38 | <onos.app.url>http://onosproject.org</onos.app.url> |
39 | <onos.app.requires> | 39 | <onos.app.requires> |
40 | - org.onosproject.drivers | 40 | + org.onosproject.drivers, |
41 | + org.onosproject.optical-model | ||
41 | </onos.app.requires> | 42 | </onos.app.requires> |
42 | </properties> | 43 | </properties> |
43 | 44 | ||
44 | <dependencies> | 45 | <dependencies> |
46 | + <dependency> | ||
47 | + <groupId>org.onosproject</groupId> | ||
48 | + <artifactId>onos-optical-model</artifactId> | ||
49 | + <version>${project.version}</version> | ||
50 | + </dependency> | ||
45 | 51 | ||
46 | <dependency> | 52 | <dependency> |
47 | <groupId>org.onosproject</groupId> | 53 | <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> | ... | ... |
... | @@ -128,6 +128,8 @@ osgi_feature ( | ... | @@ -128,6 +128,8 @@ osgi_feature ( |
128 | required_features = ['onos-api'], | 128 | required_features = ['onos-api'], |
129 | included_bundles = [ | 129 | included_bundles = [ |
130 | '//cli:onos-cli', | 130 | '//cli:onos-cli', |
131 | + # TODO Remove after decoupling optical | ||
132 | + '//apps/optical-model:onos-apps-optical-model', | ||
131 | ] | 133 | ] |
132 | ) | 134 | ) |
133 | 135 | ... | ... |
... | @@ -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" | ... | ... |
... | @@ -127,6 +127,7 @@ ONOS_APPS = [ | ... | @@ -127,6 +127,7 @@ ONOS_APPS = [ |
127 | '//apps/mobility:onos-apps-mobility-oar', | 127 | '//apps/mobility:onos-apps-mobility-oar', |
128 | '//apps/optical:onos-apps-optical-oar', | 128 | '//apps/optical:onos-apps-optical-oar', |
129 | '//apps/newoptical:onos-apps-newoptical-oar', | 129 | '//apps/newoptical:onos-apps-newoptical-oar', |
130 | + '//apps/optical-model:onos-apps-optical-model-oar', | ||
130 | '//apps/pathpainter:onos-apps-pathpainter-oar', | 131 | '//apps/pathpainter:onos-apps-pathpainter-oar', |
131 | '//apps/pcep-api:onos-apps-pcep-api-oar', | 132 | '//apps/pcep-api:onos-apps-pcep-api-oar', |
132 | '//apps/pim:onos-apps-pim-oar', | 133 | '//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: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 = [ | ... | ... |
... | @@ -31,6 +31,12 @@ | ... | @@ -31,6 +31,12 @@ |
31 | <description>ONOS OpenFlow protocol device provider</description> | 31 | <description>ONOS OpenFlow protocol device provider</description> |
32 | <dependencies> | 32 | <dependencies> |
33 | <dependency> | 33 | <dependency> |
34 | + <groupId>org.onosproject</groupId> | ||
35 | + <artifactId>onos-optical-model</artifactId> | ||
36 | + <version>${project.version}</version> | ||
37 | + </dependency> | ||
38 | + | ||
39 | + <dependency> | ||
34 | <groupId>org.osgi</groupId> | 40 | <groupId>org.osgi</groupId> |
35 | <artifactId>org.osgi.compendium</artifactId> | 41 | <artifactId>org.osgi.compendium</artifactId> |
36 | </dependency> | 42 | </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 | +) | ... | ... |
-
Please register or login to post a comment