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 * StaticRoute represents the static route data that is returned as a response to
19 * the NorthBound GET request.
23 @XmlAccessorType(XmlAccessType.NONE)
24 public class StaticRoute {
26 * The name of the static route.
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)
36 private String prefix;
39 * NextHop IP-Address (or) datapath ID/port list: xx:xx:xx:xx:xx:xx:xx:xx/a,b,c-m,r-t,y
42 private String nextHop;
44 public StaticRoute() {
47 public StaticRoute(String name, String prefix, String nextHop) {
51 this.nextHop = nextHop;
54 public String getName() {
58 public void setName(String name) {
62 public String getPrefix() {
66 public void setPrefix(String prefix) {
70 public String getNextHop() {
74 public void setNextHop(String nextHop) {
75 this.nextHop = nextHop;