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 | |
Jonathan Hart | 50a8d1e | 2013-06-06 16:00:47 +1200 | [diff] [blame] | 12 | //For now, put in the IP and MAC of the SDN domain's router that this |
| 13 | //gateway will be communicating with |
| 14 | private MACAddress sdnRouterMac; |
| 15 | private IPv4 sdnRouterIp; |
| 16 | |
| 17 | public GatewayRouter(SwitchPort attachmentPoint, MACAddress routerMac, |
| 18 | IPv4 routerIp, MACAddress sdnRouterMac, IPv4 sdnRouterIp) { |
Jonathan Hart | e7e1c6e | 2013-06-04 20:50:23 -0700 | [diff] [blame] | 19 | this.attachmentPoint = attachmentPoint; |
| 20 | this.routerMac = routerMac; |
| 21 | this.routerIp = routerIp; |
Jonathan Hart | 50a8d1e | 2013-06-06 16:00:47 +1200 | [diff] [blame] | 22 | this.sdnRouterIp = sdnRouterIp; |
| 23 | this.sdnRouterMac = sdnRouterMac; |
Jonathan Hart | e7e1c6e | 2013-06-04 20:50:23 -0700 | [diff] [blame] | 24 | } |
| 25 | |
| 26 | public SwitchPort getAttachmentPoint() { |
| 27 | return attachmentPoint; |
| 28 | } |
| 29 | |
| 30 | public MACAddress getRouterMac() { |
| 31 | return routerMac; |
| 32 | } |
| 33 | |
| 34 | public IPv4 getRouterIp() { |
| 35 | return routerIp; |
| 36 | } |
Jonathan Hart | 50a8d1e | 2013-06-06 16:00:47 +1200 | [diff] [blame] | 37 | |
| 38 | //TODO delete if not needed |
| 39 | public MACAddress getSdnRouterMac() { |
| 40 | return sdnRouterMac; |
| 41 | } |
| 42 | |
| 43 | public IPv4 getSdnRouterIp() { |
| 44 | return sdnRouterIp; |
| 45 | } |
Jonathan Hart | e7e1c6e | 2013-06-04 20:50:23 -0700 | [diff] [blame] | 46 | } |