yang-gen-sal
maven-metadata-local.xml
.factorypath
+.fbExcludeFilterFile
+
<groupId>org.opendaylight.neutron</groupId>
<artifactId>neutron-artifacts</artifactId>
- <version>0.10.0-SNAPSHOT</version>
+ <version>0.11.0-SNAPSHOT</version>
<packaging>pom</packaging>
<name>Neutron Artifacts</name>
<groupId>org.opendaylight.neutron</groupId>
<artifactId>features-neutron-service</artifactId>
- <version>0.10.0-SNAPSHOT</version>
+ <version>0.11.0-SNAPSHOT</version>
<packaging>feature</packaging>
<dependencies>
<groupId>org.opendaylight.neutron</groupId>
<artifactId>odl-neutron-hostconfig-ovs</artifactId>
- <version>0.10.0-SNAPSHOT</version>
+ <version>0.11.0-SNAPSHOT</version>
<packaging>feature</packaging>
<name>OpenDaylight :: Neutron :: Hostconfig :: OVS</name>
<dependency>
<groupId>org.opendaylight.controller</groupId>
<artifactId>mdsal-artifacts</artifactId>
- <version>1.7.0-SNAPSHOT</version>
+ <version>1.8.0-SNAPSHOT</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.opendaylight.ovsdb</groupId>
<artifactId>southbound-artifacts</artifactId>
- <version>1.6.0-SNAPSHOT</version>
+ <version>1.7.0-SNAPSHOT</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<artifactId>odl-ovsdb-utils</artifactId>
<type>xml</type>
<classifier>features</classifier>
- <version>1.6.0-SNAPSHOT</version>
+ <version>1.7.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.opendaylight.aaa</groupId>
<artifactId>odl-aaa-cert</artifactId>
<type>xml</type>
<classifier>features</classifier>
- <version>0.7.0-SNAPSHOT</version>
+ <version>0.8.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<groupId>org.opendaylight.neutron</groupId>
<artifactId>odl-neutron-hostconfig-vpp</artifactId>
- <version>0.10.0-SNAPSHOT</version>
+ <version>0.11.0-SNAPSHOT</version>
<packaging>feature</packaging>
<name>OpenDaylight :: Neutron :: Hostconfig :: VPP</name>
<properties>
- <netconf.version>1.4.0-SNAPSHOT</netconf.version>
+ <netconf.version>1.5.0-SNAPSHOT</netconf.version>
<explicitFeatureDependencies>true</explicitFeatureDependencies>
</properties>
<dependency>
<groupId>org.opendaylight.controller</groupId>
<artifactId>mdsal-artifacts</artifactId>
- <version>1.7.0-SNAPSHOT</version>
+ <version>1.8.0-SNAPSHOT</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<groupId>org.opendaylight.neutron</groupId>
<artifactId>odl-neutron-logger</artifactId>
- <version>0.10.0-SNAPSHOT</version>
+ <version>0.11.0-SNAPSHOT</version>
<packaging>feature</packaging>
<name>OpenDaylight :: Neutron :: Logger</name>
<dependency>
<groupId>org.opendaylight.controller</groupId>
<artifactId>mdsal-artifacts</artifactId>
- <version>1.7.0-SNAPSHOT</version>
+ <version>1.8.0-SNAPSHOT</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<groupId>org.opendaylight.neutron</groupId>
<artifactId>odl-neutron-northbound-api</artifactId>
- <version>0.10.0-SNAPSHOT</version>
+ <version>0.11.0-SNAPSHOT</version>
<packaging>feature</packaging>
<name>OpenDaylight :: Neutron :: Northbound</name>
<dependency>
<groupId>org.opendaylight.aaa</groupId>
<artifactId>odl-aaa-shiro</artifactId>
- <version>0.7.0-SNAPSHOT</version>
+ <version>0.8.0-SNAPSHOT</version>
<type>xml</type>
<classifier>features</classifier>
</dependency>
<groupId>org.opendaylight.neutron</groupId>
<artifactId>odl-neutron-service</artifactId>
- <version>0.10.0-SNAPSHOT</version>
+ <version>0.11.0-SNAPSHOT</version>
<packaging>feature</packaging>
<name>OpenDaylight :: Neutron :: Service</name>
<groupId>org.opendaylight.neutron</groupId>
<artifactId>odl-neutron-spi</artifactId>
- <version>0.10.0-SNAPSHOT</version>
+ <version>0.11.0-SNAPSHOT</version>
<packaging>feature</packaging>
<name>OpenDaylight :: Neutron :: API</name>
<dependency>
<groupId>org.opendaylight.mdsal.model</groupId>
<artifactId>mdsal-model-artifacts</artifactId>
- <version>0.12.0-SNAPSHOT</version>
+ <version>0.13.0-SNAPSHOT</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<groupId>org.opendaylight.neutron</groupId>
<artifactId>odl-neutron-transcriber</artifactId>
- <version>0.10.0-SNAPSHOT</version>
+ <version>0.11.0-SNAPSHOT</version>
<packaging>feature</packaging>
<name>OpenDaylight :: Neutron :: Implementation</name>
<dependency>
<groupId>org.opendaylight.controller</groupId>
<artifactId>mdsal-artifacts</artifactId>
- <version>1.7.0-SNAPSHOT</version>
+ <version>1.8.0-SNAPSHOT</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<groupId>org.opendaylight.neutron</groupId>
<artifactId>features-aggregator</artifactId>
- <version>0.10.0-SNAPSHOT</version>
+ <version>0.11.0-SNAPSHOT</version>
<packaging>pom</packaging>
<modules>
<groupId>org.opendaylight.neutron</groupId>
<artifactId>features-neutron-test</artifactId>
- <version>0.10.0-SNAPSHOT</version>
+ <version>0.11.0-SNAPSHOT</version>
<packaging>feature</packaging>
<properties>
<groupId>org.opendaylight.neutron</groupId>
<artifactId>odl-neutron-logger-test</artifactId>
- <version>0.10.0-SNAPSHOT</version>
+ <version>0.11.0-SNAPSHOT</version>
<packaging>feature</packaging>
<name>OpenDaylight :: Neutron :: Logger :: Test</name>
<groupId>org.opendaylight.neutron</groupId>
<artifactId>features-test-aggregator</artifactId>
- <version>0.10.0-SNAPSHOT</version>
+ <version>0.11.0-SNAPSHOT</version>
<packaging>pom</packaging>
<modules>
<parent>
<groupId>org.opendaylight.controller</groupId>
<artifactId>mdsal-it-parent</artifactId>
- <version>1.7.0-SNAPSHOT</version>
+ <version>1.8.0-SNAPSHOT</version>
<relativePath/>
</parent>
<groupId>org.opendaylight.neutron</groupId>
<artifactId>integration-test</artifactId>
- <version>0.10.0-SNAPSHOT</version>
+ <version>0.11.0-SNAPSHOT</version>
<!-- <name> formatting is used by autorelease to parse and notify projects on
build failure. Please do not modify this unless you have a good reason. -->
import org.junit.runner.RunWith;
import org.opendaylight.controller.mdsal.it.base.AbstractMdsalTestBase;
import org.ops4j.pax.exam.Configuration;
+import org.ops4j.pax.exam.CoreOptions;
import org.ops4j.pax.exam.Option;
import org.ops4j.pax.exam.junit.PaxExam;
import org.ops4j.pax.exam.karaf.options.KarafDistributionOption;
private Option[] getOtherOptions() {
return new Option[] {
+ // timeout 15 minutes instead of default 3 minutes, because Jenkins build VMs are *SLOW*
+ CoreOptions.systemTimeout(15 * 60 * 1000),
vmOption("-javaagent:../../pax/jars/org.jacoco.agent.jar=destfile=../../jacoco-it.exec"),
keepRuntimeFolder(), configureConsole().ignoreLocalConsole(),
logLevel(LogLevel.INFO),
<modelVersion>4.0.0</modelVersion>
<groupId>org.opendaylight.neutron</groupId>
<artifactId>neutron-karaf</artifactId>
- <version>0.10.0-SNAPSHOT</version>
+ <version>0.11.0-SNAPSHOT</version>
<name>${project.artifactId}</name>
<dependencyManagement>
<parent>
<groupId>org.opendaylight.neutron</groupId>
<artifactId>project-neutron-parent</artifactId>
- <version>0.10.0-SNAPSHOT</version>
+ <version>0.11.0-SNAPSHOT</version>
<relativePath>../parent</relativePath>
</parent>
<groupId>org.opendaylight.neutron</groupId>
<artifactId>model</artifactId>
- <version>0.10.0-SNAPSHOT</version>
+ <version>0.11.0-SNAPSHOT</version>
<packaging>bundle</packaging>
<!-- <name> formatting is used by autorelease to parse and notify projects on
build failure. Please do not modify this unless you have a good reason. -->
<parent>
<groupId>org.opendaylight.neutron</groupId>
<artifactId>project-neutron-parent</artifactId>
- <version>0.10.0-SNAPSHOT</version>
+ <version>0.11.0-SNAPSHOT</version>
<relativePath>../../parent</relativePath>
</parent>
<groupId>org.opendaylight.neutron</groupId>
<artifactId>neutron-hostconfig-ovs</artifactId>
- <version>0.10.0-SNAPSHOT</version>
+ <version>0.11.0-SNAPSHOT</version>
<packaging>bundle</packaging>
<!-- <name> formatting is used by autorelease to parse and notify projects on
build failure. Please do not modify this unless you have a good reason. -->
<dependency>
<groupId>org.opendaylight.ovsdb</groupId>
<artifactId>utils.mdsal-utils</artifactId>
- <version>1.6.0-SNAPSHOT</version>
+ <version>1.7.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.opendaylight.ovsdb</groupId>
<artifactId>utils.southbound-utils</artifactId>
- <version>1.6.0-SNAPSHOT</version>
+ <version>1.7.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.opendaylight.neutron</groupId>
<groupId>org.opendaylight.neutron</groupId>
<artifactId>neutron-hostconfig</artifactId>
- <version>0.10.0-SNAPSHOT</version>
+ <version>0.11.0-SNAPSHOT</version>
<packaging>pom</packaging>
<!-- <name> formatting is used by autorelease to parse and notify projects on
build failure. Please do not modify this unless you have a good reason. -->
<parent>
<groupId>org.opendaylight.neutron</groupId>
<artifactId>project-neutron-parent</artifactId>
- <version>0.10.0-SNAPSHOT</version>
+ <version>0.11.0-SNAPSHOT</version>
<relativePath>../../parent</relativePath>
</parent>
<groupId>org.opendaylight.neutron</groupId>
<artifactId>neutron-hostconfig-utils</artifactId>
- <version>0.10.0-SNAPSHOT</version>
+ <version>0.11.0-SNAPSHOT</version>
<packaging>bundle</packaging>
<!-- <name> formatting is used by autorelease to parse and notify projects on
build failure. Please do not modify this unless you have a good reason. -->
<parent>
<groupId>org.opendaylight.neutron</groupId>
<artifactId>project-neutron-parent</artifactId>
- <version>0.10.0-SNAPSHOT</version>
+ <version>0.11.0-SNAPSHOT</version>
<relativePath>../../parent</relativePath>
</parent>
<groupId>org.opendaylight.neutron</groupId>
<artifactId>neutron-hostconfig-vpp</artifactId>
- <version>0.10.0-SNAPSHOT</version>
+ <version>0.11.0-SNAPSHOT</version>
<packaging>bundle</packaging>
<!-- <name> formatting is used by autorelease to parse and notify projects on
build failure. Please do not modify this unless you have a good reason. -->
<name>ODL :: neutron :: ${project.artifactId}</name>
<properties>
- <netconf.version>1.4.0-SNAPSHOT</netconf.version>
+ <netconf.version>1.5.0-SNAPSHOT</netconf.version>
</properties>
<dependencyManagement>
<dependencies>
@Override
public void onDataTreeChanged(@Nonnull Collection<DataTreeModification<Node>> changes) {
LOG.info("onDataTreeChanged: Received Data Tree Changed ...", changes);
- executorService.submit(() -> {
+ executorService.execute(() -> {
for (DataTreeModification<Node> change : Preconditions.checkNotNull(changes, "Changes may not be null!")) {
processDataTreeModification(change);
}
<parent>
<groupId>org.opendaylight.neutron</groupId>
<artifactId>project-neutron-parent</artifactId>
- <version>0.10.0-SNAPSHOT</version>
+ <version>0.11.0-SNAPSHOT</version>
<relativePath>../parent</relativePath>
</parent>
<groupId>org.opendaylight.neutron</groupId>
<artifactId>neutron-logger</artifactId>
- <version>0.10.0-SNAPSHOT</version>
+ <version>0.11.0-SNAPSHOT</version>
<packaging>bundle</packaging>
<!-- <name> formatting is used by autorelease to parse and notify projects on
build failure. Please do not modify this unless you have a good reason. -->
<parent>
<groupId>org.opendaylight.neutron</groupId>
<artifactId>project-neutron-parent</artifactId>
- <version>0.10.0-SNAPSHOT</version>
+ <version>0.11.0-SNAPSHOT</version>
<relativePath>../parent</relativePath>
</parent>
<groupId>org.opendaylight.neutron</groupId>
<artifactId>neutron-spi</artifactId>
- <version>0.10.0-SNAPSHOT</version>
+ <version>0.11.0-SNAPSHOT</version>
<packaging>bundle</packaging>
<!-- <name> formatting is used by autorelease to parse and notify projects on
build failure. Please do not modify this unless you have a good reason. -->
* 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.neutron.spi;
/**
* This class contains behaviour common to Neutron configuration objects.
*/
public interface INeutronAdminAttributes<T extends INeutronAdminAttributes> extends INeutronBaseAttributes<T> {
+
Boolean getAdminStateUp();
void setAdminStateUp(Boolean adminStateUp);
* 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.neutron.spi;
/**
* This class contains behaviour common to Neutron configuration objects.
*/
public interface INeutronBaseAttributes<T extends INeutronBaseAttributes> extends INeutronObject<T> {
+
String getName();
void setName(String name);
* 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.neutron.spi;
/**
* This interface defines the methods for CRUD of NB bgpvpn objects.
- *
*/
-
public interface INeutronBgpvpnCRUD extends INeutronCRUD<NeutronBgpvpn> {
// Nothing Here.
// This class is defined to use reflection like INuetornBgpvpnCRUD.class
* 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.neutron.spi;
import java.util.List;
/**
* This interface defines the methods for CRUD of NB neutron objects.
- *
*/
-
public interface INeutronCRUD<T extends INeutronObject<T>> {
+
/**
* Applications call this interface method to determine if a particular
* Neutron object exists.
* UUID of the Neutron object
* @return boolean
*/
-
boolean exists(String uuid);
/**
* @return {@link org.opendaylight.neutron.spi.INeutronObject}
* OpenStack Neutron class
*/
-
T get(String uuid);
/**
*
* @return List of OpenStackNeutrons objects
*/
-
List<T> getAll();
/**
* OpenStackNeutron object
* @return boolean on whether the object was added or not
*/
-
boolean add(T input);
/**
* identifier for the neutron object
* @return boolean on whether the object was removed or not
*/
-
boolean remove(String uuid);
/**
* OpenStackNeutron object containing changes to apply
* @return boolean on whether the object was updated or not
*/
-
boolean update(String uuid, T delta);
}
* 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.neutron.spi;
/**
* This interface defines the methods for CRUD of NB OpenStack Firewall objects.
*/
-
public interface INeutronFirewallCRUD extends INeutronCRUD<NeutronFirewall> {
// Nothing Here.
// This class is defined to use reflection.
* 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.neutron.spi;
/**
* This interface defines the methods for CRUD of NB OpenStack Firewall Policy objects.
- *
*/
-
public interface INeutronFirewallPolicyCRUD extends INeutronCRUD<NeutronFirewallPolicy> {
// Nothing Here.
// This class is defined to use reflection.
* 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.neutron.spi;
/**
* This interface defines the methods for CRUD of NB OpenStack Firewall Rule objects.
- *
*/
-
public interface INeutronFirewallRuleCRUD extends INeutronCRUD<NeutronFirewallRule> {
// Nothing Here.
// This class is defined to use reflection.
* 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.neutron.spi;
/**
* This interface defines the methods for CRUD of NB FloatingIp objects.
- *
*/
-
public interface INeutronFloatingIpCRUD extends INeutronCRUD<NeutronFloatingIp> {
// Nothing Here.
// This class is defined to use reflection.
* 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.neutron.spi;
/**
* This interface defines the methods for CRUD of NB OpenStack L2gateway objects.
*/
public interface INeutronL2gatewayCRUD extends INeutronCRUD<NeutronL2gateway> {
- //Do nothing here.
+ // Do nothing here.
}
* 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.neutron.spi;
/**
* This interface defines the methods for CRUD of NB OpenStack L2gateway
* Connection objects.
*/
-
public interface INeutronL2gatewayConnectionCRUD extends INeutronCRUD<NeutronL2gatewayConnection> {
- //Do nothing here.
+ // Do nothing here.
}
* 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.neutron.spi;
/**
* This interface defines the methods for CRUD of NB OpenStack LoadBalancer objects.
- *
*/
-
public interface INeutronLoadBalancerCRUD extends INeutronCRUD<NeutronLoadBalancer> {
// Nothing Here.
// This class is defined to use reflection.
* 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.neutron.spi;
/**
* This interface defines the methods for CRUD of NB OpenStack LoadBalancerHealthMonitor objects.
- *
*/
-
public interface INeutronLoadBalancerHealthMonitorCRUD extends INeutronCRUD<NeutronLoadBalancerHealthMonitor> {
// Nothing Here.
// This class is defined to use reflection.
* 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.neutron.spi;
/**
* This interface defines the methods for CRUD of NB OpenStack LoadBalancerListener objects.
- *
*/
-
public interface INeutronLoadBalancerListenerCRUD extends INeutronCRUD<NeutronLoadBalancerListener> {
// Nothing Here.
// This class is defined to use reflection.
* 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.neutron.spi;
import java.util.List;
/**
* This interface defines the methods for CRUD of NB OpenStack LoadBalancerPool objects.
- *
*/
-
public interface INeutronLoadBalancerPoolCRUD extends INeutronCRUD<NeutronLoadBalancerPool> {
+
/**
* Applications call this interface method to determine if a particular
* NeutronLoadBalancerPoolMember object exists.
* UUID of the NeutronLoadBalancerPoolMember object
* @return boolean
*/
-
boolean neutronLoadBalancerPoolMemberExists(String poolUuid, String uuid);
/**
* @return {@link org.opendaylight.neutron.spi.NeutronLoadBalancerPoolMember}
* OpenStackNeutronLoadBalancerPoolMember class
*/
-
NeutronLoadBalancerPoolMember getNeutronLoadBalancerPoolMember(String poolUuid, String uuid);
/**
* UUID of the NeutronLoadBalancerPool object
* @return List of OpenStackNetworks objects
*/
-
List<NeutronLoadBalancerPoolMember> getAllNeutronLoadBalancerPoolMembers(String poolUuid);
/**
* OpenStackNetwork object
* @return boolean on whether the object was added or not
*/
-
boolean addNeutronLoadBalancerPoolMember(String poolUuid, NeutronLoadBalancerPoolMember input);
/**
* identifier for the NeutronLoadBalancerPoolMember object
* @return boolean on whether the object was removed or not
*/
-
boolean removeNeutronLoadBalancerPoolMember(String poolUuid, String uuid);
/**
* OpenStackNeutronLoadBalancerPoolMember object containing changes to apply
* @return boolean on whether the object was updated or not
*/
-
boolean updateNeutronLoadBalancerPoolMember(String poolUuid, String uuid, NeutronLoadBalancerPoolMember delta);
/**
* @return boolean on whether the macAddress is already associated with a
* port or not
*/
-
boolean neutronLoadBalancerPoolMemberInUse(String poolUuid, String uuid);
}
* 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.neutron.spi;
public interface INeutronMeteringLabelCRUD extends INeutronCRUD<NeutronMeteringLabel> {
* 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.neutron.spi;
public interface INeutronMeteringLabelRuleCRUD extends INeutronCRUD<NeutronMeteringLabelRule> {
* 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.neutron.spi;
/**
* This interface defines the methods for CRUD of NB network objects.
- *
*/
-
public interface INeutronNetworkCRUD extends INeutronCRUD<NeutronNetwork> {
// Nothing Here.
// This class is defined to use reflection.
* 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.neutron.spi;
import java.util.List;
* 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.neutron.spi;
/**
* This interface defines the methods for CRUD of NB Port objects.
- *
*/
-
public interface INeutronPortCRUD extends INeutronCRUD<NeutronPort> {
// Nothing Here.
// This class is defined to use reflection.
* 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.neutron.spi;
/**
* This interface defines the methods for CRUD of NB OpenStack Qos Policy objects.
*/
-
public interface INeutronQosPolicyCRUD extends INeutronCRUD<NeutronQosPolicy> {
// Nothing Here.
// This class is defined to use reflection.
* 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.neutron.spi;
/**
* This interface defines the methods for CRUD of NB Router objects.
- *
*/
-
public interface INeutronRouterCRUD extends INeutronCRUD<NeutronRouter> {
// Nothing Here.
// This class is defined to use reflection.
/**
* This interface defines the methods for CRUD of NB SFC Flow Classifier objects.
- *
*/
public interface INeutronSFCFlowClassifierCRUD extends INeutronCRUD<NeutronSFCFlowClassifier> {
// Nothing Here.
/**
* This interface defines the methods for CRUD of NB SFC Port Chain objects.
- *
*/
public interface INeutronSFCPortChainCRUD extends INeutronCRUD<NeutronSFCPortChain> {
// Nothing Here.
/**
* This interface defines the methods for CRUD of NB SFC Port Pair objects.
- *
*/
public interface INeutronSFCPortPairCRUD extends INeutronCRUD<NeutronSFCPortPair> {
// Nothing Here.
/**
* This interface defines the methods for CRUD of NB SFC Port Pair Group objects.
- *
*/
public interface INeutronSFCPortPairGroupCRUD extends INeutronCRUD<NeutronSFCPortPairGroup> {
// Nothing Here.
* 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.neutron.spi;
/**
* This interface defines the methods for CRUD of NB OpenStack Security Group objects.
*/
-
public interface INeutronSecurityGroupCRUD extends INeutronCRUD<NeutronSecurityGroup> {
// Nothing Here.
// This class is defined to use reflection.
* 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.neutron.spi;
/**
* This interface defines the methods for CRUD of NB OpenStack Security Rule objects.
*/
-
public interface INeutronSecurityRuleCRUD extends INeutronCRUD<NeutronSecurityRule> {
// Nothing Here.
// This class is defined to use reflection.
* 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.neutron.spi;
/**
* This interface defines the methods for CRUD of NB Subnet objects.
- *
*/
-
public interface INeutronSubnetCRUD extends INeutronCRUD<NeutronSubnet> {
// Nothing Here.
// This class is defined to use reflection.
* 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.neutron.spi;
/**
* This interface defines the methods for CRUD of NB OpenStack Tap Flow objects.
*/
-
public interface INeutronTapFlowCRUD extends INeutronCRUD<NeutronTapFlow> {
+
/**
* Applications call this interface method to check if a NeutronTapFlow object exists.
*
* 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.neutron.spi;
/**
* This interface defines the methods for CRUD of NB OpenStack Tap Service objects.
*/
-
public interface INeutronTapServiceCRUD extends INeutronCRUD<NeutronTapService> {
// Nothing Here.
// This class is defined to use reflection.
* 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.neutron.spi;
/**
* This interface defines the methods for CRUD of NB trunk objects.
- *
*/
-
public interface INeutronTrunkCRUD extends INeutronCRUD<NeutronTrunk> {
// Nothing Here.
// This class is defined to use reflection like INeutornTrunkCRUD.class
* 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.neutron.spi;
public interface INeutronVpnIkePolicyCRUD extends INeutronCRUD<NeutronVpnIkePolicy> {
* 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.neutron.spi;
public interface INeutronVpnIpSecPolicyCRUD extends INeutronCRUD<NeutronVpnIpSecPolicy> {
* 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.neutron.spi;
public interface INeutronVpnIpSecSiteConnectionsCRUD extends INeutronCRUD<NeutronVpnIpSecSiteConnection> {
* 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.neutron.spi;
/**
* This interface defines the methods for CRUD of NB VPNService objects.
- *
*/
-
public interface INeutronVpnServiceCRUD extends INeutronCRUD<NeutronVpnService> {
// Nothing Here.
// This class is defined to use reflection.
package org.opendaylight.neutron.spi;
-import java.io.Serializable;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
@XmlRootElement
@XmlAccessorType(XmlAccessType.NONE)
-public abstract class NeutronAdminAttributes<T extends NeutronAdminAttributes> extends NeutronBaseAttributes<T>
- implements Serializable, INeutronAdminAttributes<T> {
+public abstract class NeutronAdminAttributes<T extends NeutronAdminAttributes<T>> extends NeutronBaseAttributes<T>
+ implements INeutronAdminAttributes<T> {
private static final long serialVersionUID = 1L;
@XmlElement(defaultValue = "true", name = "admin_state_up")
public NeutronAdminAttributes() {
}
+ @Override
public Boolean getAdminStateUp() {
return adminStateUp;
}
+ public boolean isAdminStateUp() {
+ if (adminStateUp == null) {
+ return true;
+ }
+ return adminStateUp;
+ }
+
+ @Override
public void setAdminStateUp(Boolean adminStateUp) {
this.adminStateUp = adminStateUp;
}
+ @Override
public String getStatus() {
return status;
}
+ @Override
public void setStatus(String status) {
this.status = status;
}
package org.opendaylight.neutron.spi;
-import java.io.Serializable;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
@XmlRootElement
@XmlAccessorType(XmlAccessType.NONE)
-public abstract class NeutronBaseAttributes<T extends NeutronBaseAttributes> extends NeutronObject<T>
- implements Serializable, INeutronBaseAttributes<T> {
+public abstract class NeutronBaseAttributes<T extends NeutronBaseAttributes<T>> extends NeutronObject<T>
+ implements INeutronBaseAttributes<T> {
private static final long serialVersionUID = 1L;
@XmlElement(name = "name")
package org.opendaylight.neutron.spi;
-import java.io.Serializable;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
@XmlRootElement(name = "bgpvpn")
@XmlAccessorType(XmlAccessType.NONE)
-public final class NeutronBgpvpn extends NeutronAdminAttributes<NeutronBgpvpn> implements Serializable {
+public final class NeutronBgpvpn extends NeutronAdminAttributes<NeutronBgpvpn> {
// See OpenStack Network API v2.0 Reference for description of
// annotated attributes
public NeutronBgpvpn() {
}
+ @Override
public void initDefaults() {
super.initDefaults();
if (type == null) {
}
}
- public boolean isAdminStateUp() {
- return adminStateUp;
- }
-
public boolean isAutoAggregate() {
return autoAggregate;
}
package org.opendaylight.neutron.spi;
-import java.io.Serializable;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
@XmlRootElement
@XmlAccessorType(XmlAccessType.NONE)
-public final class NeutronFirewall extends NeutronBaseAttributes<NeutronFirewall> implements Serializable {
+public final class NeutronFirewall extends NeutronBaseAttributes<NeutronFirewall> {
private static final long serialVersionUID = 1L;
@XmlElement(defaultValue = "true", name = "admin_state_up")
package org.opendaylight.neutron.spi;
-import java.io.Serializable;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
@XmlRootElement
@XmlAccessorType(XmlAccessType.NONE)
-public final class NeutronFirewallPolicy extends NeutronBaseAttributes<NeutronFirewallPolicy> implements Serializable {
+public final class NeutronFirewallPolicy extends NeutronBaseAttributes<NeutronFirewallPolicy> {
private static final long serialVersionUID = 1L;
@XmlElement(defaultValue = "false", name = "shared")
package org.opendaylight.neutron.spi;
-import java.io.Serializable;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
@XmlRootElement
@XmlAccessorType(XmlAccessType.NONE)
-public final class NeutronFirewallRule extends NeutronBaseAttributes<NeutronFirewallRule> implements Serializable {
+public final class NeutronFirewallRule extends NeutronBaseAttributes<NeutronFirewallRule> {
private static final long serialVersionUID = 1L;
@XmlElement(defaultValue = "false", name = "shared")
package org.opendaylight.neutron.spi;
-import java.io.Serializable;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
@XmlRootElement
@XmlAccessorType(XmlAccessType.NONE)
-public final class NeutronFloatingIp
- extends NeutronObject<NeutronFloatingIp> implements Serializable, INeutronObject<NeutronFloatingIp> {
+public final class NeutronFloatingIp extends NeutronObject<NeutronFloatingIp> {
private static final long serialVersionUID = 1L;
// See OpenStack Network API v2.0 Reference for description of
package org.opendaylight.neutron.spi;
-import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement(name = "l2gateway")
-public final class NeutronL2gateway extends NeutronBaseAttributes<NeutronL2gateway>
- implements Serializable {
+public final class NeutronL2gateway extends NeutronBaseAttributes<NeutronL2gateway> {
private static final long serialVersionUID = 1L;
@XmlElement(name = "devices")
package org.opendaylight.neutron.spi;
-import java.io.Serializable;
+import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
@XmlRootElement(name = "l2gatewayConnection")
@XmlAccessorType(XmlAccessType.NONE)
-public final class NeutronL2gatewayConnection extends NeutronBaseAttributes<NeutronL2gatewayConnection>
- implements Serializable {
+public final class NeutronL2gatewayConnection extends NeutronBaseAttributes<NeutronL2gatewayConnection> {
private static final long serialVersionUID = 1L;
@XmlElement(name = "gateway_id")
this.segmentID = segmentID;
}
+ // getPortID differ only by capitalization with NeutronTrunk.getPortId but it's not worth changing the API and
+ // disrupting downstream users just for that reason.
+ @SuppressFBWarnings("NM_CONFUSING")
public String getPortID() {
return portID;
}
+ @SuppressFBWarnings("NM_CONFUSING")
public void setPortID(String portID) {
this.portID = portID;
}
package org.opendaylight.neutron.spi;
-import java.io.Serializable;
import java.util.List;
import javax.xml.bind.annotation.XmlElement;
-public final class NeutronL2gatewayDevice extends NeutronID implements Serializable {
+public final class NeutronL2gatewayDevice extends NeutronID {
private static final long serialVersionUID = 1L;
package org.opendaylight.neutron.spi;
-import java.io.Serializable;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
@XmlRootElement
@XmlAccessorType(XmlAccessType.NONE)
-public final class NeutronLoadBalancer extends NeutronAdminAttributes<NeutronLoadBalancer> implements Serializable {
+public final class NeutronLoadBalancer extends NeutronAdminAttributes<NeutronLoadBalancer> {
private static final long serialVersionUID = 1L;
@XmlElement(name = "vip_address")
package org.opendaylight.neutron.spi;
-import java.io.Serializable;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
@XmlRootElement
@XmlAccessorType(XmlAccessType.NONE)
-public final class NeutronLoadBalancerHealthMonitor extends NeutronObject<NeutronLoadBalancerHealthMonitor>
- implements Serializable, INeutronObject<NeutronLoadBalancerHealthMonitor> {
+public final class NeutronLoadBalancerHealthMonitor extends NeutronObject<NeutronLoadBalancerHealthMonitor> {
private static final long serialVersionUID = 1L;
@XmlElement(name = "type")
package org.opendaylight.neutron.spi;
-import java.io.Serializable;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
@XmlRootElement
@XmlAccessorType(XmlAccessType.NONE)
-public final class NeutronLoadBalancerListener extends NeutronBaseAttributes<NeutronLoadBalancerListener>
- implements Serializable {
+public final class NeutronLoadBalancerListener extends NeutronBaseAttributes<NeutronLoadBalancerListener> {
private static final long serialVersionUID = 1L;
@XmlElement(name = "default_pool_id")
package org.opendaylight.neutron.spi;
-import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
@XmlRootElement
@XmlAccessorType(XmlAccessType.NONE)
-public final class NeutronLoadBalancerPool extends NeutronBaseAttributes<NeutronLoadBalancerPool>
- implements Serializable {
+public final class NeutronLoadBalancerPool extends NeutronBaseAttributes<NeutronLoadBalancerPool> {
private static final long serialVersionUID = 1L;
@XmlElement(name = "protocol")
package org.opendaylight.neutron.spi;
-import java.io.Serializable;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
@XmlRootElement
@XmlAccessorType(XmlAccessType.NONE)
-public final class NeutronLoadBalancerPoolMember extends NeutronObject<NeutronLoadBalancerPoolMember>
- implements Serializable, INeutronObject<NeutronLoadBalancerPoolMember> {
+public final class NeutronLoadBalancerPoolMember extends NeutronObject<NeutronLoadBalancerPoolMember> {
private static final long serialVersionUID = 1L;
/**
package org.opendaylight.neutron.spi;
-import java.io.Serializable;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
@XmlRootElement
@XmlAccessorType(XmlAccessType.NONE)
-public final class NeutronMeteringLabel extends NeutronBaseAttributes<NeutronMeteringLabel> implements Serializable {
+public final class NeutronMeteringLabel extends NeutronBaseAttributes<NeutronMeteringLabel> {
private static final long serialVersionUID = 1L;
@XmlElement(defaultValue = "false", name = "shared")
package org.opendaylight.neutron.spi;
-import java.io.Serializable;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
@XmlRootElement
@XmlAccessorType(XmlAccessType.NONE)
-public final class NeutronMeteringLabelRule extends NeutronObject<NeutronMeteringLabelRule>
- implements Serializable, INeutronObject<NeutronMeteringLabelRule> {
+public final class NeutronMeteringLabelRule extends NeutronObject<NeutronMeteringLabelRule> {
private static final long serialVersionUID = 1L;
@XmlElement(name = "direction")
package org.opendaylight.neutron.spi;
-import java.io.Serializable;
+import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
@XmlRootElement(name = "network")
@XmlAccessorType(XmlAccessType.NONE)
-public final class NeutronNetwork extends NeutronAdminAttributes<NeutronNetwork> implements Serializable {
+// Non-transient non-serializable instance field 'segments' - we have to assume/hope users will set a Serializable List
+// instance.
+@SuppressFBWarnings("SE_BAD_FIELD")
+public final class NeutronNetwork extends NeutronAdminAttributes<NeutronNetwork> {
// See OpenStack Network API v2.0 Reference for description of
// annotated attributes
}
}
- public boolean isAdminStateUp() {
- return adminStateUp;
- }
-
public boolean isShared() {
+ if (shared == null) {
+ return false;
+ }
+
return shared;
}
}
public boolean isRouterExternal() {
+ if (routerExternal == null) {
+ return false;
+ }
+
return routerExternal;
}
public boolean extractField(String field, NeutronNetwork ans) {
switch (field) {
case "shared":
- ans.setShared(shared);
+ ans.setShared(isShared());
break;
case "external":
ans.setRouterExternal(this.getRouterExternal());
package org.opendaylight.neutron.spi;
-import java.io.Serializable;
import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;
import java.util.List;
@XmlRootElement
@XmlAccessorType(XmlAccessType.NONE)
-public abstract class NeutronObject<T extends NeutronObject> extends NeutronID
- implements Serializable, INeutronObject<T> {
+public abstract class NeutronObject<T extends NeutronObject<T>> extends NeutronID implements INeutronObject<T> {
// T extends NeutronObject as 0th type argument. Used by extractFields()
private static final int NEUTRON_OBJECT_CLASS_TYPE_INDEX = 0;
package org.opendaylight.neutron.spi;
-import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
@XmlRootElement
@XmlAccessorType(XmlAccessType.NONE)
-public final class NeutronPort extends NeutronAdminAttributes<NeutronPort> implements Serializable {
+public final class NeutronPort extends NeutronAdminAttributes<NeutronPort> {
private static final long serialVersionUID = 1L;
// See OpenStack Network API v2.0 Reference for description of
this.networkUUID = networkUUID;
}
- public boolean isAdminStateUp() {
- if (adminStateUp == null) {
- return true;
- }
- return adminStateUp;
- }
-
public String getMacAddress() {
return macAddress;
}
package org.opendaylight.neutron.spi;
-import java.io.Serializable;
import java.math.BigInteger;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
@XmlRootElement
@XmlAccessorType(XmlAccessType.NONE)
-public final class NeutronQosBandwidthLimitRule extends NeutronObject<NeutronQosBandwidthLimitRule>
- implements Serializable, INeutronObject<NeutronQosBandwidthLimitRule> {
+public final class NeutronQosBandwidthLimitRule extends NeutronObject<NeutronQosBandwidthLimitRule> {
private static final long serialVersionUID = 1L;
@XmlElement(name = "max_kbps")
package org.opendaylight.neutron.spi;
-import java.io.Serializable;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
@XmlRootElement
@XmlAccessorType(XmlAccessType.NONE)
-public final class NeutronQosDscpMarkingRule extends NeutronObject<NeutronQosDscpMarkingRule>
- implements Serializable, INeutronObject<NeutronQosDscpMarkingRule> {
+public final class NeutronQosDscpMarkingRule extends NeutronObject<NeutronQosDscpMarkingRule> {
private static final long serialVersionUID = 1L;
@XmlElement(name = "dscp_mark")
*/
package org.opendaylight.neutron.spi;
-import java.io.Serializable;
import java.math.BigInteger;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
@XmlRootElement
@XmlAccessorType(XmlAccessType.NONE)
-public final class NeutronQosMinimumBandwidthRule extends NeutronObject<NeutronQosMinimumBandwidthRule>
- implements Serializable, INeutronObject<NeutronQosMinimumBandwidthRule> {
+public final class NeutronQosMinimumBandwidthRule extends NeutronObject<NeutronQosMinimumBandwidthRule> {
private static final long serialVersionUID = 1L;
@XmlElement(name = "min_kbps")
+ '\'' + ", qosMinimumBandwidthDirection='" + direction + '\''
+ '}';
}
-}
\ No newline at end of file
+}
package org.opendaylight.neutron.spi;
-import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
@XmlRootElement
@XmlAccessorType(XmlAccessType.NONE)
-public final class NeutronQosPolicy extends NeutronBaseAttributes<NeutronQosPolicy> implements Serializable {
+public final class NeutronQosPolicy extends NeutronBaseAttributes<NeutronQosPolicy> {
private static final long serialVersionUID = 1L;
@XmlElement(defaultValue = "false", name = "shared")
package org.opendaylight.neutron.spi;
-import java.io.Serializable;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
@XmlRootElement
@XmlAccessorType(XmlAccessType.NONE)
-public final class NeutronRouter extends NeutronAdminAttributes<NeutronRouter>
- implements Serializable {
+public final class NeutronRouter extends NeutronAdminAttributes<NeutronRouter> {
private static final long serialVersionUID = 1L;
// See OpenStack Network API v2.0 Reference for description of
public NeutronRouter() {
}
- public boolean isAdminStateUp() {
- if (adminStateUp == null) {
- return true;
- }
- return adminStateUp;
- }
-
public NeutronRouterNetworkReference getExternalGatewayInfo() {
return externalGatewayInfo;
}
package org.opendaylight.neutron.spi;
-import java.io.Serializable;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
@XmlRootElement
@XmlAccessorType(XmlAccessType.NONE)
-public final class NeutronRouterInterface extends NeutronObject<NeutronRouterInterface>
- implements Serializable, INeutronObject<NeutronRouterInterface> {
+public final class NeutronRouterInterface extends NeutronObject<NeutronRouterInterface> {
private static final long serialVersionUID = 1L;
// See OpenStack Network API v2.0 Reference for description of
*/
package org.opendaylight.neutron.spi;
-import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;
import javax.xml.bind.annotation.XmlAccessType;
@XmlRootElement
@XmlAccessorType(XmlAccessType.NONE)
-public final class NeutronSFCFlowClassifier extends NeutronBaseAttributes<NeutronSFCFlowClassifier>
- implements Serializable {
+public final class NeutronSFCFlowClassifier extends NeutronBaseAttributes<NeutronSFCFlowClassifier> {
private static final long serialVersionUID = 1L;
// See OpenStack Networking SFC (networking-sfc) API v1.0 Reference for description of
*/
package org.opendaylight.neutron.spi;
-import java.io.Serializable;
import java.util.List;
import java.util.Map;
import javax.xml.bind.annotation.XmlAccessType;
@XmlRootElement
@XmlAccessorType(XmlAccessType.NONE)
-public final class NeutronSFCPortChain extends NeutronBaseAttributes<NeutronSFCPortChain> implements Serializable {
+public final class NeutronSFCPortChain extends NeutronBaseAttributes<NeutronSFCPortChain> {
private static final long serialVersionUID = 1L;
// See OpenStack Networking SFC (networking-sfc) Port Chain API v1.0 Reference
*/
package org.opendaylight.neutron.spi;
-import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;
import javax.xml.bind.annotation.XmlAccessType;
@XmlRootElement
@XmlAccessorType(XmlAccessType.NONE)
-public final class NeutronSFCPortPair extends NeutronBaseAttributes<NeutronSFCPortPair> implements Serializable {
+public final class NeutronSFCPortPair extends NeutronBaseAttributes<NeutronSFCPortPair> {
private static final long serialVersionUID = 1L;
// See OpenStack Networking SFC (networking-sfc) Port Pair API v1.0 Reference
*/
package org.opendaylight.neutron.spi;
-import java.io.Serializable;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
@XmlRootElement
@XmlAccessorType(XmlAccessType.NONE)
-public final class NeutronSFCPortPairGroup extends NeutronBaseAttributes<NeutronSFCPortPairGroup>
- implements Serializable {
+public final class NeutronSFCPortPairGroup extends NeutronBaseAttributes<NeutronSFCPortPairGroup> {
private static final long serialVersionUID = 1L;
// See OpenStack Networking SFC (networking-sfc) Port Pair Group API v1.0
package org.opendaylight.neutron.spi;
-import java.io.Serializable;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement
@XmlAccessorType(XmlAccessType.NONE)
-public final class NeutronSecurityGroup extends NeutronBaseAttributes<NeutronSecurityGroup> implements Serializable {
+public final class NeutronSecurityGroup extends NeutronBaseAttributes<NeutronSecurityGroup> {
private static final long serialVersionUID = 1L;
public NeutronSecurityGroup() {
package org.opendaylight.neutron.spi;
-import java.io.Serializable;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
@XmlRootElement
@XmlAccessorType(XmlAccessType.NONE)
-public final class NeutronSecurityRule extends NeutronObject<NeutronSecurityRule>
- implements Serializable, INeutronObject<NeutronSecurityRule> {
+public final class NeutronSecurityRule extends NeutronObject<NeutronSecurityRule> {
private static final long serialVersionUID = 1L;
@XmlElement(name = "direction")
package org.opendaylight.neutron.spi;
import com.google.common.net.InetAddresses;
-import java.io.Serializable;
import java.math.BigInteger;
import java.net.Inet6Address;
import java.util.ArrayList;
@XmlRootElement
@XmlAccessorType(XmlAccessType.NONE)
-public final class NeutronSubnet extends NeutronBaseAttributes<NeutronSubnet> implements Serializable {
+public final class NeutronSubnet extends NeutronBaseAttributes<NeutronSubnet> {
private static final Logger LOG = LoggerFactory.getLogger(NeutronCRUDInterfaces.class);
private static final long serialVersionUID = 1L;
// convert to byte array
byte[] addrBytes = ((Inet6Address) InetAddresses.forString(parts[0])).getAddress();
for (int index = length; index < IPV6_LENGTH; index++) {
- if (((((int) addrBytes[index / IPV6_LENGTH_BYTES]) & IPV6_LSB_MASK)
- & (1 << (IPV6_BYTE_OFFSET - (index % IPV6_LENGTH_BYTES)))) != 0) {
- return (false);
+ if ((addrBytes[index / IPV6_LENGTH_BYTES] & IPV6_LSB_MASK
+ & 1 << IPV6_BYTE_OFFSET - index % IPV6_LENGTH_BYTES) != 0) {
+ return false;
}
}
- return (true);
+ return true;
}
return false;
}
try {
SubnetUtils util = new SubnetUtils(cidr);
SubnetInfo info = util.getInfo();
- if (gatewayIp == null || ("").equals(gatewayIp)) {
+ if (gatewayIp == null || "".equals(gatewayIp)) {
gatewayIp = info.getLowAddress();
}
if (allocationPools.size() < 1) {
BigInteger mask = BigInteger.ONE.shiftLeft(length).subtract(BigInteger.ONE);
String highAddress = NeutronSubnetIpAllocationPool
.bigIntegerToIp(lowAddressBi.add(mask).subtract(BigInteger.ONE));
- if (gatewayIp == null || ("").equals(gatewayIp)) {
+ if (gatewayIp == null || "".equals(gatewayIp)) {
gatewayIp = lowAddress;
}
if (allocationPools.size() < 1) {
byte[] cidrBytes = ((Inet6Address) InetAddresses.forString(parts[0])).getAddress();
byte[] ipBytes = ((Inet6Address) InetAddresses.forString(ipAddress)).getAddress();
for (int index = 0; index < length; index++) {
- if (((((int) cidrBytes[index / IPV6_LENGTH_BYTES]) & IPV6_LSB_MASK) & (1 << (IPV6_BYTE_OFFSET
- - (index % IPV6_LENGTH_BYTES)))) != (
- (((int) ipBytes[index / IPV6_LENGTH_BYTES]) & IPV6_LSB_MASK)
- & (1 << (IPV6_BYTE_OFFSET - (index % IPV6_LENGTH_BYTES))))) {
- return (false);
+ if ((cidrBytes[index / IPV6_LENGTH_BYTES] & IPV6_LSB_MASK & 1 << IPV6_BYTE_OFFSET
+ - index % IPV6_LENGTH_BYTES) != (
+ ipBytes[index / IPV6_LENGTH_BYTES] & IPV6_LSB_MASK
+ & 1 << IPV6_BYTE_OFFSET - index % IPV6_LENGTH_BYTES)) {
+ return false;
}
}
- return (true);
+ return true;
}
return false;
}
package org.opendaylight.neutron.spi;
-import java.io.Serializable;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
@XmlRootElement
@XmlAccessorType(XmlAccessType.NONE)
-public final class NeutronTapFlow extends NeutronBaseAttributes<NeutronTapFlow> implements Serializable {
+public final class NeutronTapFlow extends NeutronBaseAttributes<NeutronTapFlow> {
private static final long serialVersionUID = 1L;
@XmlElement(name = "tap_service_id")
package org.opendaylight.neutron.spi;
-import java.io.Serializable;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
@XmlRootElement
@XmlAccessorType(XmlAccessType.NONE)
-public final class NeutronTapService extends NeutronBaseAttributes<NeutronTapService> implements Serializable {
+public final class NeutronTapService extends NeutronBaseAttributes<NeutronTapService> {
private static final long serialVersionUID = 1L;
@XmlElement(name = "port_id")
package org.opendaylight.neutron.spi;
-import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
@XmlRootElement(name = "trunk")
@XmlAccessorType(XmlAccessType.NONE)
-public final class NeutronTrunk extends NeutronAdminAttributes<NeutronTrunk> implements Serializable {
+public final class NeutronTrunk extends NeutronAdminAttributes<NeutronTrunk> {
private static final long serialVersionUID = 1L;
@XmlElement(name = "port_id")
package org.opendaylight.neutron.spi;
-import java.io.Serializable;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
@XmlRootElement
@XmlAccessorType(XmlAccessType.NONE)
-public final class NeutronVpnIkePolicy extends NeutronBaseAttributes<NeutronVpnIkePolicy> implements Serializable {
+public final class NeutronVpnIkePolicy extends NeutronBaseAttributes<NeutronVpnIkePolicy> {
private static final long serialVersionUID = 1L;
// See OpenStack Network API v2.0 Reference for description of
package org.opendaylight.neutron.spi;
-import java.io.Serializable;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
@XmlRootElement
@XmlAccessorType(XmlAccessType.NONE)
-public final class NeutronVpnIpSecPolicy extends NeutronBaseAttributes<NeutronVpnIpSecPolicy> implements Serializable {
+public final class NeutronVpnIpSecPolicy extends NeutronBaseAttributes<NeutronVpnIpSecPolicy> {
private static final long serialVersionUID = 1L;
// See OpenStack Network API v2.0 Reference for description of
package org.opendaylight.neutron.spi;
-import java.io.Serializable;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
@XmlRootElement
@XmlAccessorType(XmlAccessType.NONE)
-public final class NeutronVpnIpSecSiteConnection extends NeutronAdminAttributes<NeutronVpnIpSecSiteConnection>
- implements Serializable {
+public final class NeutronVpnIpSecSiteConnection extends NeutronAdminAttributes<NeutronVpnIpSecSiteConnection> {
private static final long serialVersionUID = 1L;
// See OpenStack Network API v2.0 Reference for description of
package org.opendaylight.neutron.spi;
-import java.io.Serializable;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
@XmlRootElement
@XmlAccessorType(XmlAccessType.NONE)
-public final class NeutronVpnService extends NeutronAdminAttributes<NeutronVpnService> implements Serializable {
+public final class NeutronVpnService extends NeutronAdminAttributes<NeutronVpnService> {
private static final long serialVersionUID = 1L;
// See OpenStack Network API v2.0 Reference for description of
<parent>
<groupId>org.opendaylight.neutron</groupId>
<artifactId>project-neutron-parent</artifactId>
- <version>0.10.0-SNAPSHOT</version>
+ <version>0.11.0-SNAPSHOT</version>
<relativePath>../parent</relativePath>
</parent>
<groupId>org.opendaylight.neutron</groupId>
<artifactId>northbound-api</artifactId>
- <version>0.10.0-SNAPSHOT</version>
+ <version>0.11.0-SNAPSHOT</version>
<packaging>bundle</packaging>
<!-- <name> formatting is used by autorelease to parse and notify projects on
build failure. Please do not modify this unless you have a good reason. -->
package org.opendaylight.neutron.northbound.api;
+import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
@XmlRootElement
@XmlAccessorType(XmlAccessType.NONE)
+@SuppressFBWarnings("URF_UNREAD_FIELD")
public final class NeutronBgpvpnRequest implements INeutronRequest<NeutronBgpvpn> {
// See OpenStack Network API v2.0 Reference for description of
// annotated attributes
package org.opendaylight.neutron.northbound.api;
+import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
@XmlRootElement
@XmlAccessorType(XmlAccessType.NONE)
+@SuppressFBWarnings("URF_UNREAD_FIELD")
public final class NeutronFirewallPolicyRequest implements INeutronRequest<NeutronFirewallPolicy> {
/**
* See OpenStack Network API v2.0 Reference for description of the following link.
package org.opendaylight.neutron.northbound.api;
+import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
@XmlRootElement
@XmlAccessorType(XmlAccessType.NONE)
+@SuppressFBWarnings("URF_UNREAD_FIELD")
public final class NeutronFirewallRequest implements INeutronRequest<NeutronFirewall> {
/**
* See OpenStack Network API v2.0 Reference for description of the following link.
package org.opendaylight.neutron.northbound.api;
+import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
@XmlRootElement
@XmlAccessorType(XmlAccessType.NONE)
+@SuppressFBWarnings("URF_UNREAD_FIELD")
public final class NeutronFirewallRuleRequest implements INeutronRequest<NeutronFirewallRule> {
/**
* See OpenStack Network API v2.0 Reference for description of the following link.
package org.opendaylight.neutron.northbound.api;
+import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
@XmlRootElement
@XmlAccessorType(XmlAccessType.NONE)
+@SuppressFBWarnings("URF_UNREAD_FIELD")
public final class NeutronFloatingIpRequest implements INeutronRequest<NeutronFloatingIp> {
// See OpenStack Network API v2.0 Reference for description of
// annotated attributes
package org.opendaylight.neutron.northbound.api;
+import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
@XmlRootElement
@XmlAccessorType(XmlAccessType.NONE)
+@SuppressFBWarnings("URF_UNREAD_FIELD")
public final class NeutronL2gatewayConnectionRequest implements INeutronRequest<NeutronL2gatewayConnection> {
@XmlElement(name = "l2gateway_connection")
NeutronL2gatewayConnection singleton;
package org.opendaylight.neutron.northbound.api;
+import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import java.util.List;
import javax.xml.bind.annotation.XmlElement;
import org.opendaylight.neutron.spi.NeutronL2gateway;
+@SuppressFBWarnings("URF_UNREAD_FIELD")
public final class NeutronL2gatewayRequest implements INeutronRequest<NeutronL2gateway> {
@XmlElement(name = "l2_gateway")
NeutronL2gateway singleton;
package org.opendaylight.neutron.northbound.api;
+import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
@XmlRootElement
@XmlAccessorType(XmlAccessType.NONE)
+@SuppressFBWarnings("URF_UNREAD_FIELD")
public final class NeutronLoadBalancerHealthMonitorRequest
implements INeutronRequest<NeutronLoadBalancerHealthMonitor> {
/**
package org.opendaylight.neutron.northbound.api;
+import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
@XmlRootElement
@XmlAccessorType(XmlAccessType.NONE)
+@SuppressFBWarnings("URF_UNREAD_FIELD")
public final class NeutronLoadBalancerListenerRequest implements INeutronRequest<NeutronLoadBalancerListener> {
/**
* See OpenStack Network API v2.0 Reference for description of the following link.
package org.opendaylight.neutron.northbound.api;
+import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import java.util.List;
import javax.xml.bind.annotation.XmlElement;
import org.opendaylight.neutron.spi.NeutronLoadBalancerPoolMember;
+@SuppressFBWarnings("URF_UNREAD_FIELD")
public final class NeutronLoadBalancerPoolMemberRequest implements INeutronRequest<NeutronLoadBalancerPoolMember> {
/**
* See OpenStack Network API v2.0 Reference for description of the following link.
package org.opendaylight.neutron.northbound.api;
+import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
@XmlRootElement
@XmlAccessorType(XmlAccessType.NONE)
+@SuppressFBWarnings("URF_UNREAD_FIELD")
public final class NeutronLoadBalancerPoolRequest implements INeutronRequest<NeutronLoadBalancerPool> {
/**
* See OpenStack Network API v2.0 Reference for description of the following link.
package org.opendaylight.neutron.northbound.api;
+import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
@XmlRootElement
@XmlAccessorType(XmlAccessType.NONE)
+@SuppressFBWarnings("URF_UNREAD_FIELD")
public final class NeutronLoadBalancerRequest implements INeutronRequest<NeutronLoadBalancer> {
/**
* See OpenStack Network API v2.0 Reference for description of the following link.
package org.opendaylight.neutron.northbound.api;
+import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
@XmlRootElement
@XmlAccessorType(XmlAccessType.NONE)
+@SuppressFBWarnings("URF_UNREAD_FIELD")
public final class NeutronMeteringLabelRequest implements INeutronRequest<NeutronMeteringLabel> {
// See OpenStack Network API v2.0 Reference for description of
// annotated attributes
package org.opendaylight.neutron.northbound.api;
+import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
@XmlRootElement
@XmlAccessorType(XmlAccessType.NONE)
+@SuppressFBWarnings("URF_UNREAD_FIELD")
public final class NeutronMeteringLabelRuleRequest implements INeutronRequest<NeutronMeteringLabelRule> {
// See OpenStack Network API v2.0 Reference for description of
// annotated attributes
package org.opendaylight.neutron.northbound.api;
+import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
@XmlRootElement
@XmlAccessorType(XmlAccessType.NONE)
+@SuppressFBWarnings("URF_UNREAD_FIELD")
public final class NeutronNetworkRequest implements INeutronRequest<NeutronNetwork> {
// See OpenStack Network API v2.0 Reference for description of
// annotated attributes
package org.opendaylight.neutron.northbound.api;
+import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
@XmlRootElement
@XmlAccessorType(XmlAccessType.NONE)
+@SuppressFBWarnings("URF_UNREAD_FIELD")
public final class NeutronPortRequest implements INeutronRequest<NeutronPort> {
// See OpenStack Network API v2.0 Reference for description of
// annotated attributes
package org.opendaylight.neutron.northbound.api;
+import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
@XmlRootElement
@XmlAccessorType(XmlAccessType.NONE)
+@SuppressFBWarnings("URF_UNREAD_FIELD")
public final class NeutronQosPolicyRequest implements INeutronRequest<NeutronQosPolicy> {
@XmlElement(name = "policy")
NeutronQosPolicy singleton;
package org.opendaylight.neutron.northbound.api;
+import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
@XmlRootElement
@XmlAccessorType(XmlAccessType.NONE)
+@SuppressFBWarnings("URF_UNREAD_FIELD")
public final class NeutronRouterRequest implements INeutronRequest<NeutronRouter> {
// See OpenStack Network API v2.0 Reference for description of
// annotated attributes
*/
package org.opendaylight.neutron.northbound.api;
+import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
@XmlRootElement
@XmlAccessorType(XmlAccessType.NONE)
+@SuppressFBWarnings("URF_UNREAD_FIELD")
public final class NeutronSFCFlowClassifierRequest implements INeutronRequest<NeutronSFCFlowClassifier> {
// See OpenStack Networking SFC (networking-sfc) API v1.0 Reference for description of
// annotated attributes
*/
package org.opendaylight.neutron.northbound.api;
+import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
@XmlRootElement
@XmlAccessorType(XmlAccessType.NONE)
+@SuppressFBWarnings("URF_UNREAD_FIELD")
public final class NeutronSFCPortChainRequest implements INeutronRequest<NeutronSFCPortChain> {
// See OpenStack Networking SFC (networking-sfc) Port Chain API v1.0 Reference
// for description of annotated attributes
*/
package org.opendaylight.neutron.northbound.api;
+import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
@XmlRootElement
@XmlAccessorType(XmlAccessType.NONE)
+@SuppressFBWarnings("URF_UNREAD_FIELD")
public final class NeutronSFCPortPairGroupRequest implements INeutronRequest<NeutronSFCPortPairGroup> {
// See OpenStack Networking SFC (networking-sfc) Port Pair Group API v1.0 Reference
// for description of annotated attributes
*/
package org.opendaylight.neutron.northbound.api;
+import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
@XmlRootElement
@XmlAccessorType(XmlAccessType.NONE)
+@SuppressFBWarnings("URF_UNREAD_FIELD")
public final class NeutronSFCPortPairRequest implements INeutronRequest<NeutronSFCPortPair> {
// See OpenStack Networking SFC (networking-sfc) Port Pair API v1.0 Reference
// for description of annotated attributes
package org.opendaylight.neutron.northbound.api;
+import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
@XmlRootElement
@XmlAccessorType(XmlAccessType.NONE)
+@SuppressFBWarnings("URF_UNREAD_FIELD")
public final class NeutronSecurityGroupRequest implements INeutronRequest<NeutronSecurityGroup> {
/**
* See OpenStack Network API v2.0 Reference for a
package org.opendaylight.neutron.northbound.api;
+import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
@XmlRootElement
@XmlAccessorType(XmlAccessType.NONE)
+@SuppressFBWarnings("URF_UNREAD_FIELD")
public final class NeutronSecurityRuleRequest implements INeutronRequest<NeutronSecurityRule> {
/**
* See OpenStack Network API v2.0 Reference for a
package org.opendaylight.neutron.northbound.api;
+import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
@XmlRootElement
@XmlAccessorType(XmlAccessType.NONE)
+@SuppressFBWarnings("URF_UNREAD_FIELD")
public final class NeutronSubnetRequest implements INeutronRequest<NeutronSubnet> {
// See OpenStack Network API v2.0 Reference for description of
// annotated attributes
package org.opendaylight.neutron.northbound.api;
+import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
@XmlRootElement
@XmlAccessorType(XmlAccessType.NONE)
+@SuppressFBWarnings("URF_UNREAD_FIELD")
public final class NeutronTapFlowRequest implements INeutronRequest<NeutronTapFlow> {
@XmlElement(name = "tap_flow")
NeutronTapFlow singleton;
package org.opendaylight.neutron.northbound.api;
+import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
@XmlRootElement
@XmlAccessorType(XmlAccessType.NONE)
+@SuppressFBWarnings("URF_UNREAD_FIELD")
public final class NeutronTapServiceRequest implements INeutronRequest<NeutronTapService> {
@XmlElement(name = "tap_service")
NeutronTapService singleton;
package org.opendaylight.neutron.northbound.api;
+import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
@XmlRootElement
@XmlAccessorType(XmlAccessType.NONE)
+@SuppressFBWarnings("URF_UNREAD_FIELD")
public final class NeutronTrunkRequest implements INeutronRequest<NeutronTrunk> {
@XmlElement(name = "trunk")
package org.opendaylight.neutron.northbound.api;
+import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
@XmlRootElement
@XmlAccessorType(XmlAccessType.NONE)
+@SuppressFBWarnings("URF_UNREAD_FIELD")
public final class NeutronVpnIkePolicyRequest implements INeutronRequest<NeutronVpnIkePolicy> {
@XmlElement(name = "ikepolicy")
NeutronVpnIkePolicy singleton;
package org.opendaylight.neutron.northbound.api;
+import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
@XmlRootElement
@XmlAccessorType(XmlAccessType.NONE)
+@SuppressFBWarnings("URF_UNREAD_FIELD")
public final class NeutronVpnIpSecPolicyRequest implements INeutronRequest<NeutronVpnIpSecPolicy> {
@XmlElement(name = "ipsecpolicy")
NeutronVpnIpSecPolicy singleton;
package org.opendaylight.neutron.northbound.api;
+import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
@XmlRootElement
@XmlAccessorType(XmlAccessType.NONE)
+@SuppressFBWarnings("URF_UNREAD_FIELD")
public final class NeutronVpnIpSecSiteConnectionRequest implements INeutronRequest<NeutronVpnIpSecSiteConnection> {
@XmlElement(name = "ipsec_site_connection")
NeutronVpnIpSecSiteConnection singleton;
package org.opendaylight.neutron.northbound.api;
+import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
@XmlRootElement
@XmlAccessorType(XmlAccessType.NONE)
+@SuppressFBWarnings("URF_UNREAD_FIELD")
public final class NeutronVpnServiceRequest implements INeutronRequest<NeutronVpnService> {
@XmlElement(name = "vpnservice")
NeutronVpnService singleton;
public final class PaginatedRequestFactory {
- private static final Comparator<INeutronObject> NEUTRON_OBJECT_COMPARATOR = new Comparator<INeutronObject>() {
- @Override
- public int compare(INeutronObject o1, INeutronObject o2) {
- return o1.getID().compareTo(o2.getID());
- }
- };
+ private static final Comparator<INeutronObject<?>> NEUTRON_OBJECT_COMPARATOR =
+ (o1, o2) -> o1.getID().compareTo(o2.getID());
public static class PaginationResults<T extends INeutronObject<T>> {
List<T> collection;
}
}
- private static final class MarkerObject extends NeutronObject<MarkerObject>
- implements INeutronObject<MarkerObject> {
+ private static final class MarkerObject extends NeutronObject<MarkerObject> {
+ private static final long serialVersionUID = 1L;
+
private final String id;
MarkerObject(String id) {
-<?xml version="1.0" encoding="ISO-8859-1"?>\r
-<web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"\r
- xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"\r
- version="3.0">\r
- <servlet>\r
- <servlet-name>JAXRSNeutron</servlet-name>\r
- <servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer</servlet-class>\r
- <init-param>\r
- <param-name>javax.ws.rs.Application</param-name>\r
- <param-value>org.opendaylight.neutron.northbound.api.NeutronNorthboundRSApplication</param-value>\r
- </init-param>\r
- <load-on-startup>1</load-on-startup>\r
- </servlet>\r
-\r
- <servlet-mapping>\r
- <servlet-name>JAXRSNeutron</servlet-name>\r
- <url-pattern>/*</url-pattern>\r
- </servlet-mapping>\r
-\r
- <context-param>\r
- <param-name>shiroEnvironmentClass</param-name>\r
- <param-value>org.opendaylight.aaa.shiro.web.env.KarafIniWebEnvironment</param-value>\r
- </context-param>\r
-\r
- <listener>\r
- <listener-class>org.apache.shiro.web.env.EnvironmentLoaderListener</listener-class>\r
- </listener>\r
-\r
- <filter>\r
- <filter-name>ShiroFilter</filter-name>\r
- <filter-class>org.opendaylight.aaa.shiro.filters.AAAShiroFilter</filter-class>\r
- </filter>\r
-\r
- <filter-mapping>\r
- <filter-name>ShiroFilter</filter-name>\r
- <url-pattern>/*</url-pattern>\r
- </filter-mapping>\r
-\r
- <filter>\r
- <filter-name>cross-origin-restconf</filter-name>\r
- <filter-class>org.eclipse.jetty.servlets.CrossOriginFilter</filter-class>\r
- <init-param>\r
- <param-name>allowedOrigins</param-name>\r
- <param-value>*</param-value>\r
- </init-param>\r
- <init-param>\r
- <param-name>allowedMethods</param-name>\r
- <param-value>GET,POST,OPTIONS,DELETE,PUT,HEAD</param-value>\r
- </init-param>\r
- <init-param>\r
- <param-name>allowedHeaders</param-name>\r
- <param-value>origin, content-type, accept, authorization</param-value>\r
- </init-param>\r
- </filter>\r
- <filter-mapping>\r
- <filter-name>cross-origin-restconf</filter-name>\r
- <url-pattern>/*</url-pattern>\r
- </filter-mapping>\r
- <security-constraint>\r
- <web-resource-collection>\r
- <web-resource-name>NB api</web-resource-name>\r
- <url-pattern>/*</url-pattern>\r
- <http-method>POST</http-method>\r
- <http-method>GET</http-method>\r
- <http-method>PUT</http-method>\r
- <http-method>PATCH</http-method>\r
- <http-method>DELETE</http-method>\r
- <http-method>HEAD</http-method>\r
- </web-resource-collection>\r
- </security-constraint>\r
-</web-app>\r
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
+ version="3.0">
+ <servlet>
+ <servlet-name>JAXRSNeutron</servlet-name>
+ <servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer</servlet-class>
+ <init-param>
+ <param-name>javax.ws.rs.Application</param-name>
+ <param-value>org.opendaylight.neutron.northbound.api.NeutronNorthboundRSApplication</param-value>
+ </init-param>
+ <load-on-startup>1</load-on-startup>
+ </servlet>
+
+ <servlet-mapping>
+ <servlet-name>JAXRSNeutron</servlet-name>
+ <url-pattern>/*</url-pattern>
+ </servlet-mapping>
+
+ <context-param>
+ <param-name>shiroEnvironmentClass</param-name>
+ <param-value>org.opendaylight.aaa.shiro.web.env.KarafIniWebEnvironment</param-value>
+ </context-param>
+
+ <listener>
+ <listener-class>org.apache.shiro.web.env.EnvironmentLoaderListener</listener-class>
+ </listener>
+
+ <filter>
+ <filter-name>ShiroFilter</filter-name>
+ <filter-class>org.opendaylight.aaa.shiro.filters.AAAShiroFilter</filter-class>
+ </filter>
+
+ <filter-mapping>
+ <filter-name>ShiroFilter</filter-name>
+ <url-pattern>/*</url-pattern>
+ </filter-mapping>
+
+ <filter>
+ <filter-name>cross-origin-restconf</filter-name>
+ <filter-class>org.eclipse.jetty.servlets.CrossOriginFilter</filter-class>
+ <init-param>
+ <param-name>allowedOrigins</param-name>
+ <param-value>*</param-value>
+ </init-param>
+ <init-param>
+ <param-name>allowedMethods</param-name>
+ <param-value>GET,POST,OPTIONS,DELETE,PUT,HEAD</param-value>
+ </init-param>
+ <init-param>
+ <param-name>allowedHeaders</param-name>
+ <param-value>origin, content-type, accept, authorization</param-value>
+ </init-param>
+ </filter>
+ <filter-mapping>
+ <filter-name>cross-origin-restconf</filter-name>
+ <url-pattern>/*</url-pattern>
+ </filter-mapping>
+</web-app>
<parent>
<groupId>org.opendaylight.mdsal</groupId>
<artifactId>binding-parent</artifactId>
- <version>0.12.0-SNAPSHOT</version>
+ <version>0.13.0-SNAPSHOT</version>
<relativePath/>
</parent>
<groupId>org.opendaylight.neutron</groupId>
<artifactId>project-neutron-parent</artifactId>
- <version>0.10.0-SNAPSHOT</version>
+ <version>0.11.0-SNAPSHOT</version>
<packaging>pom</packaging>
<!-- <name> formatting is used by autorelease to parse and notify projects on
build failure. Please do not modify this unless you have a good reason. -->
<dependency>
<groupId>org.opendaylight.controller</groupId>
<artifactId>mdsal-artifacts</artifactId>
- <version>1.7.0-SNAPSHOT</version>
+ <version>1.8.0-SNAPSHOT</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<parent>
<groupId>org.opendaylight.neutron</groupId>
<artifactId>project-neutron-parent</artifactId>
- <version>0.10.0-SNAPSHOT</version>
+ <version>0.11.0-SNAPSHOT</version>
<relativePath>parent</relativePath>
</parent>
<groupId>org.opendaylight.neutron</groupId>
<artifactId>project-neutron</artifactId>
- <version>0.10.0-SNAPSHOT</version>
+ <version>0.11.0-SNAPSHOT</version>
<packaging>pom</packaging>
<name>neutron</name> <!-- Used by Sonar to set project name -->
<description>OpenDaylight Neutron Northbound Service</description>
<parent>
<groupId>org.opendaylight.neutron</groupId>
<artifactId>project-neutron-parent</artifactId>
- <version>0.10.0-SNAPSHOT</version>
+ <version>0.11.0-SNAPSHOT</version>
<relativePath>../parent</relativePath>
</parent>
<groupId>org.opendaylight.neutron</groupId>
<artifactId>transcriber</artifactId>
- <version>0.10.0-SNAPSHOT</version>
+ <version>0.11.0-SNAPSHOT</version>
<packaging>bundle</packaging>
<!-- <name> formatting is used by autorelease to parse and notify projects on
build failure. Please do not modify this unless you have a good reason. -->
result.setNetworkID(String.valueOf(l2gatewayConnection.getNetworkId().getValue()));
}
if (l2gatewayConnection.getSegmentId() != null) {
- result.setSegmentID(Integer.valueOf(l2gatewayConnection.getSegmentId()));
+ result.setSegmentID(l2gatewayConnection.getSegmentId());
}
if (l2gatewayConnection.getPortId() != null) {
result.setPortID(String.valueOf(l2gatewayConnection.getPortId().getValue()));
l2gatewayConnectionBuilder.setNetworkId(toUuid(neutronObject.getNetworkID()));
}
if (neutronObject.getSegmentID() != null) {
- l2gatewayConnectionBuilder.setSegmentId((neutronObject.getSegmentID()));
+ l2gatewayConnectionBuilder.setSegmentId(neutronObject.getSegmentID());
}
if (neutronObject.getPortID() != null) {
l2gatewayConnectionBuilder.setPortId(toUuid(neutronObject.getPortID()));
final NeutronL2gatewayDevice neutronL2gatewayDevice = new NeutronL2gatewayDevice();
final List<NeutronL2gatewayDeviceInterface> neutronL2gatewayDeviceInterfaces = new ArrayList<>();
if (device.getDeviceName() != null) {
- neutronL2gatewayDevice.setDeviceName(device.getDeviceName().toString());
+ neutronL2gatewayDevice.setDeviceName(device.getDeviceName());
}
if (device.getUuid() != null) {
neutronL2gatewayDevice.setID(device.getUuid().getValue());
String interfaceName = null;
final List<Integer> segmentationIds = new ArrayList<>();
if (deviceInterface.getInterfaceName() != null) {
- interfaceName = deviceInterface.getInterfaceName().toString();
+ interfaceName = deviceInterface.getInterfaceName();
}
if (deviceInterface.getSegmentationIds() != null) {
for (final Integer segmentId : deviceInterface.getSegmentationIds()) {
healthmonitorBuilder.setHttpMethod(healthMonitor.getLoadBalancerHealthMonitorHttpMethod());
}
if (healthMonitor.getLoadBalancerHealthMonitorMaxRetries() != null) {
- healthmonitorBuilder.setMaxRetries(Integer.valueOf(healthMonitor.getLoadBalancerHealthMonitorMaxRetries()));
+ healthmonitorBuilder.setMaxRetries(healthMonitor.getLoadBalancerHealthMonitorMaxRetries());
}
if (healthMonitor.getLoadBalancerHealthMonitorPools() != null) {
final List<Uuid> listUuid = new ArrayList<>();
answer.setLoadBalancerHealthMonitorHttpMethod(healthMonitor.getHttpMethod());
}
if (healthMonitor.getMaxRetries() != null) {
- answer.setLoadBalancerHealthMonitorMaxRetries(Integer.valueOf(healthMonitor.getMaxRetries()));
+ answer.setLoadBalancerHealthMonitorMaxRetries(healthMonitor.getMaxRetries());
}
if (healthMonitor.getPools() != null) {
final List<NeutronID> list = new ArrayList<>();
answer.setSecurityRuleEthertype(ETHERTYPE_MAP.get(rule.getEthertype()));
}
if (rule.getPortRangeMin() != null) {
- answer.setSecurityRulePortMin(Integer.valueOf(rule.getPortRangeMin()));
+ answer.setSecurityRulePortMin(rule.getPortRangeMin());
}
if (rule.getPortRangeMax() != null) {
- answer.setSecurityRulePortMax(Integer.valueOf(rule.getPortRangeMax()));
+ answer.setSecurityRulePortMax(rule.getPortRangeMax());
}
return answer;
}
.setEthertype(mapper.get(securityRule.getSecurityRuleEthertype()));
}
if (securityRule.getSecurityRulePortMin() != null) {
- securityRuleBuilder.setPortRangeMin(Integer.valueOf(securityRule.getSecurityRulePortMin()));
+ securityRuleBuilder.setPortRangeMin(securityRule.getSecurityRulePortMin());
}
if (securityRule.getSecurityRulePortMax() != null) {
- securityRuleBuilder.setPortRangeMax(Integer.valueOf(securityRule.getSecurityRulePortMax()));
+ securityRuleBuilder.setPortRangeMax(securityRule.getSecurityRulePortMax());
}
return securityRuleBuilder.build();
}