Fahad Naeem Khan | ee5c15a | 2014-10-17 19:13:51 -0700 | [diff] [blame] | 1 | package net.onrc.onos.apps.segmentrouting.web; |
| 2 | |
| 3 | import java.util.ArrayList; |
| 4 | import java.util.HashMap; |
| 5 | |
| 6 | import 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 | |
| 13 | public 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 | } |