just... to be sure - re. the NEUTRON-159 mess.
JIRA: NEUTRON-159
Change-Id: I763016a1d535e9778d4497389f190be7227e690c
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
@Override
public String toString() {
return "NeutronBgpvpn [bgpvpnUUID=" + uuid + ", bgpvpnName=" + name + ", adminStateUp=" + adminStateUp
- + ", status=" + status + ", tenantID=" + tenantID + ", type=" + type + ", technique=" + technique
+ + ", status=" + status + ", tenantID=" + getTenantID() + ", type=" + type + ", technique=" + technique
+ ", routeTargets=" + routeTargets + ", importTargets=" + importTargets + ", exportTargets="
+ exportTargets + ", routeDistinguishers=" + routeDistinguishers + ", vnid = " + vnid
+ ", autoAggregate = " + autoAggregate + ", networks = " + networks + ", routers = " + routers + "]";
@Override
public String toString() {
- return "NeutronFirewall{" + "firewallUUID='" + uuid + '\'' + ", firewallTenantID='" + tenantID + '\''
+ return "NeutronFirewall{" + "firewallUUID='" + uuid + '\'' + ", firewallTenantID='" + getTenantID() + '\''
+ ", firewallName='" + name + '\'' + ", firewallAdminStateIsUp=" + firewallAdminStateIsUp
+ ", firewallIsShared=" + firewallIsShared + ", firewallRulePolicyID=" + firewallPolicyID + '}';
}
* 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 javax.xml.bind.annotation.XmlAccessType;
* http://docs.openstack.org/api/openstack-network/2.0/openstack-network.pdf
*
*/
-
@XmlRootElement
@XmlAccessorType(XmlAccessType.NONE)
public final class NeutronFirewallPolicy extends NeutronBaseAttributes<NeutronFirewallPolicy> {
@Override
public String toString() {
- return "NeutronFirewallPolicy{" + "firewallPolicyUUID='" + uuid + '\'' + ", firewallPolicyTenantID='" + tenantID
- + '\'' + ", firewallPolicyName='" + name + '\'' + ", firewallPolicyIsShared="
+ return "NeutronFirewallPolicy{" + "firewallPolicyUUID='" + uuid + '\'' + ", firewallPolicyTenantID='"
+ + getTenantID() + '\'' + ", firewallPolicyName='" + name + '\'' + ", firewallPolicyIsShared="
+ firewallPolicyIsShared + ", firewallPolicyIsAudited='" + firewallPolicyIsAudited + '\'' + '}';
}
}
@Override
public String toString() {
- return "firewallPolicyRules{" + "firewallRuleUUID='" + uuid + '\'' + ", firewallRuleTenantID='" + tenantID
+ return "firewallPolicyRules{" + "firewallRuleUUID='" + uuid + '\'' + ", firewallRuleTenantID='" + getTenantID()
+ '\'' + ", firewallRuleName='" + name + '\'' + ", firewallRuleIsShared="
+ firewallRuleIsShared + ", firewallRulePolicyID=" + firewallRulePolicyID + ", firewallRuleProtocol='"
+ firewallRuleProtocol + '\'' + ", firewallRuleIpVer=" + firewallRuleIpVer + ", firewallRuleSrcIpAddr='"
public String toString() {
return "NeutronFloatingIp{" + "fipUUID='" + uuid + '\'' + ", fipFloatingNetworkId='" + floatingNetworkUUID
+ '\'' + ", fipPortUUID='" + portUUID + '\'' + ", fipFixedIpAddress='" + fixedIpAddress + '\''
- + ", fipFloatingIpAddress=" + floatingIpAddress + ", fipTenantId='" + tenantID + '\''
+ + ", fipFloatingIpAddress=" + floatingIpAddress + ", fipTenantId='" + getTenantID() + '\''
+ ", fipRouterId='" + routerUUID + '\'' + ", fipStatus='" + status + '\'' + '}';
}
}
@Override
public String toString() {
- return "NeutronL2Gateway [" + "id = " + uuid + ", name = " + name + ", tenant_id = " + tenantID
+ return "NeutronL2Gateway [" + "id = " + uuid + ", name = " + name + ", tenant_id = " + getTenantID()
+ ", devices = " + l2gatewayDevices + "]";
}
@Override
public String toString() {
- return "NeutronL2GatewayConnection [" + "tenant_id = " + tenantID + ", connection_id = " + uuid
+ return "NeutronL2GatewayConnection [" + "tenant_id = " + getTenantID() + ", connection_id = " + uuid
+ ", gateway_id = " + l2gatewayID + ", network_id = " + networkID + ", segmentation_id = " + segmentID
+ ", port_id = " + portID + "]";
}
* 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 javax.xml.bind.annotation.XmlAccessType;
* vip_subnet uuid-str
* http://docs.openstack.org/api/openstack-network/2.0/openstack-network.pdf
*/
-
@XmlRootElement
@XmlAccessorType(XmlAccessType.NONE)
public final class NeutronLoadBalancer extends NeutronAdminAttributes<NeutronLoadBalancer> {
@Override
public String toString() {
- return "NeutronLoadBalancer{" + "loadBalancerID='" + uuid + '\'' + ", loadBalancerTenantID='" + tenantID + '\''
- + ", loadBalancerName='" + name + '\'' + ", loadBalancerStatus='" + status
- + '\'' + ", loadBalancerAdminStateUp='" + adminStateUp + '\'' + ", loadBalancerVipAddress='"
+ return "NeutronLoadBalancer{" + "loadBalancerID='" + uuid + '\'' + ", loadBalancerTenantID='" + getTenantID()
+ + '\'' + ", loadBalancerName='" + name + '\'' + ", loadBalancerStatus='" + status + '\''
+ + ", loadBalancerAdminStateUp='" + adminStateUp + '\'' + ", loadBalancerVipAddress='"
+ loadBalancerVipAddress + '\'' + ", loadBalancerVipSubnetID='" + loadBalancerVipSubnetID + '\'' + '}';
}
}
@Override
public String toString() {
return "NeutronLoadBalancerHealthMonitor{" + "loadBalancerHealthMonitorID='" + uuid + '\''
- + ", loadBalancerHealthMonitorTenantID='" + tenantID + '\'' + ", loadBalancerHealthMonitorType='"
+ + ", loadBalancerHealthMonitorTenantID='" + getTenantID() + '\'' + ", loadBalancerHealthMonitorType='"
+ loadBalancerHealthMonitorType + '\'' + ", loadBalancerHealthMonitorDelay="
+ loadBalancerHealthMonitorDelay + ", loadBalancerHealthMonitorTimeout="
+ loadBalancerHealthMonitorTimeout + ", loadBalancerHealthMonitorMaxRetries="
return "NeutronLoadBalancerListener{" + "loadBalancerListenerID='" + uuid + '\''
+ ", loadBalancerListenerDefaultPoolID='" + loadBalancerListenerDefaultPoolID + '\''
+ ", loadBalancerListenerConnectionLimit='" + loadBalancerListenerConnectionLimit + '\''
- + ", loadBalancerListenerTenantID='" + tenantID + '\''
+ + ", loadBalancerListenerTenantID='" + getTenantID() + '\''
+ ", loadBalancerListenerName='" + name + '\''
+ ", loadBalancerListenerAdminStateIsUp=" + loadBalancerListenerAdminStateIsUp + '\''
+ ", loadBalancerListenerProtocol='" + loadBalancerListenerProtocol + '\''
@Override
public String toString() {
- return "NeutronLoadBalancerPool{" + "id='" + uuid + '\'' + ", tenantID='" + tenantID + '\'' + ", name='"
+ return "NeutronLoadBalancerPool{" + "id='" + uuid + '\'' + ", tenantID='" + getTenantID() + '\'' + ", name='"
+ name + '\'' + ", protocol=" + loadBalancerPoolProtocol + '\'' + ", lbAlgorithm='"
+ loadBalancerPoolLbAlgorithm + '\'' + ", healthmonitorID=" + loadBalancerPoolHealthMonitorID
+ ", adminStateUp=" + loadBalancerPoolAdminStateIsUp + '}';
@Override
public String toString() {
return "NeutronLoadBalancerPoolMember{" + "poolMemberID='" + uuid + '\'' + ", poolID='" + poolID + '\''
- + ", poolMemberTenantID='" + tenantID + '\'' + ", poolMemberAddress='" + poolMemberAddress + '\''
+ + ", poolMemberTenantID='" + getTenantID() + '\'' + ", poolMemberAddress='" + poolMemberAddress + '\''
+ ", poolMemberProtoPort=" + poolMemberProtoPort + ", poolMemberAdminStateIsUp="
+ poolMemberAdminStateIsUp + ", poolMemberWeight=" + poolMemberWeight + ", poolMemberSubnetID='"
+ poolMemberSubnetID + '\'' + '}';
@Override
public String toString() {
- return "NeutronMeteringLabel [id=" + uuid + ", name=" + name + ", tenant_id=" + tenantID
+ return "NeutronMeteringLabel [id=" + uuid + ", name=" + name + ", tenant_id=" + getTenantID()
+ ", shared=" + shared + "]";
}
@Override
public String toString() {
- return "NeutronMeteringLabelRule [id=" + uuid + ", tenantID=" + tenantID + ", direction="
+ return "NeutronMeteringLabelRule [id=" + uuid + ", tenantID=" + getTenantID() + ", direction="
+ meteringLabelRuleDirection + ", excluded=" + meteringLabelRuleExcluded + ", remote_ip_prefix="
+ meteringLabelRuleRemoteIpPrefix + ", metering_label_id=" + meteringLabelRuleLabelID + "]";
}
@Override
public String toString() {
return "NeutronNetwork [networkUUID=" + uuid + ", networkName=" + name + ", adminStateUp=" + adminStateUp
- + ", shared=" + shared + ", vlanTransparent=" + vlanTransparent + ", tenantID=" + tenantID
+ + ", shared=" + shared + ", vlanTransparent=" + vlanTransparent + ", tenantID=" + getTenantID()
+ ", routerExternal=" + routerExternal + ", providerNetworkType=" + providerNetworkType
+ ", providerPhysicalNetwork=" + providerPhysicalNetwork + ", providerSegmentationID="
+ providerSegmentationID + ", status=" + status + ", qosPolicyId =" + qosPolicyId
private static final long serialVersionUID = 1L;
- String tenantID;
+ private String tenantID;
@XmlElement(name = "project_id")
String projectID;
@Override
public String toString() {
- return "NeutronObject [id=" + uuid + ", tenantID=" + tenantID + "]";
+ return "NeutronObject [id=" + uuid + ", tenantID=" + getTenantID() + "]";
}
@Override
@Override
public void initDefaults() {
- if (projectID != null && tenantID == null) {
- tenantID = projectID;
+ if (projectID != null && getTenantID() == null) {
+ setTenantID(projectID);
}
- if (projectID == null && tenantID != null) {
- projectID = tenantID;
+ if (projectID == null && getTenantID() != null) {
+ projectID = getTenantID();
}
}
public String toString() {
return "NeutronPort [portUUID=" + uuid + ", networkUUID=" + networkUUID + ", name=" + name + ", adminStateUp="
+ adminStateUp + ", status=" + status + ", macAddress=" + macAddress + ", fixedIps=" + fixedIps
- + ", deviceID=" + deviceID + ", deviceOwner=" + deviceOwner + ", tenantID=" + tenantID
+ + ", deviceID=" + deviceID + ", deviceOwner=" + deviceOwner + ", tenantID=" + getTenantID()
+ ", securityGroups=" + securityGroups + ", allowedAddressPairs" + allowedAddressPairs
+ ", bindinghostID=" + bindinghostID + ", bindingvnicType=" + bindingvnicType + ", bindingvifType="
+ bindingvifType + ", vifDetails=" + vifDetails + ", bindingProfile=" + bindingProfile
@Override
public String toString() {
return "qosBandwidthLimitRules{" + "qosBandwidthLimitRuleUUID='" + uuid + '\''
- + ", qosBandwidthLimitRuleTenantID='" + tenantID + '\'' + ", qosBandwidthLimitRuleMaxValue='" + maxKbps
+ + ", qosBandwidthLimitRuleTenantID='" + getTenantID() + '\'' + ", qosBandwidthLimitRuleMaxValue='" + maxKbps
+ '\'' + ", qosBandwidthLimitRuleMaxBurst='" + maxBurstKbps
+ '\'' + ", qosBandwidthLimitRuleDirection='" + direction
+ '\''
@Override
public String toString() {
return "qosDscpMarkingRules{" + "qosDscpMarkingRuleUUID='" + uuid + '\'' + ", qosDscpMarkingRuleTenantID='"
- + tenantID + '\'' + ", qosDscpMarkingRuleDscpMark='" + dscpMark
+ + getTenantID() + '\'' + ", qosDscpMarkingRuleDscpMark='" + dscpMark
+ '\''
+ '}';
}
@Override
public String toString() {
return "qosMinimumBandwidthRules{" + "qosMinimumBandwidthRuleUUID='" + uuid + '\'' + ","
- + " qosMinimumBandwidthRuleTenantID='" + tenantID
+ + " qosMinimumBandwidthRuleTenantID='" + getTenantID()
+ '\'' + ", qosMinimumBandwidthMinValue='" + minKbps
+ '\'' + ", qosMinimumBandwidthDirection='" + direction + '\''
+ '}';
@Override
public String toString() {
- return "NeutronQosPolicy{" + "qosPolicyUUID='" + uuid + '\'' + ", qosPolicyTenantID='" + tenantID + '\''
+ return "NeutronQosPolicy{" + "qosPolicyUUID='" + uuid + '\'' + ", qosPolicyTenantID='" + getTenantID() + '\''
+ ", qosPolicyName='" + name + '\'' + ", qosPolicyIsShared='" + shared + '\''
+ ", qosbandwidthLimitRules='" + bandwidthLimitRules + '\'' + ", qosDscpMarkingRules='"
+ dscpMarkingRules + '\'' + ", qosMinimumBandwidthRules='" + minimumBandwidthRules + '\''
@Override
public String toString() {
return "NeutronRouter [" + "id=" + uuid + ", name=" + name + ", adminStateUp=" + adminStateUp + ", status="
- + status + ", tenantID=" + tenantID + ", external_gateway_info=" + externalGatewayInfo
+ + status + ", tenantID=" + getTenantID() + ", external_gateway_info=" + externalGatewayInfo
+ ", distributed=" + distributed + ", gw_port_id=" + gatewayPortId + ", routes=" + routes + "]";
}
@Override
public String toString() {
return "NeutronRouterInterface [" + "subnetUUID=" + subnetUUID + ", portUUID=" + portUUID + ", id=" + uuid
- + ", tenantID=" + tenantID + "]";
+ + ", tenantID=" + getTenantID() + "]";
}
}
@Override
public String toString() {
- return "NeutronSFCPortChain[" + "tenantID='" + tenantID + '\'' + ", name='" + name + '\''
+ return "NeutronSFCPortChain[" + "tenantID='" + getTenantID() + '\'' + ", name='" + name + '\''
+ ", portPairGroupsUUID=" + portPairGroupsUUID + ", flowClassifiersUUID='" + flowClassifiersUUID + '\''
+ ", chainParameters=" + chainParameters + ']';
}
@Override
public String toString() {
- return "NeutronSFCPortPair[" + "tenantID='" + tenantID + '\'' + ", name='" + name + '\'' + ", ingressPortUUID='"
- + ingressPortUUID + '\'' + ", egressPortUUID='" + egressPortUUID + '\'' + ", serviceFunctionParameters="
- + serviceFunctionParameters + ']';
+ return "NeutronSFCPortPair[" + "tenantID='" + getTenantID() + '\'' + ", name='" + name + '\''
+ + ", ingressPortUUID='" + ingressPortUUID + '\'' + ", egressPortUUID='" + egressPortUUID + '\''
+ + ", serviceFunctionParameters=" + serviceFunctionParameters + ']';
}
}
@Override
public String toString() {
- return "NeutronSFCPortPairGroup[" + "tenantID='" + tenantID + '\'' + ", name='" + name + '\'' + ", portPairs="
- + portPairs + ']';
+ return "NeutronSFCPortPairGroup[" + "tenantID='" + getTenantID() + '\'' + ", name='" + name + '\''
+ + ", portPairs=" + portPairs + ']';
}
}
@Override
public String toString() {
return "NeutronSecurityGroup{" + "securityGroupUUID='" + uuid + '\'' + ", securityGroupName='"
- + name + '\'' + ", securityGroupTenantID='" + tenantID + '\'' + "]";
+ + name + '\'' + ", securityGroupTenantID='" + getTenantID() + '\'' + "]";
}
}
* 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 javax.xml.bind.annotation.XmlAccessType;
* remote_group_id uuid-str Source security group to apply to rule.
* tenant_id uuid-str Owner of security rule. Admin only outside tenant.
*/
-
@XmlRootElement
@XmlAccessorType(XmlAccessType.NONE)
public final class NeutronSecurityRule extends NeutronObject<NeutronSecurityRule> {
+ ", securityRulePortMin=" + securityRulePortMin + ", securityRulePortMax=" + securityRulePortMax
+ ", securityRuleEthertype='" + securityRuleEthertype + '\'' + ", securityRuleRemoteIpPrefix='"
+ securityRuleRemoteIpPrefix + '\'' + ", securityRemoteGroupID=" + securityRemoteGroupID
- + ", securityRuleGroupID='" + securityRuleGroupID + '\'' + ", securityRuleTenantID='" + tenantID + '\''
- + '}';
+ + ", securityRuleGroupID='" + securityRuleGroupID + '\'' + ", securityRuleTenantID='" + getTenantID()
+ + '\'' + '}';
}
}
return "NeutronSubnet [subnetUUID=" + uuid + ", networkUUID=" + networkUUID + ", name=" + name + ", ipVersion="
+ ipVersion + ", cidr=" + cidr + ", gatewayIp=" + gatewayIp + ", dnsNameservers=" + dnsNameservers
+ ", allocationPools=" + allocationPools + ", hostRoutes=" + hostRoutes + ", enableDHCP=" + enableDHCP
- + ", tenantID=" + tenantID + ", ipv6AddressMode=" + ipV6AddressMode + ", ipv6RaMode=" + ipV6RaMode
+ + ", tenantID=" + getTenantID() + ", ipv6AddressMode=" + ipV6AddressMode + ", ipv6RaMode=" + ipV6RaMode
+ "]";
}
}
@Override
public String toString() {
- return "NeutronTapFlow[" + "tapFlowUUID='" + uuid + '\'' + ", tapFlowTenantID='" + tenantID + '\''
+ return "NeutronTapFlow[" + "tapFlowUUID='" + uuid + '\'' + ", tapFlowTenantID='" + getTenantID() + '\''
+ ", tapFlowName='" + name + '\'' + ", tapFlowServiceID='" + tapServiceID + '\''
+ ", tapFlowSourcePort='" + tapFlowSourcePort + '\''
+ ", tapFlowDirection='" + tapFlowDirection + '\'' + ']';
@Override
public String toString() {
return "NeutronTapService[" + "tapServiceUUID='" + uuid + '\'' + ", tapServiceTenantID='"
- + tenantID + '\'' + ", tapServiceName='" + name + '\'' + ", tapServicePortID='"
+ + getTenantID() + '\'' + ", tapServiceName='" + name + '\'' + ", tapServicePortID='"
+ tapServicePortID + '\'' + ']';
}
}
@Override
public String toString() {
return "NeutronTrunk{" + "trunkUUID='" + uuid + '\'' + ", trunkName='" + name + '\''
- + ", tenantID='" + tenantID + '\'' + ", adminStateUp='" + adminStateUp + '\''
+ + ", tenantID='" + getTenantID() + '\'' + ", adminStateUp='" + adminStateUp + '\''
+ ", status='" + status + '\'' + ", portId='" + portId + '\''
+ ", subPorts='" + subPorts + '\'' + '}';
}
* 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;
@Override
public String toString() {
- return "NeutronVpnIpSecSiteConnection{" + "id='" + uuid + '\'' + ", tenantID='" + tenantID + '\'' + ", name='"
- + name + '\'' + ", peerAddress=" + peerAddress + ", peerID='" + peerID + '\'' + ", routeMode='"
- + routeMode + '\'' + ", mtu=" + mtu + ", authMode='" + authMode + '\'' + ", preSharedKey='"
- + preSharedKey + '\'' + ", initiator='" + initiator + '\'' + ", adminStateUp=" + adminStateUp
- + ", status='" + status + '\'' + ", ikePolicyID='" + ikePolicyID + '\'' + ", ipsecPolicyID='"
- + ipsecPolicyID + '\'' + ", vpnServiceID='" + vpnServiceID + '\'' + '}';
+ return "NeutronVpnIpSecSiteConnection{" + "id='" + uuid + '\'' + ", tenantID='" + getTenantID() + '\''
+ + ", name='" + name + '\'' + ", peerAddress=" + peerAddress + ", peerID='" + peerID + '\''
+ + ", routeMode='" + routeMode + '\'' + ", mtu=" + mtu + ", authMode='" + authMode + '\''
+ + ", preSharedKey='" + preSharedKey + '\'' + ", initiator='" + initiator + '\'' + ", adminStateUp="
+ + adminStateUp + ", status='" + status + '\'' + ", ikePolicyID='" + ikePolicyID + '\''
+ + ", ipsecPolicyID='" + ipsecPolicyID + '\'' + ", vpnServiceID='" + vpnServiceID + '\'' + '}';
}
}
"d6220bbb-35f3-48ab-8eae-69c60aef3547", bandwidthLimitPolicyRules.get(0).uuid);
Assert.assertEquals("NeutronQosPolicy JaxB Test 5.2 : Testing Tenant ID failed",
- "aa902936679e4ea29bfe1158e3450a14", bandwidthLimitPolicyRules.get(0).tenantID);
+ "aa902936679e4ea29bfe1158e3450a14", bandwidthLimitPolicyRules.get(0).getTenantID());
Assert.assertEquals("NeutronQosPolicy JaxB Test 5.3 : Testing Max ingress/Egress value failed",
new BigInteger("25"), bandwidthLimitPolicyRules.get(0).maxKbps);
"d6220bbb-35f3-48ab-8eae-69c60aef3547", dscpMarkingPolicyRules.get(0).uuid);
Assert.assertEquals("NeutronQosPolicy JaxB Test 6.2 : Testing Tenant ID failed",
- "aa902936679e4ea29bfe1158e3450a14", dscpMarkingPolicyRules.get(0).tenantID);
+ "aa902936679e4ea29bfe1158e3450a14", dscpMarkingPolicyRules.get(0).getTenantID());
Assert.assertEquals("NeutronQosPolicy JaxB Test 6.3 : Testing Max ingress/Egress value failed",
new Short("8"), dscpMarkingPolicyRules.get(0).dscpMark);
minBandwidthLimitRules.size());
Assert.assertEquals("NeutronQosPolicy JaxB Test 7.2 : Testing Tenant ID failed",
- "aa902936679e4ea29bfe1158e3450a14", minBandwidthLimitRules.get(0).tenantID);
+ "aa902936679e4ea29bfe1158e3450a14", minBandwidthLimitRules.get(0).getTenantID());
Assert.assertEquals("NeutronQosPolicy JaxB Test 7.3 : Testing Minimum Bandwidth failed",
new BigInteger("20"), minBandwidthLimitRules.get(0).minKbps);