X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fnorthbound%2Fnetworkconfiguration%2Fneutron%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fnetworkconfig%2Fneutron%2Fnorthbound%2FNeutronFloatingIPRequest.java;h=efb86e0542e9b9fcec607b55bdc8fb9742cbf8bb;hp=ca1389c724d90c36f8a23476daae064f24a998d5;hb=ae9ef45ceff09b2ce7943e3be569ea217464b8bd;hpb=f0e3d363ed6549f0c24d6c0b2e2167a4d8196139 diff --git a/opendaylight/northbound/networkconfiguration/neutron/src/main/java/org/opendaylight/controller/networkconfig/neutron/northbound/NeutronFloatingIPRequest.java b/opendaylight/northbound/networkconfiguration/neutron/src/main/java/org/opendaylight/controller/networkconfig/neutron/northbound/NeutronFloatingIPRequest.java index ca1389c724..efb86e0542 100644 --- a/opendaylight/northbound/networkconfiguration/neutron/src/main/java/org/opendaylight/controller/networkconfig/neutron/northbound/NeutronFloatingIPRequest.java +++ b/opendaylight/northbound/networkconfiguration/neutron/src/main/java/org/opendaylight/controller/networkconfig/neutron/northbound/NeutronFloatingIPRequest.java @@ -1,52 +1,52 @@ -/* - * Copyright IBM Corporation, 2013. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0 which accompanies this distribution, - * and is available at http://www.eclipse.org/legal/epl-v10.html - */ - -package org.opendaylight.controller.networkconfig.neutron.northbound; - -import java.util.List; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlRootElement; - -import org.opendaylight.controller.networkconfig.neutron.NeutronFloatingIP; - -@XmlRootElement -@XmlAccessorType(XmlAccessType.NONE) -public class NeutronFloatingIPRequest { - // See OpenStack Network API v2.0 Reference for description of - // annotated attributes - - @XmlElement(name="floatingip") - NeutronFloatingIP singletonFloatingIP; - - @XmlElement(name="floatingips") - List bulkRequest; - - NeutronFloatingIPRequest() { - } - - NeutronFloatingIPRequest(List bulk) { - bulkRequest = bulk; - singletonFloatingIP = null; - } - - NeutronFloatingIPRequest(NeutronFloatingIP singleton) { - bulkRequest = null; - singletonFloatingIP = singleton; - } - - public NeutronFloatingIP getSingleton() { - return singletonFloatingIP; - } - - public boolean isSingleton() { - return (singletonFloatingIP != null); - } -} +/* + * Copyright IBM Corporation, 2013. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + */ + +package org.opendaylight.controller.networkconfig.neutron.northbound; + +import java.util.List; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; + +import org.opendaylight.controller.networkconfig.neutron.NeutronFloatingIP; + +@XmlRootElement +@XmlAccessorType(XmlAccessType.NONE) +public class NeutronFloatingIPRequest { + // See OpenStack Network API v2.0 Reference for description of + // annotated attributes + + @XmlElement(name="floatingip") + NeutronFloatingIP singletonFloatingIP; + + @XmlElement(name="floatingips") + List bulkRequest; + + NeutronFloatingIPRequest() { + } + + NeutronFloatingIPRequest(List bulk) { + bulkRequest = bulk; + singletonFloatingIP = null; + } + + NeutronFloatingIPRequest(NeutronFloatingIP singleton) { + bulkRequest = null; + singletonFloatingIP = singleton; + } + + public NeutronFloatingIP getSingleton() { + return singletonFloatingIP; + } + + public boolean isSingleton() { + return (singletonFloatingIP != null); + } +}