Fix NPEs on switch disconnect in cluster mode
[controller.git] / opendaylight / northbound / subnets / src / main / java / org / opendaylight / controller / subnets / northbound / SubnetConfigs.java
index 60062edd2914d5165484426bbdb42ac5f9d1a2f4..224bb1483155acf1a670099e2503bc85e7fdefcc 100644 (file)
@@ -17,26 +17,26 @@ import javax.xml.bind.annotation.XmlRootElement;
 
 import org.opendaylight.controller.switchmanager.SubnetConfig;
 
-@XmlRootElement
+@XmlRootElement (name = "list")
 @XmlAccessorType(XmlAccessType.NONE)
 
 public class SubnetConfigs {
-       @XmlElement
-       List<SubnetConfig> subnetConfig;
-       //To satisfy JAXB
-       private SubnetConfigs() {
-               
-       }
-       
-       public SubnetConfigs(List<SubnetConfig> subnetConfig) {
-               this.subnetConfig = subnetConfig;
-       }
-
-       public List<SubnetConfig> getSubnetConfig() {
-               return subnetConfig;
-       }
-
-       public void setSubnetConfig(List<SubnetConfig> subnetConfig) {
-               this.subnetConfig = subnetConfig;
-       }
+        @XmlElement
+        List<SubnetConfig> subnetConfig;
+        //To satisfy JAXB
+        private SubnetConfigs() {
+
+        }
+
+        public SubnetConfigs(List<SubnetConfig> subnetConfig) {
+                this.subnetConfig = subnetConfig;
+        }
+
+        public List<SubnetConfig> getSubnetConfig() {
+                return subnetConfig;
+        }
+
+        public void setSubnetConfig(List<SubnetConfig> subnetConfig) {
+                this.subnetConfig = subnetConfig;
+        }
 }