blob: 73c13341ac000466d5044cfba099614b32740d24 [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;
Fahad Naeem Khanee5c15a2014-10-17 19:13:51 -070016 public Port port = null;
17
18 public SegmentRouterPortInfo(String ssubnets, Port pport){
19 this.port = pport;
Fahad Naeem Khanee5c15a2014-10-17 19:13:51 -070020 this.subnetIp = ssubnets;
21 }
22
23 public void setInfo(String subnetIp, Port p) {
24 this.port = p;
25 this.subnetIp = subnetIp;
26
27 }
28
29}