blob: cd6f9be8e0242f516897c8b90933ecb66f06c6c9 [file] [log] [blame]
Fahad Naeem Khana40f9b62014-10-20 18:33:45 -07001package net.onrc.onos.apps.segmentrouting.web;
2
3import java.util.List;
4
Fahad Naeem Khana40f9b62014-10-20 18:33:45 -07005/**
6 * This class contains tunnel info of ONOS Segement Routing App
7 * Used for rest API
8 */
9public class SegmentRouterTunnelInfo {
10 private String tunnelId;
Srikanth Vavilapalli1f6a5742014-10-21 13:45:11 -070011 // private List<Dpid> nodes;
Fahad Naeem Khana40f9b62014-10-20 18:33:45 -070012 private List<List<String>> labelStack;
Srikanth Vavilapalli1f6a5742014-10-21 13:45:11 -070013
14 public SegmentRouterTunnelInfo(String tId, /*List<Dpid> dpids,*/
Fahad Naeem Khana40f9b62014-10-20 18:33:45 -070015 List<List<String>> tunnelRoutes){
16 this.tunnelId = tId;
Srikanth Vavilapalli1f6a5742014-10-21 13:45:11 -070017 // this.nodes = dpids;
Fahad Naeem Khana40f9b62014-10-20 18:33:45 -070018 this.labelStack = tunnelRoutes;
19 }
20 public String getTunnelId (){
21 return this.tunnelId;
22 }
Srikanth Vavilapalli1f6a5742014-10-21 13:45:11 -070023
24 /*public List<Dpid> getnodes (){
Fahad Naeem Khana40f9b62014-10-20 18:33:45 -070025 return this.nodes;
Srikanth Vavilapalli1f6a5742014-10-21 13:45:11 -070026 }*/
Fahad Naeem Khana40f9b62014-10-20 18:33:45 -070027 public List<List<String>> getLabelStack (){
28 return this.labelStack;
29 }
30}