-
#!/bin/bash
#
exit 1
fi
- if [[ $minor_version -lt $MONO_VERSION_COMPAT_MINOR ]]; then
+ if [[ $major_version -eq $MONO_VERSION_COMPAT_MAJOR && \
+ $minor_version -lt $MONO_VERSION_COMPAT_MINOR ]]; then
echo "Minor Version Mismatch"
echo "expected:$MONO_VERSION_COMPAT_MINOR"
echo "installed:$minor_version"
<tag>HEAD</tag>
</scm>
- <groupId>org.opendaylight.vtn</groupId>
- <artifactId>application.vtnmanager-vsemprovider</artifactId>
- <version>1.0.0-SNAPSHOT</version>
- <packaging>pom</packaging>
+ <parent>
+ <groupId>org.opendaylight.vtn.application</groupId>
+ <artifactId>dist</artifactId>
+ <version>1.0.1-SNAPSHOT</version>
+ <relativePath>..</relativePath>
+ </parent>
+ <artifactId>application.vtnmanager-vsemprovider</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ <packaging>pom</packaging>
<properties>
<!-- Version of VTN VSEMProvider. -->
<vtn.VSEMProvider.version>1.0.0</vtn.VSEMProvider.version>
-
<!-- The number of GNU make jobs -->
<vtn.build.jobs>1</vtn.build.jobs>
<build>
<defaultGoal>package</defaultGoal>
<plugins>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>exec-maven-plugin</artifactId>
- <version>1.1</version>
- <executions>
- <execution>
- <id>exe</id>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>exec-maven-plugin</artifactId>
+ <version>${execplugin.version}</version>
+ <executions>
+ <execution>
+ <id>exe</id>
<phase>compile</phase>
<goals>
<goal>exec</goal>
<configuration>
<executable>make</executable>
</configuration>
- </execution>
+ </execution>
- <!-- Clean up build environment. -->
- <execution>
- <id>clean</id>
+ <!-- Clean up build environment. -->
+ <execution>
+ <id>clean</id>
<phase>pre-clean</phase>
<goals>
<goal>exec</goal>
<argument>clean</argument>
</arguments>
</configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
</build>
</project>
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>
-
-<!--
-#
-# Copyright (c) 2014-2015 NEC Corporation
-# All rights reserved.
-#
-# This program and the accompanying materials are made available under the
-# terms of the Eclipse Public License v1.0 which accompanies this
-# distribution, and is available at http://www.eclipse.org/legal/epl-v10.html
-#
--->
-
-<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">
- <modelVersion>4.0.0</modelVersion>
- <prerequisites>
- <maven>3.0</maven>
- </prerequisites>
-
- <parent>
- <groupId>org.opendaylight.vtn.application</groupId>
- <artifactId>dist</artifactId>
- <version>1.0.1-SNAPSHOT</version>
- <relativePath>../</relativePath>
- </parent>
-
- <artifactId>application.vtnmanager-listconfig.checkstyle</artifactId>
- <packaging>jar</packaging>
-
- <scm>
- <connection>scm:git:https://git.opendaylight.org/gerrit/p/vtn.git</connection>
- <developerConnection>scm:git:ssh://git.opendaylight.org:29418/vtn.git</developerConnection>
- <url>https://wiki.opendaylight.org/view/OpenDaylight_Virtual_Tenant_Network_%28VTN%29:Main</url>
- <tag>HEAD</tag>
- </scm>
-
- <properties>
- <nexusproxy>http://nexus.opendaylight.org/content</nexusproxy>
- <sitedeploy>
- dav:http://nexus.opendaylight.org/content/sites/site
- </sitedeploy>
- </properties>
-
- <distributionManagement>
- <!-- OpenDayLight Released artifact -->
- <repository>
- <id>opendaylight-release</id>
- <url>${nexusproxy}/repositories/opendaylight.release/</url>
- </repository>
-
- <!-- OpenDayLight Snapshot artifact -->
- <snapshotRepository>
- <id>opendaylight-snapshot</id>
- <url>${nexusproxy}/repositories/opendaylight.snapshot/</url>
- </snapshotRepository>
-
- <!-- Site deployment -->
- <site>
- <id>website</id>
- <url>${sitedeploy}</url>
- </site>
- </distributionManagement>
-</project>
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE module PUBLIC
- "-//Puppy Crawl//DTD Check Configuration 1.2//EN"
- "http://www.puppycrawl.com/dtds/configuration_1_2.dtd">
-
-<!--
-#
-# Copyright (c) 2014 NEC Corporation
-# All rights reserved.
-#
-# This program and the accompanying materials are made available under the
-# terms of the Eclipse Public License v1.0 which accompanies this
-# distribution, and is available at http://www.eclipse.org/legal/epl-v10.html
-#
--->
-
-<!-- Default checkstyle configuration for VTN Running application. -->
-
-<module name="Checker">
- <!-- Ensure that files end with a newline character. -->
- <module name="NewlineAtEndOfFile"/>
-
- <!-- Ensure that files don't contain tab character. -->
- <module name="FileTabCharacter">
- <property name="eachLine" value="true"/>
- </module>
-
- <module name="RegexpSingleline">
- <!-- \s matches whitespace character, $ matches end of line. -->
- <property name="format" value="\s+$"/>
- <property name="message" value="Line has trailing spaces."/>
- </module>
-</module>
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE module PUBLIC
- "-//Puppy Crawl//DTD Check Configuration 1.2//EN"
- "http://www.puppycrawl.com/dtds/configuration_1_2.dtd">
-
-<!--
-#
-# Copyright (c) 2014 NEC Corporation
-# All rights reserved.
-#
-# This program and the accompanying materials are made available under the
-# terms of the Eclipse Public License v1.0 which accompanies this
-# distribution, and is available at http://www.eclipse.org/legal/epl-v10.html
-#
--->
-
-<!-- Checkstyle configuration for VTN Running application project reporting. -->
-
-<module name="Checker">
- <!-- Ensure that files end with a newline character. -->
- <module name="NewlineAtEndOfFile"/>
-
- <!-- Ensure that property files contain the same keys. -->
- <module name="Translation"/>
-
- <!-- Checks for long source files. -->
- <module name="FileLength"/>
-
- <!-- Ensure that files don't contain tab character. -->
- <module name="FileTabCharacter">
- <property name="eachLine" value="true"/>
- </module>
-
- <module name="RegexpSingleline">
- <!-- \s matches whitespace character, $ matches end of line. -->
- <property name="format" value="\s+$"/>
- <property name="message" value="Line has trailing spaces."/>
- </module>
-
- <module name="TreeWalker">
- <property name="cacheFile" value="${checkstyle.cache.file}" />
-
- <!-- Checks for Javadoc comments. -->
- <module name="JavadocMethod">
- <property name="allowUndeclaredRTE" value="true" />
- <property name="allowThrowsTagsForSubclasses" value="true" />
- </module>
- <module name="JavadocType"/>
- <module name="JavadocVariable"/>
- <module name="JavadocStyle"/>
-
- <!-- Checks for naming conventions. -->
- <module name="ClassTypeParameterName"/>
- <module name="ConstantName"/>
- <module name="LocalFinalVariableName"/>
- <module name="LocalVariableName"/>
- <module name="MemberName"/>
- <module name="MethodName"/>
- <module name="MethodTypeParameterName"/>
- <module name="PackageName"/>
- <module name="ParameterName"/>
- <module name="StaticVariableName"/>
- <module name="TypeName"/>
-
- <!-- Checks for imports. -->
- <module name="AvoidStarImport"/>
- <module name="IllegalImport"/>
- <module name="RedundantImport"/>
- <module name="UnusedImports"/>
-
- <!-- Checks for size violations. -->
- <module name="LineLength">
- <property name="max" value="200" />
- <!-- Ignore import directives and annotations. -->
- <property name="ignorePattern" value="^(import .+|\s*@[a-zA-Z]+.*)$" />
- </module>
- <module name="MethodLength"/>
- <module name="ParameterNumber"/>
- <module name="AnonInnerLength"/>
-
- <!-- Checks for whitespace. -->
- <module name="GenericWhitespace"/>
- <module name="EmptyForIteratorPad"/>
- <module name="MethodParamPad" />
- <module name="NoWhitespaceAfter">
- <property name="tokens" value="ARRAY_INIT" />
- <property name="tokens" value="BNOT" />
- <property name="tokens" value="DEC" />
- <property name="tokens" value="DOT" />
- <property name="tokens" value="INC" />
- <property name="tokens" value="LNOT" />
- <property name="tokens" value="UNARY_MINUS" />
- <property name="tokens" value="UNARY_PLUS" />
- <property name="tokens" value="TYPECAST" />
- </module>
- <module name="NoWhitespaceBefore"/>
- <module name="ParenPad"/>
- <module name="TypecastParenPad"/>
- <module name="WhitespaceAfter">
- <property name="tokens" value="COMMA, SEMI" />
- </module>
- <module name="WhitespaceAround">
- <property name="tokens" value="ASSIGN" />
- <property name="tokens" value="BAND" />
- <property name="tokens" value="BAND_ASSIGN" />
- <property name="tokens" value="BOR" />
- <property name="tokens" value="BOR_ASSIGN" />
- <property name="tokens" value="BSR" />
- <property name="tokens" value="BSR_ASSIGN" />
- <property name="tokens" value="BXOR" />
- <property name="tokens" value="BXOR_ASSIGN" />
- <property name="tokens" value="COLON" />
- <property name="tokens" value="DIV" />
- <property name="tokens" value="DIV_ASSIGN" />
- <property name="tokens" value="EQUAL" />
- <property name="tokens" value="GE" />
- <property name="tokens" value="GT" />
- <property name="tokens" value="LAND" />
- <property name="tokens" value="LE" />
- <property name="tokens" value="LITERAL_ASSERT" />
- <property name="tokens" value="LITERAL_CATCH" />
- <property name="tokens" value="LITERAL_DO" />
- <property name="tokens" value="LITERAL_ELSE" />
- <property name="tokens" value="LITERAL_FINALLY" />
- <property name="tokens" value="LITERAL_FOR" />
- <property name="tokens" value="LITERAL_IF" />
- <property name="tokens" value="LITERAL_RETURN" />
- <property name="tokens" value="LITERAL_SYNCHRONIZED" />
- <property name="tokens" value="LITERAL_TRY" />
- <property name="tokens" value="LITERAL_WHILE" />
- <property name="tokens" value="LOR" />
- <property name="tokens" value="LT" />
- <property name="tokens" value="MINUS" />
- <property name="tokens" value="MINUS_ASSIGN" />
- <property name="tokens" value="MOD" />
- <property name="tokens" value="MOD_ASSIGN" />
- <property name="tokens" value="NOT_EQUAL" />
- <property name="tokens" value="PLUS" />
- <property name="tokens" value="PLUS_ASSIGN" />
- <property name="tokens" value="QUESTION" />
- <property name="tokens" value="SL" />
- <property name="tokens" value="SLIST" />
- <property name="tokens" value="SL_ASSIGN" />
- <property name="tokens" value="SR" />
- <property name="tokens" value="SR_ASSIGN" />
- <property name="tokens" value="STAR" />
- <property name="tokens" value="STAR_ASSIGN" />
- <property name="tokens" value="TYPE_EXTENSION_AND" />
- <property name="allowEmptyConstructors" value="true" />
- <property name="allowEmptyMethods" value="true" />
- <property name="ignoreEnhancedForColon" value="true" />
- </module>
-
- <!-- Modifier Checks. -->
- <module name="ModifierOrder"/>
- <module name="RedundantModifier"/>
-
- <!-- Checks for blocks. -->
- <module name="AvoidNestedBlocks"/>
- <module name="LeftCurly"/>
- <module name="NeedBraces"/>
- <module name="RightCurly"/>
-
- <!-- Checks for common coding problems. -->
- <module name="DefaultComesLast"/>
- <module name="EmptyStatement"/>
- <module name="EqualsHashCode"/>
- <module name="HiddenField">
- <property name="tokens" value="VARIABLE_DEF" />
- <property name="ignoreConstructorParameter" value="true" />
- <property name="ignoreSetter" value="true" />
- <property name="ignoreAbstractMethods" value="true" />
- </module>
- <module name="IllegalInstantiation"/>
- <module name="IllegalThrows"/>
- <module name="InnerAssignment"/>
- <module name="MagicNumber">
- <property name="ignoreAnnotation" value="true" />
- <property name="ignoreHashCodeMethod" value="true" />
- </module>
- <module name="MissingSwitchDefault"/>
- <module name="ParameterAssignment"/>
- <module name="RedundantThrows"/>
- <module name="SimplifyBooleanExpression"/>
- <module name="SimplifyBooleanReturn"/>
- <module name="StringLiteralEquality"/>
-
- <!-- Checks for class design. -->
- <module name="FinalClass"/>
- <module name="HideUtilityClassConstructor"/>
- <module name="InterfaceIsType"/>
- <module name="VisibilityModifier"/>
-
- <!-- Checks for complexity. -->
- <module name="BooleanExpressionComplexity"/>
- <module name="CyclomaticComplexity"/>
-
- <!-- Other checks. -->
- <module name="ArrayTypeStyle"/>
- <module name="Indentation">
- <property name="basicOffset" value="4" />
- <property name="braceAdjustment" value="0" />
- <property name="caseIndent" value="0" />
- <property name="throwsIndent" value="4" />
- </module>
- <module name="TrailingComment"/>
- <module name="UpperEll"/>
- </module>
-</module>
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE module PUBLIC
- "-//Puppy Crawl//DTD Check Configuration 1.2//EN"
- "http://www.puppycrawl.com/dtds/configuration_1_2.dtd">
-
-<!--
-#
-# Copyright (c) 2014 NEC Corporation
-# All rights reserved.
-#
-# This program and the accompanying materials are made available under the
-# terms of the Eclipse Public License v1.0 which accompanies this
-# distribution, and is available at http://www.eclipse.org/legal/epl-v10.html
-#
--->
-
-<!-- Checkstyle configuration for strict coding style check. -->
-
-<module name="Checker">
- <!-- Ensure that files end with a newline character. -->
- <module name="NewlineAtEndOfFile"/>
-
- <!-- Ensure that property files contain the same keys. -->
- <module name="Translation"/>
-
- <!-- Ensure that files don't contain tab character. -->
- <module name="FileTabCharacter">
- <property name="eachLine" value="true"/>
- </module>
-
- <module name="RegexpSingleline">
- <!-- \s matches whitespace character, $ matches end of line. -->
- <property name="format" value="\s+$"/>
- <property name="message" value="Line has trailing spaces."/>
- </module>
-
- <module name="TreeWalker">
- <property name="cacheFile" value="${checkstyle.cache.file}" />
-
- <!-- Checks for naming conventions. -->
- <module name="ClassTypeParameterName"/>
- <module name="ConstantName"/>
- <module name="LocalFinalVariableName"/>
- <module name="LocalVariableName"/>
- <module name="MemberName"/>
- <module name="MethodName"/>
- <module name="MethodTypeParameterName"/>
- <module name="PackageName"/>
- <module name="ParameterName"/>
- <module name="StaticVariableName"/>
- <module name="TypeName"/>
-
- <!-- Checks for imports. -->
- <module name="AvoidStarImport"/>
- <module name="IllegalImport"/>
- <module name="RedundantImport"/>
- <module name="UnusedImports"/>
-
- <!-- Checks for size violations. -->
- <module name="LineLength">
- <property name="max" value="200" />
- <!-- Ignore import directives and annotations. -->
- <property name="ignorePattern" value="^(import .+|\s*@[a-zA-Z]+.*)$" />
- </module>
- <module name="AnonInnerLength"/>
-
- <!-- Checks for whitespace. -->
- <module name="GenericWhitespace"/>
- <module name="EmptyForIteratorPad"/>
- <module name="MethodParamPad" />
- <module name="NoWhitespaceAfter">
- <property name="tokens" value="ARRAY_INIT" />
- <property name="tokens" value="BNOT" />
- <property name="tokens" value="DEC" />
- <property name="tokens" value="DOT" />
- <property name="tokens" value="INC" />
- <property name="tokens" value="LNOT" />
- <property name="tokens" value="UNARY_MINUS" />
- <property name="tokens" value="UNARY_PLUS" />
- <property name="tokens" value="TYPECAST" />
- </module>
- <module name="NoWhitespaceBefore"/>
- <module name="ParenPad"/>
- <module name="TypecastParenPad"/>
- <module name="WhitespaceAfter">
- <property name="tokens" value="COMMA, SEMI" />
- </module>
- <module name="WhitespaceAround">
- <property name="tokens" value="ASSIGN" />
- <property name="tokens" value="BAND" />
- <property name="tokens" value="BAND_ASSIGN" />
- <property name="tokens" value="BOR" />
- <property name="tokens" value="BOR_ASSIGN" />
- <property name="tokens" value="BSR" />
- <property name="tokens" value="BSR_ASSIGN" />
- <property name="tokens" value="BXOR" />
- <property name="tokens" value="BXOR_ASSIGN" />
- <property name="tokens" value="COLON" />
- <property name="tokens" value="DIV" />
- <property name="tokens" value="DIV_ASSIGN" />
- <property name="tokens" value="EQUAL" />
- <property name="tokens" value="GE" />
- <property name="tokens" value="GT" />
- <property name="tokens" value="LAND" />
- <property name="tokens" value="LE" />
- <property name="tokens" value="LITERAL_ASSERT" />
- <property name="tokens" value="LITERAL_CATCH" />
- <property name="tokens" value="LITERAL_DO" />
- <property name="tokens" value="LITERAL_ELSE" />
- <property name="tokens" value="LITERAL_FINALLY" />
- <property name="tokens" value="LITERAL_FOR" />
- <property name="tokens" value="LITERAL_IF" />
- <property name="tokens" value="LITERAL_RETURN" />
- <property name="tokens" value="LITERAL_SYNCHRONIZED" />
- <property name="tokens" value="LITERAL_TRY" />
- <property name="tokens" value="LITERAL_WHILE" />
- <property name="tokens" value="LOR" />
- <property name="tokens" value="LT" />
- <property name="tokens" value="MINUS" />
- <property name="tokens" value="MINUS_ASSIGN" />
- <property name="tokens" value="MOD" />
- <property name="tokens" value="MOD_ASSIGN" />
- <property name="tokens" value="NOT_EQUAL" />
- <property name="tokens" value="PLUS" />
- <property name="tokens" value="PLUS_ASSIGN" />
- <property name="tokens" value="QUESTION" />
- <property name="tokens" value="SL" />
- <property name="tokens" value="SLIST" />
- <property name="tokens" value="SL_ASSIGN" />
- <property name="tokens" value="SR" />
- <property name="tokens" value="SR_ASSIGN" />
- <property name="tokens" value="STAR" />
- <property name="tokens" value="STAR_ASSIGN" />
- <property name="tokens" value="TYPE_EXTENSION_AND" />
- <property name="allowEmptyConstructors" value="true" />
- <property name="allowEmptyMethods" value="true" />
- <property name="ignoreEnhancedForColon" value="true" />
- </module>
-
- <!-- Modifier Checks. -->
- <module name="ModifierOrder"/>
- <module name="RedundantModifier"/>
-
- <!-- Checks for blocks. -->
- <module name="AvoidNestedBlocks"/>
- <module name="LeftCurly"/>
- <module name="NeedBraces"/>
- <module name="RightCurly"/>
-
- <!-- Checks for common coding problems. -->
- <module name="DefaultComesLast"/>
- <module name="EmptyStatement"/>
- <module name="EqualsHashCode"/>
- <module name="HiddenField">
- <property name="tokens" value="VARIABLE_DEF" />
- <property name="ignoreConstructorParameter" value="true" />
- <property name="ignoreSetter" value="true" />
- <property name="ignoreAbstractMethods" value="true" />
- </module>
- <module name="IllegalInstantiation"/>
- <module name="IllegalThrows"/>
- <module name="InnerAssignment"/>
- <module name="MissingSwitchDefault"/>
- <module name="SimplifyBooleanExpression"/>
- <module name="SimplifyBooleanReturn"/>
- <module name="StringLiteralEquality"/>
-
- <!-- Checks for class design. -->
- <module name="HideUtilityClassConstructor"/>
- <module name="InterfaceIsType"/>
-
- <!-- Other checks. -->
- <module name="ArrayTypeStyle"/>
- <module name="Indentation">
- <property name="basicOffset" value="4" />
- <property name="braceAdjustment" value="0" />
- <property name="caseIndent" value="0" />
- <property name="throwsIndent" value="4" />
- </module>
- <module name="TrailingComment"/>
- <module name="UpperEll"/>
- </module>
-</module>
-<?xml version="1.0" encoding="UTF-8"?><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/maven-v4_0_0.xsd">
-
- <parent>
- <groupId>org.opendaylight.vtn.application</groupId>
- <artifactId>dist</artifactId>
- <version>1.0.1-SNAPSHOT</version>
- <relativePath>../</relativePath>
- </parent>
-
- <modelVersion>4.0.0</modelVersion>
- <artifactId>application.vtnmanager-listconfig</artifactId>
- <packaging>jar</packaging>
-
- <properties>
- <jdk.version>1.7</jdk.version>
- <junit.version>4.11</junit.version>
- <slf4j.version>1.7.9</slf4j.version>
- <ch.qos.logback.version>1.1.2</ch.qos.logback.version>
- <checkstyle.version>2.12</checkstyle.version>
-
- <!-- Default checkstyle configuration -->
- <vtn.checkstyle.xml>vtn/checkstyle.xml</vtn.checkstyle.xml>
- </properties>
-
- <dependencies>
- <dependency>
- <groupId>org.json</groupId>
- <artifactId>json</artifactId>
- <version>20140107</version>
- </dependency>
-
- <dependency>
- <groupId>com.sun.jersey</groupId>
- <artifactId>jersey-client</artifactId>
- <version>1.9.1</version>
- </dependency>
-
- <dependency>
- <groupId>com.google.code.gson</groupId>
- <artifactId>gson</artifactId>
- <version>2.3.1</version>
- </dependency>
-
- <dependency>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-clean-plugin</artifactId>
- <version>2.4.1</version>
- </dependency>
-
- <dependency>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-resources-plugin</artifactId>
- <version>2.5</version>
- </dependency>
-
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>${junit.version}</version>
- <scope>test</scope>
- </dependency>
-
- <dependency>
- <groupId>org.slf4j</groupId>
- <artifactId>slf4j-api</artifactId>
- <version>${slf4j.version}</version>
- </dependency>
-
- <dependency>
- <groupId>org.slf4j</groupId>
- <artifactId>jcl-over-slf4j</artifactId>
- <version>${slf4j.version}</version>
- </dependency>
-
- <dependency>
- <groupId>org.slf4j</groupId>
- <artifactId>log4j-over-slf4j</artifactId>
- <version>${slf4j.version}</version>
- </dependency>
-
- <dependency>
- <groupId>ch.qos.logback</groupId>
- <artifactId>logback-core</artifactId>
- <version>${ch.qos.logback.version}</version>
- </dependency>
-
- <dependency>
- <groupId>ch.qos.logback</groupId>
- <artifactId>logback-classic</artifactId>
- <version>${ch.qos.logback.version}</version>
- </dependency>
- </dependencies>
-
- <profiles>
- <profile>
- <!-- Run strict coding style check -->
- <id>strictcheck</id>
- <activation>
- <activeByDefault>false</activeByDefault>
- </activation>
- <properties>
- <vtn.checkstyle.xml>vtn/checkstyle_strict.xml</vtn.checkstyle.xml>
- </properties>
- </profile>
- </profiles>
-
- <build>
- <finalName>VTNRESTClient</finalName>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-checkstyle-plugin</artifactId>
- <version>${checkstyle.version}</version>
-
- <dependencies>
- <dependency>
- <groupId>org.opendaylight.vtn.application</groupId>
- <artifactId>application.vtnmanager-listconfig.checkstyle</artifactId>
- <version>${project.version}</version>
- </dependency>
- </dependencies>
-
- <executions>
- <execution>
- <phase>process-sources</phase>
- <goals>
- <goal>check</goal>
- </goals>
- </execution>
- </executions>
-
- <configuration>
- <failsOnError>true</failsOnError>
- <configLocation>${vtn.checkstyle.xml}</configLocation>
- <consoleOutput>true</consoleOutput>
- <includeTestSourceDirectory>true</includeTestSourceDirectory>
- <sourceDirectory>${project.basedir}</sourceDirectory>
- <includes>**\/*.java,**\/*.xml,**\/*.ini,**\/*.sh,**\/*.bat</includes>
- <excludes>**\/target\/</excludes>
- </configuration>
- </plugin>
-
- <!-- download source code in Eclipse, best practice -->
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-eclipse-plugin</artifactId>
- <version>2.9</version>
- <configuration>
- <downloadSources>true</downloadSources>
- <downloadJavadocs>false</downloadJavadocs>
- </configuration>
- </plugin>
-
- <!-- Make this jar executable -->
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-jar-plugin</artifactId>
- <version>2.4</version>
-
- <configuration>
- <!-- DO NOT include log4j.properties file in your Jar -->
- <excludes>
- <exclude>**/log4j.properties</exclude>
- </excludes>
- <archive>
- <manifest>
- <addClasspath>true</addClasspath>
- <!-- Jar file entry point -->
- <mainClass>org.opendaylight.vtn.app.run.config.rest.client.RESTClient</mainClass>
- <classpathPrefix>libs/</classpathPrefix>
- </manifest>
- </archive>
- </configuration>
- </plugin>
-
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-dependency-plugin</artifactId>
- <executions>
- <execution>
- <id>copy-dependencies</id>
- <phase>package</phase>
- <goals>
- <goal>copy-dependencies</goal>
- </goals>
- <configuration>
- <outputDirectory>${project.build.directory}/libs/</outputDirectory>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+#
+# Copyright (c) 2014-2015 NEC Corporation
+# All rights reserved.
+#
+# This program and the accompanying materials are made available under the
+# terms of the Eclipse Public License v1.0 which accompanies this
+# distribution, and is available at http://www.eclipse.org/legal/epl-v10.html
+#
+-->
+
+<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>
+ <groupId>org.opendaylight.vtn.application</groupId>
+ <artifactId>dist</artifactId>
+ <version>1.0.1-SNAPSHOT</version>
+ <relativePath>..</relativePath>
+ </parent>
+
+ <modelVersion>4.0.0</modelVersion>
+ <artifactId>application.vtnmanager-listconfig</artifactId>
+ <packaging>jar</packaging>
+
+ <scm>
+ <connection>scm:git:https://git.opendaylight.org/gerrit/p/vtn.git</connection>
+ <developerConnection>scm:git:ssh://git.opendaylight.org:29418/vtn.git</developerConnection>
+ <url>https://wiki.opendaylight.org/view/OpenDaylight_Virtual_Tenant_Network_%28VTN%29:Main</url>
+ <tag>HEAD</tag>
+ </scm>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.json</groupId>
+ <artifactId>json</artifactId>
+ <version>20140107</version>
+ </dependency>
+
+ <dependency>
+ <groupId>com.sun.jersey</groupId>
+ <artifactId>jersey-client</artifactId>
+ <version>1.9.1</version>
+ </dependency>
+
+ <dependency>
+ <groupId>com.google.code.gson</groupId>
+ <artifactId>gson</artifactId>
+ <version>2.3.1</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-api</artifactId>
+ </dependency>
+
+ <dependency>
+ <groupId>org.slf4j</groupId>
+ <artifactId>jcl-over-slf4j</artifactId>
+ </dependency>
+
+ <dependency>
+ <groupId>org.slf4j</groupId>
+ <artifactId>log4j-over-slf4j</artifactId>
+ </dependency>
+
+ <dependency>
+ <groupId>ch.qos.logback</groupId>
+ <artifactId>logback-core</artifactId>
+ </dependency>
+
+ <dependency>
+ <groupId>ch.qos.logback</groupId>
+ <artifactId>logback-classic</artifactId>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <finalName>VTNRESTClient</finalName>
+ <plugins>
+ <!-- download source code in Eclipse, best practice -->
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-eclipse-plugin</artifactId>
+ <version>2.9</version>
+ <configuration>
+ <downloadSources>true</downloadSources>
+ <downloadJavadocs>false</downloadJavadocs>
+ </configuration>
+ </plugin>
+
+ <!-- Make this jar executable -->
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-jar-plugin</artifactId>
+ <version>2.4</version>
+
+ <configuration>
+ <!-- DO NOT include log4j.properties file in your Jar -->
+ <excludes>
+ <exclude>**/log4j.properties</exclude>
+ </excludes>
+ <archive>
+ <manifest>
+ <addClasspath>true</addClasspath>
+ <!-- Jar file entry point -->
+ <mainClass>org.opendaylight.vtn.app.run.config.rest.client.RESTClient</mainClass>
+ <classpathPrefix>libs/</classpathPrefix>
+ </manifest>
+ </archive>
+ </configuration>
+ </plugin>
+
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-dependency-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>copy-dependencies</id>
+ <phase>package</phase>
+ <goals>
+ <goal>copy-dependencies</goal>
+ </goals>
+ <configuration>
+ <outputDirectory>${project.build.directory}/libs/</outputDirectory>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
</project>
-/**
- * Copyright (c) 2014 NEC Corporation
+/*
+ * Copyright (c) 2014-2015 NEC Corporation
* All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this
* distribution, and is available at http://www.eclipse.org/legal/epl-v10.html
*/
+
package org.opendaylight.vtn.app.run.config.json.annotations;
import java.lang.annotation.ElementType;
import java.lang.annotation.Target;
/**
- *JsonArray - Annotation which helps to determine the response is an array to
+ * JsonArray - Annotation which helps to determine the response is an array to
* Parser.
- * @author
- *
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
public @interface JsonArray {
/**
* name attribute to get the array name.
- * @return
+ * @return The array name.
*/
String name();
}
-/**
- * Copyright (c) 2014 NEC Corporation
+/*
+ * Copyright (c) 2014-2015 NEC Corporation
* All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this
* distribution, and is available at http://www.eclipse.org/legal/epl-v10.html
*/
+
package org.opendaylight.vtn.app.run.config.json.annotations;
import java.lang.annotation.ElementType;
import java.lang.annotation.Target;
/**
- *
* JsonElement Interface provides functions to for name and defaultvalue to set
* in the implementation.
- *
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
/**
* name - provides api to set the name in the implementation.
- * @return
+ * @return The element name.
*/
String name();
/**
* defaultValue - provide api to set the defaultValue in the implementation.
- * @return
+ * @return The default value.
*/
String defaultValue() default "";
}
-/**
+/*
* Copyright (c) 2014-2015 NEC Corporation
* All rights reserved.
*
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
-import org.opendaylight.vtn.app.run.config.rest.enumgroups.APPLICATION_TYPE;
+import org.opendaylight.vtn.app.run.config.rest.enumgroups.ApplicationType;
import org.opendaylight.vtn.app.run.config.rest.enumgroups.RestURL;
import org.opendaylight.vtn.app.run.config.rest.output.format.beans.VBridgeBean;
import org.opendaylight.vtn.app.run.config.rest.output.format.beans.VBridgeInterfaceBean;
LOG.warn("Invalid server URL : {}", serverUrl);
throw new VTNClientException("Invalid server URL");
}
- client = new CRUDImpl(APPLICATION_TYPE.JSON, userName, password);
+ client = new CRUDImpl(ApplicationType.JSON, userName, password);
parser = new Parser();
}
* @param restObject
* @param headers
* @param paramName
- * @param restObject
* @param paramValue
* @return {@link Object}
* @throws Exception
* GET - get operation method to communicate the server to fetch the result for requested URI.
* @param restObject
* @param paramMap
- * @return
+ * @return The value of the requested URI.
* @throws JSONException
* @throws Exception
* @throws IllegalArgumentException
* @param value1
* @param param2
* @param value2
- * @return
+ * @return The value of the requested URI.
* @throws JSONException
* @throws Exception
* @throws IllegalArgumentException
* @param value1
* @param param2
* @param value2
- * @return
+ * @return The value of the requested URI.
* @throws JSONException
* @throws Exception
* @throws IllegalArgumentException
* @param restObject
* @param paramMap
* @param headers
- * @return
+ * @return The value of the requested URI.
* @throws Exception
* @throws JSONException
* @throws IllegalArgumentException
* parseResponse - parse response which received from the get opertaion.
* @param target
* @param request
- * @return
+ * @return The parsed response.
* @throws JSONException
* @throws IllegalArgumentException
* @throws IllegalAccessException
/**
* getserverUrl - to get the server URL.
- * @return
+ * @return The server URL.
*/
public String getServerUrl() {
return serverUrl;
-/**
- * Copyright (c) 2014 NEC Corporation
+/*
+ * Copyright (c) 2014-2015 NEC Corporation
* All rights reserved.
*
* This program and the accompanying materials are made available under the
package org.opendaylight.vtn.app.run.config.rest.enumgroups;
/**
- * APPLICATIOM_TYPE - enum which helps to set the content type of the request.
+ * ApplicationType - enum which helps to set the content type of the request.
*
*/
-public enum APPLICATION_TYPE {
+public enum ApplicationType {
/**
* Content type formats either String /json format.
*/
STRING("application/string"), JSON("application/json");
/**
- * APPLICATION_TYPE - parameterized constructor.
+ * ApplicationType - parameterized constructor.
* @param type {@link String}
*/
- private APPLICATION_TYPE(String type) {
+ private ApplicationType(String type) {
this.type = type;
}
-/**
- * Copyright (c) 2014 NEC Corporation
+/*
+ * Copyright (c) 2014-2015 NEC Corporation
* All rights reserved.
*
* This program and the accompanying materials are made available under the
package org.opendaylight.vtn.app.run.config.rest.enumgroups;
/**
- *HTTP_RESPONSE - http response codes are maintained to return the corresponding values.
+ * HttpResponse - http response codes are maintained to return the
+ * corresponding values.
*
*/
-public enum HTTP_RESPONSE {
+public enum HttpResponse {
/**
* For Success operation.
UNAUTHORIZED(401, "Action requires user authentication");
/**
- * HTTP_RESPONSE parameterized constructor.
+ * HttpResponse parameterized constructor.
* @param status {@link Integer}
* @param description {@link String}
*/
- private HTTP_RESPONSE(int status, String description) {
+ private HttpResponse(int status, String description) {
this.status = status;
this.description = description;
}
private String description = null;
/**
- * get teh status of the operation.
- * @return
+ * get the status of the operation.
+ * @return The status of the operation.
*/
public int getStatus() {
return status;
}
/**
- * get description of the operaiton.
- * @return
+ * get description of the operation.
+ * @return Description of the operation
*/
public String getDescription() {
return description;
/**
* HTTP_getResponse - function to get the response of the request.
* @param status
- * @return
+ * @return The response of the request.
*/
- public HTTP_RESPONSE getResponse(int status) {
- for (HTTP_RESPONSE resp :values()) {
+ public HttpResponse getResponse(int status) {
+ for (HttpResponse resp :values()) {
if (resp.getStatus() == status) {
return resp;
}
-/**
+/*
* Copyright (c) 2014-2015 NEC Corporation
* All rights reserved.
*
/**
* get the state of the VBridge.
*
- * @return {@link int}
+ * @return The state of the vBridge.
*/
public int getState() {
return state;
/**
* set the state of the VBridge.
*
- * @param state
- * {@link int}
+ * @param state The state of the vBridge.
*/
public void setState(int state) {
this.state = state;
/**
* get the Entitystate of the VBridge.
*
- * @return {@link int}
+ * @return The entity state.
*/
public int getEntityState() {
return entityState;
/**
* set the Entitystate of the VBridge.
*
- * @param entityState
- * {@link int}
+ * @param entityState The entity state.
*/
public void setEntityState(int entityState) {
this.entityState = entityState;
/**
* Check if VBridge isEnabled
*
- * @return {@link boolean}
+ * @return A boolean value which indicates the enabled state.
*/
public boolean isEnabled() {
return enabled;
/**
* Enable or Disable VBridge
*
- * @param enabled
- * {@link boolean}
+ * @param enabled A boolean value which indicates the enabled state.
*/
public void setEnabled(boolean enabled) {
this.enabled = enabled;
-/**
+/*
* Copyright (c) 2015 NEC Corporation
* All rights reserved.
*
/**
* get the state of the VTermainal.
*
- * @return {@link int}
+ * @return The state of the vTerminal.
*/
public int getState() {
return state;
/**
* set the state of the VTermainal.
*
- * @param state
- * {@link int}
+ * @param state The state of the vTerminal.
*/
public void setState(int state) {
this.state = state;
/**
* get the Entitystate of the VTermainal.
*
- * @return {@link int}
+ * @return The entity state.
*/
public int getEntityState() {
return entityState;
/**
* set the Entitystate of the VTermainal.
*
- * @param entityState
- * {@link int}
+ * @param entityState The entity state.
*/
public void setEntityState(int entityState) {
this.entityState = entityState;
/**
* Check if VTermainal isEnabled
*
- * @return {@link boolean}
+ * @return A boolean value which indicates the enabled state.
*/
public boolean isEnabled() {
return enabled;
/**
* Enable or Disable VTermainal
*
- * @param enabled
- * {@link boolean}
+ * @param enabled A boolean value which indicates the enabled state.
*/
public void setEnabled(boolean enabled) {
this.enabled = enabled;
-/**
- * Copyright (c) 2014 NEC Corporation
+/*
+ * Copyright (c) 2014-2015 NEC Corporation
* All rights reserved.
*
* This program and the accompanying materials are made available under the
import com.sun.jersey.api.client.filter.HTTPBasicAuthFilter;
import org.opendaylight.vtn.app.run.config.rest.client.CRUDOperation;
import org.opendaylight.vtn.app.run.config.rest.client.VTNClientException;
-import org.opendaylight.vtn.app.run.config.rest.enumgroups.APPLICATION_TYPE;
-import org.opendaylight.vtn.app.run.config.rest.enumgroups.HTTP_RESPONSE;
+import org.opendaylight.vtn.app.run.config.rest.enumgroups.ApplicationType;
+import org.opendaylight.vtn.app.run.config.rest.enumgroups.HttpResponse;
public class CRUDImpl implements CRUDOperation {
public static final String HTTP_STATUS_DESCR = "response_description";
public static final String HTTP_STATUS = "response_status";
- private APPLICATION_TYPE appType = null;
+ private ApplicationType appType = null;
private String userName;
private String password;
* @param userName - username of the controller to connect to the server.
* @param password - password of the controller to connect to the server.
*/
- public CRUDImpl(APPLICATION_TYPE appType, String userName, String password) {
+ public CRUDImpl(ApplicationType appType, String userName, String password) {
this.appType = appType;
this.client = Client.create();
this.userName = userName;
/**
* To create a JSON object for a particular HTTP response
* @param response
- * HTTP_RESPONSE
+ * HttpResponse
* @return
* JSONObject
* @throws JSONException
*/
- private JSONObject getHttpResponseObject(HTTP_RESPONSE response) throws JSONException {
+ private JSONObject getHttpResponseObject(HttpResponse response) throws JSONException {
JSONObject object = new JSONObject();
object.put(HTTP_STATUS_DESCR, response.getDescription());
object.put(HTTP_STATUS, response.getStatus());
public String doGET(String url, Map<String, Object> headers) throws VTNClientException, JSONException, ConnectException {
try {
ClientResponse response = getWebResource(url, null, headers).accept(appType.getType()).get(ClientResponse.class);
- if (response.getStatus() == HTTP_RESPONSE.NO_CONTENT.getStatus()) {
- return getHttpResponseObject(HTTP_RESPONSE.NO_CONTENT).toString();
+ if (response.getStatus() == HttpResponse.NO_CONTENT.getStatus()) {
+ return getHttpResponseObject(HttpResponse.NO_CONTENT).toString();
} else {
- if (response.getStatus() == HTTP_RESPONSE.UNAUTHORIZED.getStatus()) {
+ if (response.getStatus() == HttpResponse.UNAUTHORIZED.getStatus()) {
LOG.error("Unauthorized access :HTTP error code : {}", response.getStatus());
- LOG.error(getHttpResponseObject(HTTP_RESPONSE.UNAUTHORIZED).toString());
+ LOG.error(getHttpResponseObject(HttpResponse.UNAUTHORIZED).toString());
throw new VTNClientException("\n\nFailed to connect to ODL Controller due to unauthorized access..."
+ "\nPlease check Username/Password...");
- } else if (response.getStatus() != HTTP_RESPONSE.OPERATION_SUCCESS.getStatus()) {
+ } else if (response.getStatus() != HttpResponse.OPERATION_SUCCESS.getStatus()) {
LOG.error("GET RequestFailed :HTTP error code : {}", response.getStatus());
throw new VTNClientException("\n\nPage not found - " + response.getStatus());
}
-/**
+/*
* Copyright (c) 2014-2015 NEC Corporation
* All rights reserved.
*
/**
* Type conversion of parsed json object.
*
- * @param obj
- * @param json
- *
+ * @param object
+ * @param field
+ * @param fieldValue
*/
private void parseToRespectiveObject(Object object, Field field,
String fieldValue) {
-/**
- * Copyright (c) 2014 NEC Corporation
+/*
+ * Copyright (c) 2014-2015 NEC Corporation
* All rights reserved.
*
* This program and the accompanying materials are made available under the
/**
* setResponse - to set the response.
- * @param response.
+ * @param response
*/
public void setResponse(String response) {
this.response = response;
/**
* setResponse - to set the response.
- * @param paramName, paramValue
+ * @param paramName
+ * @param paramValue
*/
public void setURLParam(String paramName, String paramValue) {
if (url.contains(PARAM_DELIM_START + paramName + PARAM_DELIM_END)) {
-/**
- * Copyright (c) 2014 NEC Corporation
+/*
+ * Copyright (c) 2014-2015 NEC Corporation
* All rights reserved.
*
* This program and the accompanying materials are made available under the
/**
* getMachost - function to get the machost.
- * @return {@link machost}
+ * @return A list of {@link MacHost}
*/
public List<MacHost> getMachost() {
return machost;
-/**
- * Copyright (c) 2014 NEC Corporation
+/*
+ * Copyright (c) 2014-2015 NEC Corporation
* All rights reserved.
*
* This program and the accompanying materials are made available under the
/**
* getMajor - function to get the major values.
- * @return {@link int}
+ * @return The major version of the bundle.
*/
public int getMajor() {
return major;
/**
* setMajor - function to set a value for major.
- * @param major {@link int}
+ * @param major The major version of the bundle.
*/
public void setMajor(int major) {
this.major = major;
/**
* getMinor - function to get the value for minor.
- * @return {@link int}
+ * @return The minor version of the bundle.
*/
public int getMinor() {
return minor;
/**
* setMinor - function to set a value for minor.
- * @param minor
+ * @param minor The minor version of the bundle.
*/
public void setMinor(int minor) {
this.minor = minor;
/**
* getMicro - function to get the value for micro.
- * @return {@link int}
+ * @return The micro version of the bundle.
*/
public int getMicro() {
return micro;
/**
* setMicro - function to set a value for micro.
- * @param micro {@link int}
+ * @param micro The micro version of the bundle.
*/
public void setMicro(int micro) {
this.micro = micro;
-/**
- * Copyright (c) 2014 NEC Corporation
+/*
+ * Copyright (c) 2014-2015 NEC Corporation
* All rights reserved.
*
* This program and the accompanying materials are made available under the
/**
* getIndex - function to get the index values.
*
- * @return {@link int}
+ * @return The index for the path map.
*/
public int getIndex() {
return index;
/**
* getPolicy - function to get the policy set.
*
- * @return {@link int}
+ * @return The identifier for the path policy.
*/
public int getPolicy() {
return policy;
/**
* getIdleTimeout - function to get the idleTimeout set.
*
- * @return {@link int}
+ * @return The idle timeout.
*/
public int getIdleTimeout() {
return idleTimeout;
/**
* getHardTimeout - function to get the hardTimeout set.
*
- * @return {@link int}
+ * @return The hard timeout.
*/
public int getHardTimeout() {
return hardTimeout;
-/**
- * Copyright (c) 2014 NEC Corporation
+/*
+ * Copyright (c) 2014-2015 NEC Corporation
* All rights reserved.
*
* This program and the accompanying materials are made available under the
/**
* getCost - function to get the cost values.
*
- * @return {@link int}
+ * @return The link cost value.
*/
public int getCost() {
return cost;
-/**
- * Copyright (c) 2014 NEC Corporation
+/*
+ * Copyright (c) 2014-2015 NEC Corporation
* All rights reserved.
*
* This program and the accompanying materials are made available under the
/**
* getId - function to get the id.
*
- * @return {@link int}
+ * @return The identifier of the data flow.
*/
public long getId() {
return id;
/**
* getCreationTime - function to get the creationTime.
*
- * @return {@link int}
+ * @return The system time when the data flow was created.
*/
public long getCreationTime() {
return creationTime;
/**
* getIdleTimeout - function to get the idleTimeout.
*
- * @return {@link int}
+ * @return The idle timeout value.
*/
public int getIdleTimeout() {
return idleTimeout;
/**
* getHardTimeout - function to get the hardTimeout.
*
- * @return {@link int}
+ * @return The hard timeout value.
*/
public int getHardTimeout() {
return hardTimeout;
/**
* getInNode - function to get the inNode.
*
- * @return {@link int}
+ * @return {@link IngressNode}
*/
public IngressNode getInNode() {
return inNode;
/**
* getId - function to get the id.
*
- * @return {@link int}
+ * @return {@link Match}
*/
public Match getMatchobj() {
return matchobj;
-/**
+/*
* Copyright (c) 2015 NEC Corporation
* All rights reserved.
*
/**
* getDscp - function to get the dscp value for this object.
*
- * @return {@link int}
+ * @return The DSCP field value.
*/
public int getDscp() {
return dscp;
-/**
- * Copyright (c) 2014 NEC Corporation
+/*
+ * Copyright (c) 2014-2015 NEC Corporation
* All rights reserved.
*
* This program and the accompanying materials are made available under the
/**
* getIndex - function to get the index values for this object.
*
- * @return {@link int}
+ * @return The index for the flow filter.
*/
public int getIndex() {
return index;
-/**
- * Copyright (c) 2014 NEC Corporation
+/*
+ * Copyright (c) 2014-2015 NEC Corporation
* All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this
* distribution, and is available at http://www.eclipse.org/legal/epl-v10.html
*/
+
package org.opendaylight.vtn.app.run.config.rest.response.beans;
import org.opendaylight.vtn.app.run.config.json.annotations.JsonElement;
/**
* getIndex - function to get the type value for this object.
*
- * @return {@link int}
+ * @return The ICMP type.
*/
public int getType() {
return type;
/**
* getCode - function to get the code values for this object.
*
- * @return {@link int}
+ * @return The ICMP code.
*/
public int getCode() {
return code;
-/**
+/*
* Copyright (c) 2015 NEC Corporation
* All rights reserved.
*
/**
* getCode - function to get the code value for this object.
*
- * @return {@link int}
+ * @return The ICMP code.
*/
public int getCode() {
return code;
-/**
+/*
* Copyright (c) 2015 NEC Corporation
* All rights reserved.
*
/**
* getDscp - function to get the type value for this object.
*
- * @return {@link int}
+ * @return The ICMP type.
*/
public int getType() {
return type;
-/**
- * Copyright (c) 2014 NEC Corporation
+/*
+ * Copyright (c) 2014-2015 NEC Corporation
* All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this
* distribution, and is available at http://www.eclipse.org/legal/epl-v10.html
*/
+
package org.opendaylight.vtn.app.run.config.rest.response.beans;
import java.io.Serializable;
/**
* getValue - function to get the values for this object.
*
- * @return {@link int}
+ * @return The index value.
*/
public int getValue() {
return value;
-/**
+/*
* Copyright (c) 2014-2015 NEC Corporation
* All rights reserved.
*
* terms of the Eclipse Public License v1.0 which accompanies this
* distribution, and is available at http://www.eclipse.org/legal/epl-v10.html
*/
+
package org.opendaylight.vtn.app.run.config.rest.response.beans;
import org.opendaylight.vtn.app.run.config.json.annotations.JsonElement;
/**
* getProtocol - function to get the protocol values for this object.
*
- * @return {@link int}
+ * @return The protocol number.
*/
public int getProtocol() {
return protocol;
-/**
- * Copyright (c) 2014 NEC Corporation
+/*
+ * Copyright (c) 2014-2015 NEC Corporation
* All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this
* distribution, and is available at http://www.eclipse.org/legal/epl-v10.html
*/
+
package org.opendaylight.vtn.app.run.config.rest.response.beans;
import java.util.ArrayList;
/**
* getInetAddress - function to get the inetAddress values for this object.
*
- * @return {@link int}
+ * @return A list of {@link InetAddressDetailsList}.
*/
public List<InetAddressDetailsList> getInetAddress() {
return inetAddress;
-/**
- * Copyright (c) 2014 NEC Corporation
+/*
+ * Copyright (c) 2014-2015 NEC Corporation
* All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this
* distribution, and is available at http://www.eclipse.org/legal/epl-v10.html
*/
+
package org.opendaylight.vtn.app.run.config.rest.response.beans;
import org.opendaylight.vtn.app.run.config.json.annotations.JsonObject;
/**
* getInet - function to get the inet4 values for this object.
*
- * @return {@link int}
+ * @return {@link Inet}
*/
public Inet getInet() {
return inet4;
-/**
- * Copyright (c) 2014 NEC Corporation
+/*
+ * Copyright (c) 2014-2015 NEC Corporation
* All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this
* distribution, and is available at http://www.eclipse.org/legal/epl-v10.html
*/
+
package org.opendaylight.vtn.app.run.config.rest.response.beans;
import org.opendaylight.vtn.app.run.config.json.annotations.JsonElement;
/**
* getId - function to get the id for this object.
*
- * @return {@link int}
+ * @return The identifier of the switch port.
*/
public String getId() {
return id;
-/**
- * Copyright (c) 2014 NEC Corporation
+/*
+ * Copyright (c) 2014-2015 NEC Corporation
* All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this
* distribution, and is available at http://www.eclipse.org/legal/epl-v10.html
*/
+
package org.opendaylight.vtn.app.run.config.rest.response.beans;
import org.opendaylight.vtn.app.run.config.json.annotations.JsonObject;
/**
* getIcmp - function to get the icmp reference for this object.
*
- * @return {@link int}
+ * @return {@link Icmp}
*/
public Icmp getIcmp() {
return icmp;
-/**
- * Copyright (c) 2014 NEC Corporation
+/*
+ * Copyright (c) 2014-2015 NEC Corporation
* All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this
* distribution, and is available at http://www.eclipse.org/legal/epl-v10.html
*/
+
package org.opendaylight.vtn.app.run.config.rest.response.beans;
import org.opendaylight.vtn.app.run.config.json.annotations.JsonElement;
/**
* getNode - function to get the node value for this object.
*
- * @return {@link getNode}
+ * @return {@link NodeDetails}
*/
public NodeDetails getNode() {
return node;
-/**
- * Copyright (c) 2014 NEC Corporation
+/*
+ * Copyright (c) 2014-2015 NEC Corporation
* All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this
* distribution, and is available at http://www.eclipse.org/legal/epl-v10.html
*/
+
package org.opendaylight.vtn.app.run.config.rest.response.beans;
import org.opendaylight.vtn.app.run.config.json.annotations.JsonElement;
/**
* getId - function to get the Id values for this object.
*
- * @return {@link int}
+ * @return The identifier of the switch port.
*/
public String getId() {
return id;
-/**
- * Copyright (c) 2014 NEC Corporation
+/*
+ * Copyright (c) 2014-2015 NEC Corporation
* All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this
* distribution, and is available at http://www.eclipse.org/legal/epl-v10.html
*/
+
package org.opendaylight.vtn.app.run.config.rest.response.beans;
import org.opendaylight.vtn.app.run.config.json.annotations.JsonElement;
/**
* getIndex - function to get the index values for this object.
*
- * @return {@link int}
+ * @return The index of this match.
*/
public int getIndex() {
return index;
/**
* getL4match - function to get the l4match values for this object.
*
- * @return {@link l4match}
+ * @return {@link L4Match}
*/
public L4Match getL4match() {
return l4match;
-/**
- * Copyright (c) 2014 NEC Corporation
+/*
+ * Copyright (c) 2014-2015 NEC Corporation
* All rights reserved.
*
* This program and the accompanying materials are made available under the
/**
* getType - function to get the type for this object.
*
- * @return {@link type}
+ * @return The type of the node.
*/
public String getType() {
return type;
/**
* getType - function to get the value of id for this object.
*
- * @return {@link int}
+ * @return The identifier of the node.
*/
public String getId() {
return id;
-/**
- * Copyright (c) 2014 NEC Corporation
+/*
+ * Copyright (c) 2014-2015 NEC Corporation
* All rights reserved.
*
* This program and the accompanying materials are made available under the
/**
* getIntegers - Method returns the index valus for this object.
*
- * @return {@link int}
+ * @return A list of path policy indices.
*/
public List<Index> getIntegers() {
return integers;
-/**
- * Copyright (c) 2014 NEC Corporation
+/*
+ * Copyright (c) 2014-2015 NEC Corporation
* All rights reserved.
*
* This program and the accompanying materials are made available under the
/**
* getId - Id value can be obtained from this method
*
- * @return {@link int}
+ * @return The identifier for the path policy.
*/
public int getId() {
return id;
/**
* getDefaultInt - default value can be obtained from this method
*
- * @return {@link int}
+ * @return The default cost.
*/
public int getDefaultInt() {
return defaultInt;
-/**
- * Copyright (c) 2014 NEC Corporation
+/*
+ * Copyright (c) 2014-2015 NEC Corporation
* All rights reserved.
*
* This program and the accompanying materials are made available under the
/**
* isOutput - get the status of Output.
*
- * @return {@link boolean}
+ * @return A boolean value which indicates the direction.
*/
public boolean isOutput() {
return output;
-/**
- * Copyright (c) 2014 NEC Corporation
+/*
+ * Copyright (c) 2014-2015 NEC Corporation
* All rights reserved.
*
* This program and the accompanying materials are made available under the
/**
* getBytes - function to get the bytes for this object.
*
- * @return {@link int}
+ * @return The number of bytes.
*/
public int getBytes() {
return bytes;
/**
* setBytes - function to set the bytes for this object.
*
- * @param bytes
+ * @param bytes The number of bytes.
*/
public void setBytes(int bytes) {
this.bytes = bytes;
/**
* getPackets - function to get the packets for this object.
*
- * @return {@link int}
+ * @return The number of packets.
*/
public int getPackets() {
return packets;
/**
* setPackets - function to set the packets for this object.
*
- * @param packets {@link int}
+ * @param packets The number of packets.
*/
public void setPackets(int packets) {
this.packets = packets;
/**
* getDuration - function to get the duration for this object.
*
- * @return {@link int}
+ * @return The duration of the data flow.
*/
public int getDuration() {
return duration;
/**
* setDuration - function to set the duration for this object.
*
- * @param duration {@link int}
+ * @param duration The duration of the data flow.
*/
public void setDuration(int duration) {
this.duration = duration;
-/**
+/*
* Copyright (c) 2015 NEC Corporation
* All rights reserved.
*
/**
* getDscp - function to get the dscp value for this object.
*
- * @return {@link int}
+ * @return The port value.
*/
public int getPort() {
return port;
-/**
+/*
* Copyright (c) 2015 NEC Corporation
* All rights reserved.
*
/**
* getDscp - function to get the dscp value for this object.
*
- * @return {@link int}
+ * @return The port value.
*/
public int getPort() {
return port;
-/**
- * Copyright (c) 2014 NEC Corporation
+/*
+ * Copyright (c) 2014-2015 NEC Corporation
* All rights reserved.
*
* This program and the accompanying materials are made available under the
/**
* getState - function to get the state for this object.
*
- * @return {@link int}
+ * @return The state of the interface.
*/
public int getState() {
return state;
/**
* getEntityState - function to get the entity state for this object.
*
- * @return {@link int}
+ * @return The entity state.
*/
public int getEntityState() {
return entityState;
/**
* getEnabled - function to get the enabled state for this object.
*
- * @return {@link boolean}
+ * @return A boolean value which indicates the enabled state.
*/
public boolean getEnabled() {
return enabled;
-/**
+/*
* Copyright (c) 2014-2015 NEC Corporation
* All rights reserved.
*
/**
* getFaults - function to get the faults for this object.
*
- * @return {@link int}
+ * @return The number of path faults.
*/
public int getFaults() {
return faults;
-/**
- * Copyright (c) 2014 NEC Corporation
+/*
+ * Copyright (c) 2014-2015 NEC Corporation
* All rights reserved.
*
* This program and the accompanying materials are made available under the
/**
* getVtn - function to get the vtn for this object.
*
- * @return {@link vtn }
+ * @return A list of VTNs.
*/
public List<VTNConfigurationBean> getVtn() {
return vtn;
/**
* getPathmap - function to get the pathmap for this object.
*
- * @return {@link pathmap }
+ * @return pathmap
*/
public ContainerPathMapNorthBoundList getPathmap() {
return pathmap;
-/**
+/*
* Copyright (c) 2014-2015 NEC Corporation
* All rights reserved.
*
/**
* getPath - function to get the IdleTimeout .
*
- * @return {@link int }
+ * @return The idle timeout value.
*/
public int getIdleTimeout() {
return idleTimeout;
/**
* getHardTimeout - function to get the hardTimeout .
*
- * @return {@link int }
+ * @return The hard timeout value.
*/
public int getHardTimeout() {
return hardTimeout;
-/**
- * Copyright (c) 2014 NEC Corporation
+/*
+ * Copyright (c) 2014-2015 NEC Corporation
* All rights reserved.
*
* This program and the accompanying materials are made available under the
/**
* getApi - function to get the api for this object.
*
- * @return {@link int }
+ * @return The API version.
*/
public int getApi() {
return api;
-/**
- * Copyright (c) 2014 NEC Corporation
+/*
+ * Copyright (c) 2014-2015 NEC Corporation
* All rights reserved.
*
* This program and the accompanying materials are made available under the
/**
* Parameterized Constructor.
- * @param vtnName,vtnDesc,idleTimeout
+ * @param vtnName
+ * @param vtnDesc
+ * @param idleTimeout
+ * @param hardTimeout
*/
public VTenantNorthBound(String vtnName, String vtnDesc, int idleTimeout,
int hardTimeout) {
/**
* getIdleTimeout - function to get the idleTimeout for this object.
*
- * @return {@link int }
+ * @return The idle timeout value.
*/
public int getIdleTimeout() {
return idleTimeout;
/**
* getHardTimeout - function to get the hardTimeout for this object.
*
- * @return {@link int }
+ * @return The hard timeout value.
*/
public int getHardTimeout() {
return hardTimeout;
-/**
- * Copyright (c) 2014 NEC Corporation
+/*
+ * Copyright (c) 2014-2015 NEC Corporation
* All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this
* distribution, and is available at http://www.eclipse.org/legal/epl-v10.html
*/
+
package org.opendaylight.vtn.app.run.config.rest.response.beans;
import java.io.Serializable;
/**
* getVtns - function to get the vtn value for this object.
*
- * @return {@link vtn}
+ * @return A list of VTNs.
*/
public List<VTenantNorthBound> getVtns() {
return vtn;
-/**
- * Copyright (c) 2014 NEC Corporation
+/*
+ * Copyright (c) 2014-2015 NEC Corporation
* All rights reserved.
*
* This program and the accompanying materials are made available under the
/**
* Parameterized Constructor.
- * @param index, condition, idleTimeout, hardTimeout
+ * @param index
+ * @param condition
+ * @param idleTimeout
+ * @param hardTimeout
*/
public VTenantPathMapNorthBound(int index, String condition,
int idleTimeout, int hardTimeout) {
}
/**
- * getPolicy - function to get the policy for this object.
+ * getPolicy - function to get the index for this object.
*
- * @return {@link int }
+ * @return The index for this object.
*/
public int getIndex() {
return index;
/**
* getCondition - function to get the condition for this object.
*
- * @return {@link int }
+ * @return The name of the flow condition.
*/
public String getCondition() {
return condition;
/**
* getPolicy - function to get the policy for this object.
*
- * @return {@link int }
+ * @return The path policy identifier.
*/
public int getPolicy() {
return policy;
/**
* getIdleTimeout - function to get the idleTimeout for this object.
*
- * @return {@link int }
+ * @return The idle timeout value.
*/
public int getIdleTimeout() {
return idleTimeout;
/**
* getVtnName - function to get the hardTimeout for this object.
*
- * @return {@link int }
+ * @return The hard timeout value.
*/
public int getHardTimeout() {
return hardTimeout;
-/**
+/*
* Copyright (c) 2015 NEC Corporation
* All rights reserved.
*
/**
* getState - function to get the state for this object.
*
- * @return {@link int}
+ * @return The state of the interface.
*/
public int getState() {
return state;
/**
* getEntityState - function to get the entity state for this object.
*
- * @return {@link int}
+ * @return The entity state.
*/
public int getEntityState() {
return entityState;
/**
* getEnabled - function to get the enabled state for this object.
*
- * @return {@link boolean}
+ * @return A boolean value which indicates the enabled state.
*/
public boolean getEnabled() {
return enabled;
-/**
+/*
* Copyright (c) 2015 NEC Corporation
* All rights reserved.
*
}
/**
* Parameterized Constructor.
- * @param name,description,faults
+ * @param name
+ * @param description
+ * @param faults
+ * @param state
*/
public VTerminalNorthBound(String name, String description, int faults,
int state) {
/**
* getFaults - function to get the faults for this object.
*
- * @return {@link int}
+ * @return The number of path faults.
*/
public int getFaults() {
return faults;
/**
* getState - function to get the state for this object.
*
- * @return {@link int}
+ * @return The state of the vTerminal.
*/
public int getState() {
return state;
-/**
- * Copyright (c) 2014 NEC Corporation
+/*
+ * Copyright (c) 2014-2015 NEC Corporation
* All rights reserved.
*
* This program and the accompanying materials are made available under the
/**
* getId - function to get the id for this object.
*
- * @return {@link int}
+ * @return The identifier for the VLAN map.
*/
public String getId() {
return id;
/**
* getVlan - function to get the vlan for this object.
*
- * @return {@link int}
+ * @return The VLAN ID.
*/
public int getVlan() {
return vlan;
/**
* setVlan - function to set the vlan for this object.
*
- * @param vlan.
+ * @param vlan
*/
public void setVlan(int vlan) {
this.vlan = vlan;
/**
* setNode - function to set the node for this object.
*
- * @param node.
+ * @param node
*/
public void setNode(NodeDetails node) {
this.node = node;
-/**
- * Copyright (c) 2014 NEC Corporation
+/*
+ * Copyright (c) 2014-2015 NEC Corporation
* All rights reserved.
*
* This program and the accompanying materials are made available under the
/**
* getPriority - function to get the priority value for this object.
*
- * @return {@link int}
+ * @return The VLAN priority.
*/
public int getPriority() {
return priority;
<?xml version="1.0" encoding="UTF-8"?>
-<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">
- <modelVersion>4.0.0</modelVersion>
-
- <groupId>org.opendaylight.vtn.application</groupId>
- <artifactId>dist</artifactId>
- <version>1.0.1-SNAPSHOT</version>
- <packaging>pom</packaging>
- <name>application</name>
-
- <modules>
- <module>list_vtn_configuration</module>
- <module>checkstyle</module>
- <module>ODL_VSEM_PROVIDER_SRC</module>
- </modules>
+
+<!--
+#
+# Copyright (c) 2014-2015 NEC Corporation
+# All rights reserved.
+#
+# This program and the accompanying materials are made available under the
+# terms of the Eclipse Public License v1.0 which accompanies this
+# distribution, and is available at http://www.eclipse.org/legal/epl-v10.html
+#
+-->
+
+<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">
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>org.opendaylight.vtn</groupId>
+ <artifactId>common</artifactId>
+ <version>0.3.0-SNAPSHOT</version>
+ <relativePath>../common</relativePath>
+ </parent>
+
+ <groupId>org.opendaylight.vtn.application</groupId>
+ <artifactId>dist</artifactId>
+ <version>1.0.1-SNAPSHOT</version>
+ <packaging>pom</packaging>
+ <name>application</name>
+
+ <scm>
+ <connection>scm:git:https://git.opendaylight.org/gerrit/p/vtn.git</connection>
+ <developerConnection>scm:git:ssh://git.opendaylight.org:29418/vtn.git</developerConnection>
+ <url>https://wiki.opendaylight.org/view/OpenDaylight_Virtual_Tenant_Network_%28VTN%29:Main</url>
+ <tag>HEAD</tag>
+ </scm>
+
+ <properties>
+ <!-- Default checkstyle configuration -->
+ <vtn.checkstyle.xml>vtn/checkstyle.xml</vtn.checkstyle.xml>
+ </properties>
+
+ <profiles>
+ <profile>
+ <!-- Run strict coding style check -->
+ <id>strictcheck</id>
+ <activation>
+ <activeByDefault>false</activeByDefault>
+ </activation>
+ <properties>
+ <vtn.checkstyle.xml>vtn/checkstyle_strict.xml</vtn.checkstyle.xml>
+ </properties>
+ </profile>
+ </profiles>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-checkstyle-plugin</artifactId>
+ <dependencies>
+ <dependency>
+ <groupId>org.opendaylight.vtn</groupId>
+ <artifactId>manager.checkstyle</artifactId>
+ <version>0.3.0-SNAPSHOT</version>
+ </dependency>
+ </dependencies>
+
+ <executions>
+ <execution>
+ <phase>process-sources</phase>
+ <goals>
+ <goal>check</goal>
+ </goals>
+ </execution>
+ </executions>
+
+ <configuration>
+ <failsOnError>true</failsOnError>
+ <configLocation>${vtn.checkstyle.xml}</configLocation>
+ <consoleOutput>true</consoleOutput>
+ <includeTestSourceDirectory>true</includeTestSourceDirectory>
+ <sourceDirectory>${project.basedir}</sourceDirectory>
+ <includes>**\/*.java,**\/*.xml,**\/*.ini,**\/*.sh,**\/*.bat</includes>
+ <excludes>**\/target\/</excludes>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+ <modules>
+ <module>list_vtn_configuration</module>
+ <module>ODL_VSEM_PROVIDER_SRC</module>
+ </modules>
</project>