blob: 3808ef80e047ea9a49b46ec6906747fa34ca34de [file] [log] [blame]
Fahad Naeem Khana40f9b62014-10-20 18:33:45 -07001package net.onrc.onos.apps.segmentrouting.web;
2
3import java.util.List;
Fahad Naeem Khana40f9b62014-10-20 18:33:45 -07004/**
5 * This class contains tunnel info of ONOS Segement Routing App
6 * Used for rest API
7 */
8public class SegmentRouterTunnelInfo {
9 private String tunnelId;
Fahad Naeem Khana40f9b62014-10-20 18:33:45 -070010 private List<List<String>> labelStack;
Fahad Naeem Khan95aa4012014-10-21 14:07:00 -070011 private List<String> dpidGroup;
Fahad Naeem Khan7187d0a2014-10-27 12:01:40 -070012 private List<Integer> tunnelPath;
Fahad Naeem Khan12fa63a2014-10-21 17:01:27 -070013 private String policies;
Fahad Naeem Khan95aa4012014-10-21 14:07:00 -070014
Fahad Naeem Khan12fa63a2014-10-21 17:01:27 -070015 public SegmentRouterTunnelInfo (String tId,List<List<String>> tunnelRoutes,
Fahad Naeem Khan7187d0a2014-10-27 12:01:40 -070016 List<String> dpidsWithGroup,List<Integer> path, String policiesId){
Fahad Naeem Khana40f9b62014-10-20 18:33:45 -070017 this.tunnelId = tId;
Fahad Naeem Khana40f9b62014-10-20 18:33:45 -070018 this.labelStack = tunnelRoutes;
Fahad Naeem Khan95aa4012014-10-21 14:07:00 -070019 this.dpidGroup = dpidsWithGroup;
Fahad Naeem Khan7187d0a2014-10-27 12:01:40 -070020 this.tunnelPath = path;
Fahad Naeem Khan12fa63a2014-10-21 17:01:27 -070021 this.policies = policiesId;
Fahad Naeem Khan7187d0a2014-10-27 12:01:40 -070022
Fahad Naeem Khana40f9b62014-10-20 18:33:45 -070023 }
24 public String getTunnelId (){
25 return this.tunnelId;
26 }
Fahad Naeem Khana40f9b62014-10-20 18:33:45 -070027 public List<List<String>> getLabelStack (){
28 return this.labelStack;
29 }
Fahad Naeem Khan95aa4012014-10-21 14:07:00 -070030 public List<String> getDpidGroup (){
31 return this.dpidGroup;
32 }
Fahad Naeem Khan7187d0a2014-10-27 12:01:40 -070033 public List<Integer> getTunnelPath (){
34 return this.tunnelPath;
35 }
Fahad Naeem Khan12fa63a2014-10-21 17:01:27 -070036 public String getPolicies (){
37 return this.policies;
38 }
Fahad Naeem Khana40f9b62014-10-20 18:33:45 -070039}