blob: 61d50a414eecbf0dedd9c045e4bbed95f2bcb0ab [file] [log] [blame]
Jonathan Hart4dfc3652013-08-02 20:22:36 +12001package net.onrc.onos.ofcontroller.bgproute;
2
3import java.net.InetAddress;
4
5/*
6 * A path is always assumed to be from all other interfaces (external-facing
7 * switchports) to the destination interface.
8 */
9
10public class PathUpdate {
11
12 //private Set<Interface> srcInterfaces;
13 private Interface dstInterface;
14 private InetAddress dstIpAddress;
15
16 public PathUpdate(//Collection<Interface> srcInterfaces,
17 Interface dstInterface, InetAddress dstIpAddress) {
18 this.dstInterface = dstInterface;
19 this.dstIpAddress = dstIpAddress;
20
21 //this.srcInterfaces = new HashSet<Interface>(srcInterfaces.size());
22 //for (Interface intf : srcInterfaces) {
23 // this.srcInterfaces.add(intf);
24 //}
25 }
26
27 //public Set<Interface> getSrcInterfaces() {
28 // return Collections.unmodifiableSet(srcInterfaces);
29 //}
30
31 public Interface getDstInterface() {
32 return dstInterface;
33 }
34
35 public InetAddress getDstIpAddress() {
36 return dstIpAddress;
37 }
38}