X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fnorthbound%2Fnetworkconfiguration%2Fneutron%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fnetworkconfig%2Fneutron%2Fnorthbound%2FNeutronNetworkRequest.java;h=cebd3c267dd1a1ad2d3b345f2f97d498046631b0;hb=a59d844ae2a4482c052399f5cb2cadd2b9581402;hp=9d449380a5743548bdfb39a240655ada7fd8a59b;hpb=e40d69673c2529d99069a8a0bafb152a1c11c41a;p=controller.git diff --git a/opendaylight/northbound/networkconfiguration/neutron/src/main/java/org/opendaylight/controller/networkconfig/neutron/northbound/NeutronNetworkRequest.java b/opendaylight/northbound/networkconfiguration/neutron/src/main/java/org/opendaylight/controller/networkconfig/neutron/northbound/NeutronNetworkRequest.java index 9d449380a5..cebd3c267d 100644 --- a/opendaylight/northbound/networkconfiguration/neutron/src/main/java/org/opendaylight/controller/networkconfig/neutron/northbound/NeutronNetworkRequest.java +++ b/opendaylight/northbound/networkconfiguration/neutron/src/main/java/org/opendaylight/controller/networkconfig/neutron/northbound/NeutronNetworkRequest.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.NeutronNetwork; - -@XmlRootElement -@XmlAccessorType(XmlAccessType.NONE) -public class NeutronNetworkRequest { - // See OpenStack Network API v2.0 Reference for description of - // annotated attributes - - @XmlElement(name="network") - NeutronNetwork singletonNetwork; - - @XmlElement(name="networks") - List bulkRequest; - - NeutronNetworkRequest() { - } - - NeutronNetworkRequest(List bulk) { - bulkRequest = bulk; - singletonNetwork = null; - } - - NeutronNetworkRequest(NeutronNetwork net) { - singletonNetwork = net; - } - - public NeutronNetwork getSingleton() { - return singletonNetwork; - } - - public boolean isSingleton() { - return (singletonNetwork != 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.NeutronNetwork; + +@XmlRootElement +@XmlAccessorType(XmlAccessType.NONE) +public class NeutronNetworkRequest { + // See OpenStack Network API v2.0 Reference for description of + // annotated attributes + + @XmlElement(name="network") + NeutronNetwork singletonNetwork; + + @XmlElement(name="networks") + List bulkRequest; + + NeutronNetworkRequest() { + } + + NeutronNetworkRequest(List bulk) { + bulkRequest = bulk; + singletonNetwork = null; + } + + NeutronNetworkRequest(NeutronNetwork net) { + singletonNetwork = net; + } + + public NeutronNetwork getSingleton() { + return singletonNetwork; + } + + public boolean isSingleton() { + return (singletonNetwork != null); + } + + public List getBulk() { + return bulkRequest; + } +}