samueljcc
Committed by Gerrit Code Review

[ONOS-3080] ONOSFW consists of three parts vtn/vtnweb/vtnrsc. Before we

need deploy three applications, but now vtn/vtnweb/vtnrsc as three
bundles are packaged as a single application. instead to install three
application. of cource if the other apps want to depend on any one of
three bundles, it can do.

Change-Id: I3535b36ac082dbb90cb714ba83d2336c950a22a1
Showing 78 changed files with 144 additions and 103 deletions
...@@ -53,9 +53,7 @@ ...@@ -53,9 +53,7 @@
53 <module>olt</module> 53 <module>olt</module>
54 <module>cip</module> 54 <module>cip</module>
55 <module>flowanalyzer</module> 55 <module>flowanalyzer</module>
56 - <module>vtnrsc</module>
57 <module>vtn</module> 56 <module>vtn</module>
58 - <module>vtnweb</module>
59 <module>dhcp</module> 57 <module>dhcp</module>
60 <module>cordvtn</module> 58 <module>cordvtn</module>
61 <module>mfwd</module> 59 <module>mfwd</module>
......
1 +<?xml version="1.0" encoding="UTF-8"?>
2 +<!--
3 + ~ Copyright 2015 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 +<app name="org.onosproject.vtn" origin="ON.Lab" version="${project.version}"
18 + featuresRepo="mvn:${project.groupId}/${project.artifactId}/${project.version}/xml/features"
19 + features="${project.artifactId}">
20 + <description>${project.description}</description>
21 +
22 + <artifact>mvn:${project.groupId}/onos-app-vtn-mgr/${project.version}</artifact>
23 + <artifact>mvn:${project.groupId}/onos-app-vtn-web/${project.version}</artifact>
24 + <artifact>mvn:${project.groupId}/onos-app-vtn-rsc/${project.version}</artifact>
25 +</app>
...@@ -20,8 +20,8 @@ ...@@ -20,8 +20,8 @@
20 description="${project.description}"> 20 description="${project.description}">
21 <feature>onos-api</feature> 21 <feature>onos-api</feature>
22 <feature>onos-drivers</feature> 22 <feature>onos-drivers</feature>
23 - <feature>onos-app-vtnrsc</feature> 23 + <bundle>mvn:${project.groupId}/onos-app-vtn-mgr/${project.version}</bundle>
24 - <feature>onos-app-vtnweb</feature> 24 + <bundle>mvn:${project.groupId}/onos-app-vtn-web/${project.version}</bundle>
25 - <bundle>mvn:${project.groupId}/${project.artifactId}/${project.version}</bundle> 25 + <bundle>mvn:${project.groupId}/onos-app-vtn-rsc/${project.version}</bundle>
26 </feature> 26 </feature>
27 </features> 27 </features>
......
1 +<?xml version="1.0" encoding="UTF-8"?>
2 +<!-- ~ Copyright 2014 Open Networking Laboratory ~ ~ Licensed under the Apache
3 + License, Version 2.0 (the "License"); ~ you may not use this file except
4 + in compliance with the License. ~ You may obtain a copy of the License at
5 + ~ ~ http://www.apache.org/licenses/LICENSE-2.0 ~ ~ Unless required by applicable
6 + law or agreed to in writing, software ~ distributed under the License is
7 + distributed on an "AS IS" BASIS, ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY
8 + KIND, either express or implied. ~ See the License for the specific language
9 + governing permissions and ~ limitations under the License. -->
10 +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
11 + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
12 + <modelVersion>4.0.0</modelVersion>
13 +
14 + <parent>
15 + <groupId>org.onosproject</groupId>
16 + <artifactId>onos-app-vtn</artifactId>
17 + <version>1.4.0-SNAPSHOT</version>
18 + <relativePath>../pom.xml</relativePath>
19 + </parent>
20 +
21 + <artifactId>onos-app-vtn-onosfw</artifactId>
22 + <packaging>pom</packaging>
23 +
24 + <description>ONOS framework applications</description>
25 +
26 + <dependencies>
27 + <dependency>
28 + <groupId>org.onosproject</groupId>
29 + <artifactId>onos-app-vtn-rsc</artifactId>
30 + <version>${project.version}</version>
31 + </dependency>
32 + <dependency>
33 + <groupId>org.onosproject</groupId>
34 + <artifactId>onos-app-vtn-web</artifactId>
35 + <version>${project.version}</version>
36 + </dependency>
37 + <dependency>
38 + <groupId>org.onosproject</groupId>
39 + <artifactId>onos-app-vtn-mgr</artifactId>
40 + <version>${project.version}</version>
41 + </dependency>
42 + </dependencies>
43 +
44 +</project>
1 -<?xml version="1.0"?> 1 +<?xml version="1.0" encoding="UTF-8"?>
2 <!-- 2 <!--
3 - ~ Copyright 2015 Open Networking Laboratory 3 + ~ Copyright 2014 Open Networking Laboratory
4 ~ 4 ~
5 ~ Licensed under the Apache License, Version 2.0 (the "License"); 5 ~ Licensed under the Apache License, Version 2.0 (the "License");
6 ~ you may not use this file except in compliance with the License. 6 ~ you may not use this file except in compliance with the License.
...@@ -14,11 +14,11 @@ ...@@ -14,11 +14,11 @@
14 ~ See the License for the specific language governing permissions and 14 ~ See the License for the specific language governing permissions and
15 ~ limitations under the License. 15 ~ limitations under the License.
16 --> 16 -->
17 -<project 17 +<project xmlns="http://maven.apache.org/POM/4.0.0"
18 - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" 18 + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
19 - xmlns="http://maven.apache.org/POM/4.0.0" 19 + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
20 - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
21 <modelVersion>4.0.0</modelVersion> 20 <modelVersion>4.0.0</modelVersion>
21 +
22 <parent> 22 <parent>
23 <groupId>org.onosproject</groupId> 23 <groupId>org.onosproject</groupId>
24 <artifactId>onos-apps</artifactId> 24 <artifactId>onos-apps</artifactId>
...@@ -27,32 +27,14 @@ ...@@ -27,32 +27,14 @@
27 </parent> 27 </parent>
28 28
29 <artifactId>onos-app-vtn</artifactId> 29 <artifactId>onos-app-vtn</artifactId>
30 - <packaging>bundle</packaging> 30 + <packaging>pom</packaging>
31 31
32 + <description>ONOS framework applications</description>
32 33
33 - <properties> 34 + <modules>
34 - <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> 35 + <module>vtnrsc</module>
35 - <onos.app.name>org.onosproject.vtn</onos.app.name> 36 + <module>vtnmgr</module>
36 - </properties> 37 + <module>vtnweb</module>
37 - <dependencies> 38 + <module>app</module>
38 - <dependency> 39 + </modules>
39 - <groupId>javax.ws.rs</groupId>
40 - <artifactId>jsr311-api</artifactId>
41 - <version>1.1.1</version>
42 - </dependency>
43 - <dependency>
44 - <groupId>org.onosproject</groupId>
45 - <artifactId>onos-incubator-api</artifactId>
46 - </dependency>
47 - <dependency>
48 - <groupId>org.onosproject</groupId>
49 - <artifactId>onos-core-serializers</artifactId>
50 - <version>${project.version}</version>
51 - </dependency>
52 - <dependency>
53 - <groupId>org.onosproject</groupId>
54 - <artifactId>onos-app-vtnrsc</artifactId>
55 - <version>${project.version}</version>
56 - </dependency>
57 - </dependencies>
58 </project> 40 </project>
......
1 +<?xml version="1.0"?>
2 +<!--
3 + ~ Copyright 2015 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
18 + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
19 + xmlns="http://maven.apache.org/POM/4.0.0"
20 + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
21 + <modelVersion>4.0.0</modelVersion>
22 + <parent>
23 + <groupId>org.onosproject</groupId>
24 + <artifactId>onos-app-vtn</artifactId>
25 + <version>1.4.0-SNAPSHOT</version>
26 + <relativePath>../pom.xml</relativePath>
27 + </parent>
28 +
29 + <artifactId>onos-app-vtn-mgr</artifactId>
30 + <packaging>bundle</packaging>
31 +
32 + <dependencies>
33 + <dependency>
34 + <groupId>javax.ws.rs</groupId>
35 + <artifactId>jsr311-api</artifactId>
36 + <version>1.1.1</version>
37 + </dependency>
38 + <dependency>
39 + <groupId>org.onosproject</groupId>
40 + <artifactId>onos-incubator-api</artifactId>
41 + </dependency>
42 + <dependency>
43 + <groupId>org.onosproject</groupId>
44 + <artifactId>onos-core-serializers</artifactId>
45 + <version>${project.version}</version>
46 + </dependency>
47 + <dependency>
48 + <groupId>org.onosproject</groupId>
49 + <artifactId>onos-app-vtn-rsc</artifactId>
50 + <version>${project.version}</version>
51 + </dependency>
52 + </dependencies>
53 +</project>
...@@ -20,25 +20,17 @@ ...@@ -20,25 +20,17 @@
20 <modelVersion>4.0.0</modelVersion> 20 <modelVersion>4.0.0</modelVersion>
21 <parent> 21 <parent>
22 <groupId>org.onosproject</groupId> 22 <groupId>org.onosproject</groupId>
23 - <artifactId>onos-apps</artifactId> 23 + <artifactId>onos-app-vtn</artifactId>
24 <version>1.4.0-SNAPSHOT</version> 24 <version>1.4.0-SNAPSHOT</version>
25 <relativePath>../pom.xml</relativePath> 25 <relativePath>../pom.xml</relativePath>
26 </parent> 26 </parent>
27 27
28 28
29 - <artifactId>onos-app-vtnrsc</artifactId> 29 + <artifactId>onos-app-vtn-rsc</artifactId>
30 <packaging>bundle</packaging> 30 <packaging>bundle</packaging>
31 31
32 - <properties>
33 - <onos.app.name>org.onosproject.vtnrsc</onos.app.name>
34 - </properties>
35 <dependencies> 32 <dependencies>
36 <dependency> 33 <dependency>
37 - <groupId>javax.ws.rs</groupId>
38 - <artifactId>jsr311-api</artifactId>
39 - <version>1.1.1</version>
40 - </dependency>
41 - <dependency>
42 <groupId>org.onosproject</groupId> 34 <groupId>org.onosproject</groupId>
43 <artifactId>onos-api</artifactId> 35 <artifactId>onos-api</artifactId>
44 </dependency> 36 </dependency>
...@@ -57,15 +49,8 @@ ...@@ -57,15 +49,8 @@
57 </dependency> 49 </dependency>
58 <dependency> 50 <dependency>
59 <groupId>org.onosproject</groupId> 51 <groupId>org.onosproject</groupId>
60 - <artifactId>onlab-junit</artifactId>
61 - <version>${project.version}</version>
62 - </dependency>
63 - <dependency>
64 - <groupId>org.onosproject</groupId>
65 <artifactId>onos-core-serializers</artifactId> 52 <artifactId>onos-core-serializers</artifactId>
66 <version>${project.version}</version> 53 <version>${project.version}</version>
67 </dependency> 54 </dependency>
68 </dependencies> 55 </dependencies>
69 -
70 -
71 </project> 56 </project>
......
...@@ -21,16 +21,15 @@ ...@@ -21,16 +21,15 @@
21 <modelVersion>4.0.0</modelVersion> 21 <modelVersion>4.0.0</modelVersion>
22 <parent> 22 <parent>
23 <groupId>org.onosproject</groupId> 23 <groupId>org.onosproject</groupId>
24 - <artifactId>onos-apps</artifactId> 24 + <artifactId>onos-app-vtn</artifactId>
25 <version>1.4.0-SNAPSHOT</version> 25 <version>1.4.0-SNAPSHOT</version>
26 <relativePath>../pom.xml</relativePath> 26 <relativePath>../pom.xml</relativePath>
27 </parent> 27 </parent>
28 28
29 29
30 - <artifactId>onos-app-vtnweb</artifactId> 30 + <artifactId>onos-app-vtn-web</artifactId>
31 <packaging>bundle</packaging> 31 <packaging>bundle</packaging>
32 <properties> 32 <properties>
33 - <onos.app.name>org.onosproject.vtnweb</onos.app.name>
34 <web.context>/onos/vtn</web.context> 33 <web.context>/onos/vtn</web.context>
35 </properties> 34 </properties>
36 35
...@@ -42,7 +41,7 @@ ...@@ -42,7 +41,7 @@
42 </dependency> 41 </dependency>
43 <dependency> 42 <dependency>
44 <groupId>org.onosproject</groupId> 43 <groupId>org.onosproject</groupId>
45 - <artifactId>onos-app-vtnrsc</artifactId> 44 + <artifactId>onos-app-vtn-rsc</artifactId>
46 <version>${project.version}</version> 45 <version>${project.version}</version>
47 </dependency> 46 </dependency>
48 </dependencies> 47 </dependencies>
......
1 -<?xml version="1.0" encoding="UTF-8"?>
2 -<!--
3 - ~ Copyright 2015 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 -<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee"
18 - xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
19 - xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
20 - id="ONOS" version="2.5">
21 - <display-name>Vtnrsc Routing REST API v1.0</display-name>
22 -
23 - <servlet>
24 - <servlet-name>JAX-RS Service</servlet-name>
25 - <servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer</servlet-class>
26 - <init-param>
27 - <param-name>com.sun.jersey.config.property.resourceConfigClass</param-name>
28 - <param-value>com.sun.jersey.api.core.ClassNamesResourceConfig</param-value>
29 - </init-param>
30 - <init-param>
31 - <param-name>com.sun.jersey.config.property.classnames</param-name>
32 - <param-value>
33 - org.onosproject.app.vtnrsc.web.SubnetWebResource,
34 - org.onosproject.app.vtnrsc.web.NeutronNetworkWebResource,
35 - org.onosproject.app.vtnrsc.web.VirtualPortWebResource
36 - </param-value>
37 - </init-param>
38 - <load-on-startup>1</load-on-startup>
39 - </servlet>
40 -
41 - <servlet-mapping>
42 - <servlet-name>JAX-RS Service</servlet-name>
43 - <url-pattern>/*</url-pattern>
44 - </servlet-mapping>
45 -</web-app>