Merge "Fixed for bug : 1171 - issue while creating subnet"
[controller.git] / opendaylight / networkconfiguration / neutron / src / main / java / org / opendaylight / controller / networkconfig / neutron / NeutronRouter_Interface.java
1 /*
2  * Copyright IBM Corporation, 2013.  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.networkconfig.neutron;
10
11 import java.io.Serializable;
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 @XmlRootElement
19 @XmlAccessorType(XmlAccessType.NONE)
20 public class NeutronRouter_Interface implements Serializable {
21     private static final long serialVersionUID = 1L;
22
23     // See OpenStack Network API v2.0 Reference for description of
24     // annotated attributes
25
26     @XmlElement (name="subnet_id")
27     String subnetUUID;
28
29     @XmlElement (name="port_id")
30     String portUUID;
31
32     @XmlElement (name="id")
33     String id;
34
35     @XmlElement (name="tenant_id")
36     String tenantID;
37
38     public NeutronRouter_Interface() {
39     }
40
41     public NeutronRouter_Interface(String subnetUUID, String portUUID) {
42         this.subnetUUID = subnetUUID;
43         this.portUUID = portUUID;
44     }
45
46     public String getSubnetUUID() {
47         return subnetUUID;
48     }
49
50     public void setSubnetUUID(String subnetUUID) {
51         this.subnetUUID = subnetUUID;
52     }
53
54     public String getPortUUID() {
55         return portUUID;
56     }
57
58     public void setPortUUID(String portUUID) {
59         this.portUUID = portUUID;
60     }
61
62     public void setID(String id) {
63         this.id = id;
64     }
65
66     public void setTenantID(String tenantID) {
67         this.tenantID = tenantID;
68     }
69 }

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.