Jonathan Hart | 4dfc365 | 2013-08-02 20:22:36 +1200 | [diff] [blame^] | 1 | package net.onrc.onos.ofcontroller.bgproute; |
| 2 | |
| 3 | import 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 | |
| 10 | public 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 | } |