3 * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
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
10 package org.opendaylight.controller.forwarding.staticrouting.northbound;
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;
18 @XmlAccessorType(XmlAccessType.NONE)
20 * This class contains static route data that is returned as a response to the NorthBound GET request.
25 public class StaticRoute {
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)
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
33 public StaticRoute() {
36 public StaticRoute(String name, String prefix, String nextHop) {
40 this.nextHop = nextHop;
43 public String getName() {
47 public void setName(String name) {
51 public String getPrefix() {
55 public void setPrefix(String prefix) {
59 public String getNextHop() {
63 public void setNextHop(String nextHop) {
64 this.nextHop = nextHop;