Jonathan Hart | e7e1c6e | 2013-06-04 20:50:23 -0700 | [diff] [blame^] | 1 | package net.floodlightcontroller.bgproute; |
| 2 | |
| 3 | import net.floodlightcontroller.util.IPv4; |
| 4 | import net.floodlightcontroller.util.MACAddress; |
| 5 | import net.floodlightcontroller.util.SwitchPort; |
| 6 | |
| 7 | public class GatewayRouter { |
| 8 | private SwitchPort attachmentPoint; |
| 9 | private MACAddress routerMac; |
| 10 | private IPv4 routerIp; |
| 11 | |
| 12 | public GatewayRouter(SwitchPort attachmentPoint, MACAddress routerMac, IPv4 routerIp) { |
| 13 | this.attachmentPoint = attachmentPoint; |
| 14 | this.routerMac = routerMac; |
| 15 | this.routerIp = routerIp; |
| 16 | } |
| 17 | |
| 18 | public SwitchPort getAttachmentPoint() { |
| 19 | return attachmentPoint; |
| 20 | } |
| 21 | |
| 22 | public MACAddress getRouterMac() { |
| 23 | return routerMac; |
| 24 | } |
| 25 | |
| 26 | public IPv4 getRouterIp() { |
| 27 | return routerIp; |
| 28 | } |
| 29 | } |