Merge "Re-added config.version to config-module-archetype."
[controller.git] / opendaylight / northbound / networkconfiguration / neutron / src / main / java / org / opendaylight / controller / networkconfig / neutron / northbound / NeutronSubnetRequest.java
index ab91399879e97ebc97fc0b44dbf318e0eb2c6784..57a724c1cc60936b3a15ed80ba0c1b9bc6d53288 100644 (file)
@@ -1,56 +1,68 @@
-/*\r
- * Copyright IBM Corporation, 2013.  All rights reserved.\r
- *\r
- * This program and the accompanying materials are made available under the\r
- * terms of the Eclipse Public License v1.0 which accompanies this distribution,\r
- * and is available at http://www.eclipse.org/legal/epl-v10.html\r
- */\r
-\r
-package org.opendaylight.controller.networkconfig.neutron.northbound;\r
-\r
-import java.util.List;\r
-\r
-import javax.xml.bind.annotation.XmlAccessType;\r
-import javax.xml.bind.annotation.XmlAccessorType;\r
-import javax.xml.bind.annotation.XmlElement;\r
-import javax.xml.bind.annotation.XmlRootElement;\r
-\r
-import org.opendaylight.controller.networkconfig.neutron.NeutronSubnet;\r
-\r
-@XmlRootElement\r
-@XmlAccessorType(XmlAccessType.NONE)\r
-\r
-public class NeutronSubnetRequest {\r
-    // See OpenStack Network API v2.0 Reference for description of\r
-    // annotated attributes\r
-\r
-    @XmlElement(name="subnet")\r
-    NeutronSubnet singletonSubnet;\r
-\r
-    @XmlElement(name="subnets")\r
-    List<NeutronSubnet> bulkRequest;\r
-\r
-    NeutronSubnetRequest() {\r
-    }\r
-\r
-    NeutronSubnetRequest(List<NeutronSubnet> bulk) {\r
-        bulkRequest = bulk;\r
-        singletonSubnet = null;\r
-    }\r
-\r
-    NeutronSubnetRequest(NeutronSubnet subnet) {\r
-        singletonSubnet = subnet;\r
-    }\r
-\r
-    public NeutronSubnet getSingleton() {\r
-        return singletonSubnet;\r
-    }\r
-\r
-    public List<NeutronSubnet> getBulk() {\r
-        return bulkRequest;\r
-    }\r
-\r
-    public boolean isSingleton() {\r
-        return (singletonSubnet != null);\r
-    }\r
-}\r
+/*
+ * 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.NeutronSubnet;
+
+@XmlRootElement
+@XmlAccessorType(XmlAccessType.NONE)
+
+public class NeutronSubnetRequest implements INeutronRequest {
+    // See OpenStack Network API v2.0 Reference for description of
+    // annotated attributes
+
+    @XmlElement(name="subnet")
+    NeutronSubnet singletonSubnet;
+
+    @XmlElement(name="subnets")
+    List<NeutronSubnet> bulkRequest;
+
+    @XmlElement(name="subnets_links")
+    List<NeutronPageLink> links;
+
+    NeutronSubnetRequest() {
+    }
+
+    public NeutronSubnetRequest(List<NeutronSubnet> bulkRequest, List<NeutronPageLink> links) {
+        this.bulkRequest = bulkRequest;
+        this.links = links;
+        this.singletonSubnet = null;
+    }
+
+    NeutronSubnetRequest(List<NeutronSubnet> bulk) {
+        bulkRequest = bulk;
+        singletonSubnet = null;
+        links = null;
+    }
+
+    NeutronSubnetRequest(NeutronSubnet subnet) {
+        singletonSubnet = subnet;
+        bulkRequest = null;
+        links = null;
+    }
+
+    public NeutronSubnet getSingleton() {
+        return singletonSubnet;
+    }
+
+    public List<NeutronSubnet> getBulk() {
+        return bulkRequest;
+    }
+
+    public boolean isSingleton() {
+        return (singletonSubnet != null);
+    }
+}