Initial push of Neutron interface
[controller.git] / opendaylight / networkconfiguration / neutron / src / main / java / org / opendaylight / controller / networkconfig / neutron / Neutron_IPs.java
diff --git a/opendaylight/networkconfiguration/neutron/src/main/java/org/opendaylight/controller/networkconfig/neutron/Neutron_IPs.java b/opendaylight/networkconfiguration/neutron/src/main/java/org/opendaylight/controller/networkconfig/neutron/Neutron_IPs.java
new file mode 100644 (file)
index 0000000..7309479
--- /dev/null
@@ -0,0 +1,49 @@
+/*\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;\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
+@XmlRootElement\r
+@XmlAccessorType(XmlAccessType.NONE)\r
+public class Neutron_IPs {\r
+    // See OpenStack Network API v2.0 Reference for description of\r
+    // annotated attributes\r
+\r
+    @XmlElement(name="ip_address")\r
+    String ipAddress;\r
+\r
+    @XmlElement(name="subnet_id")\r
+    String subnetUUID;\r
+\r
+    public Neutron_IPs() { }\r
+\r
+    public Neutron_IPs(String uuid) {\r
+        this.subnetUUID = uuid;\r
+    }\r
+\r
+    public String getIpAddress() {\r
+        return ipAddress;\r
+    }\r
+\r
+    public void setIpAddress(String ipAddress) {\r
+        this.ipAddress = ipAddress;\r
+    }\r
+\r
+    public String getSubnetUUID() {\r
+        return subnetUUID;\r
+    }\r
+\r
+    public void setSubnetUUID(String subnetUUID) {\r
+        this.subnetUUID = subnetUUID;\r
+    }\r
+}\r