blob: 56d5243e9c7e7173cfc7b339f8f666fbcb390603 [file] [log] [blame]
Jonathan Harte7e1c6e2013-06-04 20:50:23 -07001package net.floodlightcontroller.bgproute;
2
3import net.floodlightcontroller.util.IPv4;
4import net.floodlightcontroller.util.MACAddress;
5import net.floodlightcontroller.util.SwitchPort;
6
7public class GatewayRouter {
8 private SwitchPort attachmentPoint;
9 private MACAddress routerMac;
10 private IPv4 routerIp;
11
Jonathan Hart50a8d1e2013-06-06 16:00:47 +120012 //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 Harte7e1c6e2013-06-04 20:50:23 -070019 this.attachmentPoint = attachmentPoint;
20 this.routerMac = routerMac;
21 this.routerIp = routerIp;
Jonathan Hart50a8d1e2013-06-06 16:00:47 +120022 this.sdnRouterIp = sdnRouterIp;
23 this.sdnRouterMac = sdnRouterMac;
Jonathan Harte7e1c6e2013-06-04 20:50:23 -070024 }
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 Hart50a8d1e2013-06-06 16:00:47 +120037
38 //TODO delete if not needed
39 public MACAddress getSdnRouterMac() {
40 return sdnRouterMac;
41 }
42
43 public IPv4 getSdnRouterIp() {
44 return sdnRouterIp;
45 }
Jonathan Harte7e1c6e2013-06-04 20:50:23 -070046}