public NeutronLoadBalancer extractFields(List<String> fields) { NeutronLoadBalancer ans = new NeutronLoadBalancer(); Iterator<String> i = fields.iterator(); while (i.hasNext()) { String s = i.next(); if (s.equals("id")) { ans.setLoadBalancerID(this.getLoadBalancerID()); } if (s.equals("tenant_id")) { ans.setLoadBalancerTenantID(this.getLoadBalancerTenantID()); } if (s.equals("name")) { ans.setLoadBalancerName(this.getLoadBalancerName()); } if(s.equals("description")) { ans.setLoadBalancerDescription(this.getLoadBalancerDescription()); } if (s.equals("vip_address")) { ans.setLoadBalancerVipAddress(this.getLoadBalancerVipAddress()); } if (s.equals("vip_subnet_id")) { ans.setLoadBalancerVipSubnetID(this.getLoadBalancerVipSubnetID()); } if (s.equals("status")) { ans.setLoadBalancerStatus(this.getLoadBalancerStatus()); } } return ans; }
private NeutronLoadBalancer extractFields(NeutronLoadBalancer o, List<String> fields) { return o.extractFields(fields); }
if (delta.getLoadBalancerID() != null || delta.getLoadBalancerTenantID() != null || delta.getLoadBalancerName() != null || delta.getLoadBalancerDescription() != null || delta.getLoadBalancerStatus() != null || delta.getLoadBalancerVipAddress() != null || delta.getLoadBalancerVipSubnetID() != null) { throw new BadRequestException("Attribute edit blocked by Neutron");
NeutronLoadBalancer nsg = i.next(); if ((queryLoadBalancerID == null || queryLoadBalancerID.equals(nsg.getLoadBalancerID())) && (queryLoadBalancerTenantID == null || queryLoadBalancerTenantID.equals(nsg.getLoadBalancerTenantID())) && (queryLoadBalancerName == null || queryLoadBalancerName.equals(nsg.getLoadBalancerName())) && (queryLoadBalancerDescription == null || queryLoadBalancerDescription.equals(nsg.getLoadBalancerDescription())) && (queryLoadBalancerVipAddress == null || queryLoadBalancerVipAddress.equals(nsg.getLoadBalancerVipAddress())) &&
if (loadBalancerInterface.neutronLoadBalancerExists(singleton.getLoadBalancerID())) { throw new BadRequestException("LoadBalancer UUID already exists"); if (loadBalancerInterface.neutronLoadBalancerExists(test.getLoadBalancerID())) { throw new BadRequestException("Load Balancer Pool UUID already is already created"); if (testMap.containsKey(test.getLoadBalancerID())) { throw new BadRequestException("Load Balancer Pool UUID already exists");