Northbound cleanup for static routing
[controller.git] / opendaylight / northbound / staticrouting / src / main / java / org / opendaylight / controller / forwarding / staticrouting / northbound / StaticRoutes.java
1 /*
2  * Copyright (c) 2013 Cisco Systems, Inc. and others.  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.forwarding.staticrouting.northbound;
10
11 import java.util.List;
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 import org.opendaylight.controller.forwardingrulesmanager.FlowConfig;
19
20 /**
21  * This class represents a list of static routes.
22  */
23 @XmlRootElement(name = "list")
24 @XmlAccessorType(XmlAccessType.NONE)
25 public class StaticRoutes {
26         @XmlElement
27         List<StaticRoute> staticRoute;
28         //To satisfy JAXB
29         private StaticRoutes() {
30
31         }
32
33         public StaticRoutes(List<StaticRoute> staticRoute) {
34                 this.staticRoute = staticRoute;
35         }
36
37         public List<StaticRoute> getFlowConfig() {
38                 return staticRoute;
39         }
40
41         public void setFlowConfig(List<StaticRoute> staticRoute) {
42                 this.staticRoute = staticRoute;
43         }
44 }