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%2FNeutronPortRequest.java;h=9b3399d9a8bfe72266843b0d4d8c34d6b163ef52;hp=f6765fb221fbeb9e6c52ad476675cf96bfaf14c2;hb=caee336f062eba4909ba53cbaccdde0714236134;hpb=f39735ca424bb6a64b46505c9c2b25cbe4940c24 diff --git a/opendaylight/northbound/networkconfiguration/neutron/src/main/java/org/opendaylight/controller/networkconfig/neutron/northbound/NeutronPortRequest.java b/opendaylight/northbound/networkconfiguration/neutron/src/main/java/org/opendaylight/controller/networkconfig/neutron/northbound/NeutronPortRequest.java index f6765fb221..9b3399d9a8 100644 --- a/opendaylight/northbound/networkconfiguration/neutron/src/main/java/org/opendaylight/controller/networkconfig/neutron/northbound/NeutronPortRequest.java +++ b/opendaylight/northbound/networkconfiguration/neutron/src/main/java/org/opendaylight/controller/networkconfig/neutron/northbound/NeutronPortRequest.java @@ -1,55 +1,55 @@ -/* - * 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.NeutronPort; - -@XmlRootElement -@XmlAccessorType(XmlAccessType.NONE) -public class NeutronPortRequest { - // See OpenStack Network API v2.0 Reference for description of - // annotated attributes - - @XmlElement(name="port") - NeutronPort singletonPort; - - @XmlElement(name="ports") - List bulkRequest; - - NeutronPortRequest() { - } - - NeutronPortRequest(List bulk) { - bulkRequest = bulk; - singletonPort = null; - } - - NeutronPortRequest(NeutronPort port) { - singletonPort = port; - } - - public NeutronPort getSingleton() { - return singletonPort; - } - - public boolean isSingleton() { - return (singletonPort != null); - } - - public List getBulk() { - return bulkRequest; - } -} +/* + * 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.NeutronPort; + +@XmlRootElement +@XmlAccessorType(XmlAccessType.NONE) +public class NeutronPortRequest { + // See OpenStack Network API v2.0 Reference for description of + // annotated attributes + + @XmlElement(name="port") + NeutronPort singletonPort; + + @XmlElement(name="ports") + List bulkRequest; + + NeutronPortRequest() { + } + + NeutronPortRequest(List bulk) { + bulkRequest = bulk; + singletonPort = null; + } + + NeutronPortRequest(NeutronPort port) { + singletonPort = port; + } + + public NeutronPort getSingleton() { + return singletonPort; + } + + public boolean isSingleton() { + return (singletonPort != null); + } + + public List getBulk() { + return bulkRequest; + } +}