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%2FNeutronRouterRequest.java;h=806fd69e8af50ff0b85f48366521b0f0556f25a4;hp=1fcc9a9e912b25d0912a3ed99b3253d599e615ba;hb=04112a9b9591ef8d2e68694fe7ed3a771efd2960;hpb=e40d69673c2529d99069a8a0bafb152a1c11c41a diff --git a/opendaylight/northbound/networkconfiguration/neutron/src/main/java/org/opendaylight/controller/networkconfig/neutron/northbound/NeutronRouterRequest.java b/opendaylight/northbound/networkconfiguration/neutron/src/main/java/org/opendaylight/controller/networkconfig/neutron/northbound/NeutronRouterRequest.java index 1fcc9a9e91..806fd69e8a 100644 --- a/opendaylight/northbound/networkconfiguration/neutron/src/main/java/org/opendaylight/controller/networkconfig/neutron/northbound/NeutronRouterRequest.java +++ b/opendaylight/northbound/networkconfiguration/neutron/src/main/java/org/opendaylight/controller/networkconfig/neutron/northbound/NeutronRouterRequest.java @@ -1,57 +1,57 @@ -/* - * 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.NeutronRouter; - - -@XmlRootElement -@XmlAccessorType(XmlAccessType.NONE) - -public class NeutronRouterRequest { - // See OpenStack Network API v2.0 Reference for description of - // annotated attributes - - @XmlElement(name="router") - NeutronRouter singletonRouter; - - @XmlElement(name="routers") - List bulkRequest; - - NeutronRouterRequest() { - } - - NeutronRouterRequest(List bulk) { - bulkRequest = bulk; - singletonRouter = null; - } - - NeutronRouterRequest(NeutronRouter router) { - singletonRouter = router; - } - - public List getBulk() { - return bulkRequest; - } - - public NeutronRouter getSingleton() { - return singletonRouter; - } - - public boolean isSingleton() { - return (singletonRouter != 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.NeutronRouter; + + +@XmlRootElement +@XmlAccessorType(XmlAccessType.NONE) + +public class NeutronRouterRequest { + // See OpenStack Network API v2.0 Reference for description of + // annotated attributes + + @XmlElement(name="router") + NeutronRouter singletonRouter; + + @XmlElement(name="routers") + List bulkRequest; + + NeutronRouterRequest() { + } + + NeutronRouterRequest(List bulk) { + bulkRequest = bulk; + singletonRouter = null; + } + + NeutronRouterRequest(NeutronRouter router) { + singletonRouter = router; + } + + public List getBulk() { + return bulkRequest; + } + + public NeutronRouter getSingleton() { + return singletonRouter; + } + + public boolean isSingleton() { + return (singletonRouter != null); + } +}