Fahad Naeem Khan | a40f9b6 | 2014-10-20 18:33:45 -0700 | [diff] [blame^] | 1 | package net.onrc.onos.apps.segmentrouting.web; |
| 2 | |
| 3 | import java.util.List; |
| 4 | |
| 5 | import net.onrc.onos.apps.segmentrouting.SegmentRoutingManager.TunnelRouteInfo; |
| 6 | import net.onrc.onos.core.util.Dpid; |
| 7 | |
| 8 | /** |
| 9 | * This class contains tunnel info of ONOS Segement Routing App |
| 10 | * Used for rest API |
| 11 | */ |
| 12 | public class SegmentRouterTunnelInfo { |
| 13 | private String tunnelId; |
| 14 | private List<Dpid> nodes; |
| 15 | private List<List<String>> labelStack; |
| 16 | |
| 17 | public SegmentRouterTunnelInfo (String tId, List<Dpid> dpids, |
| 18 | List<List<String>> tunnelRoutes){ |
| 19 | this.tunnelId = tId; |
| 20 | this.nodes = dpids; |
| 21 | this.labelStack = tunnelRoutes; |
| 22 | } |
| 23 | public String getTunnelId (){ |
| 24 | return this.tunnelId; |
| 25 | } |
| 26 | public List<Dpid> getnodes (){ |
| 27 | return this.nodes; |
| 28 | } |
| 29 | public List<List<String>> getLabelStack (){ |
| 30 | return this.labelStack; |
| 31 | } |
| 32 | } |