blob: a25d4dea4c5e1bb82608a8ee04a8e02b0c6a6a13 [file] [log] [blame]
Fahad Naeem Khanee5c15a2014-10-17 19:13:51 -07001package net.onrc.onos.apps.segmentrouting.web;
2
3import java.util.ArrayList;
4import java.util.HashMap;
5
6import net.onrc.onos.core.topology.Port;
7
8/**
9 * This class represent the the port info of the segmentRouter
10 * for rest output.
11 */
12
13public class SegmentRouterPortInfo {
14 //TODO set attributes to private and provide setter and getter.
15 public String subnetIp= null;
16 //private int portNo;
17 public Port port = null;
18
19 public SegmentRouterPortInfo(String ssubnets, Port pport){
20 this.port = pport;
21 //this.portNo = portNo;
22 this.subnetIp = ssubnets;
23 }
24
25 public void setInfo(String subnetIp, Port p) {
26 this.port = p;
27 this.subnetIp = subnetIp;
28
29 }
30
31}