adding function to modify existing subnets
[controller.git] / opendaylight / northbound / subnets / src / main / java / org / opendaylight / controller / subnets / northbound / SubnetConfigs.java
1 /*
2  * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8
9 package org.opendaylight.controller.subnets.northbound;
10
11 import java.util.List;
12
13 import javax.xml.bind.annotation.XmlAccessType;
14 import javax.xml.bind.annotation.XmlAccessorType;
15 import javax.xml.bind.annotation.XmlElement;
16 import javax.xml.bind.annotation.XmlRootElement;
17
18 import org.opendaylight.controller.switchmanager.SubnetConfig;
19
20 @XmlRootElement
21 @XmlAccessorType(XmlAccessType.NONE)
22
23 public class SubnetConfigs {
24         @XmlElement
25         List<SubnetConfig> subnetConfig;
26         //To satisfy JAXB
27         private SubnetConfigs() {
28
29         }
30
31         public SubnetConfigs(List<SubnetConfig> subnetConfig) {
32                 this.subnetConfig = subnetConfig;
33         }
34
35         public List<SubnetConfig> getSubnetConfig() {
36                 return subnetConfig;
37         }
38
39         public void setSubnetConfig(List<SubnetConfig> subnetConfig) {
40                 this.subnetConfig = subnetConfig;
41         }
42 }