yang-gen-sal
maven-metadata-local.xml
.factorypath
+.fbExcludeFilterFile
+
@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);
}
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
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) {
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();
}