OpenDaylight Controller functional modules.
[controller.git] / opendaylight / northbound / staticrouting / src / main / java / org / opendaylight / controller / forwarding / staticrouting / northbound / StaticRoute.java
1
2 /*
3  * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
4  *
5  * This program and the accompanying materials are made available under the
6  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
7  * and is available at http://www.eclipse.org/legal/epl-v10.html
8  */
9
10 package org.opendaylight.controller.forwarding.staticrouting.northbound;
11
12 import javax.xml.bind.annotation.XmlAccessType;
13 import javax.xml.bind.annotation.XmlAccessorType;
14 import javax.xml.bind.annotation.XmlElement;
15 import javax.xml.bind.annotation.XmlRootElement;
16
17 @XmlRootElement
18 @XmlAccessorType(XmlAccessType.NONE)
19 /**
20  * This class contains static route data  that is returned as a response to the NorthBound GET request.
21  *
22  *
23  *
24  */
25 public class StaticRoute {
26     @XmlElement
27     private String name;
28     @XmlElement
29     private String prefix; // A.B.C.D/MM  Where A.B.C.D is the Default Gateway IP (L3) or ARP Querier IP (L2)
30     @XmlElement
31     private String nextHop; // NextHop IP-Address (or) datapath ID/port list: xx:xx:xx:xx:xx:xx:xx:xx/a,b,c-m,r-t,y
32
33     public StaticRoute() {
34     }
35
36     public StaticRoute(String name, String prefix, String nextHop) {
37         super();
38         this.name = name;
39         this.prefix = prefix;
40         this.nextHop = nextHop;
41     }
42
43     public String getName() {
44         return name;
45     }
46
47     public void setName(String name) {
48         this.name = name;
49     }
50
51     public String getPrefix() {
52         return prefix;
53     }
54
55     public void setPrefix(String prefix) {
56         this.prefix = prefix;
57     }
58
59     public String getNextHop() {
60         return nextHop;
61     }
62
63     public void setNextHop(String nextHop) {
64         this.nextHop = nextHop;
65     }
66 }