Northbound cleanup for static routing
[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 /**
18  * StaticRoute represents the static route data that is returned as a response to
19  * the NorthBound GET request.
20  *
21  */
22 @XmlRootElement
23 @XmlAccessorType(XmlAccessType.NONE)
24 public class StaticRoute {
25     /**
26      * The name of the static route.
27      */
28     @XmlElement
29     private String name;
30
31     /**
32      * The prefix for the route.
33      * Format: A.B.C.D/MM  Where A.B.C.D is the Default Gateway IP (L3) or ARP Querier IP (L2)
34      */
35     @XmlElement
36     private String prefix;
37
38     /**
39      * NextHop IP-Address (or) datapath ID/port list: xx:xx:xx:xx:xx:xx:xx:xx/a,b,c-m,r-t,y
40      */
41     @XmlElement
42     private String nextHop;
43
44     public StaticRoute() {
45     }
46
47     public StaticRoute(String name, String prefix, String nextHop) {
48         super();
49         this.name = name;
50         this.prefix = prefix;
51         this.nextHop = nextHop;
52     }
53
54     public String getName() {
55         return name;
56     }
57
58     public void setName(String name) {
59         this.name = name;
60     }
61
62     public String getPrefix() {
63         return prefix;
64     }
65
66     public void setPrefix(String prefix) {
67         this.prefix = prefix;
68     }
69
70     public String getNextHop() {
71         return nextHop;
72     }
73
74     public void setNextHop(String nextHop) {
75         this.nextHop = nextHop;
76     }
77 }