Jonathan Hart | 382623d | 2014-04-03 09:48:11 -0700 | [diff] [blame] | 1 | package net.onrc.onos.apps.bgproute; |
Jonathan Hart | e963a33 | 2013-07-26 15:56:20 +1200 | [diff] [blame] | 2 | |
| 3 | public class RibUpdate { |
Jonathan Hart | 738980f | 2014-04-04 10:11:15 -0700 | [diff] [blame] | 4 | private final Operation operation; |
| 5 | private final Prefix prefix; |
| 6 | private final RibEntry ribEntry; |
| 7 | |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame] | 8 | public enum Operation { |
| 9 | UPDATE, |
| 10 | DELETE |
| 11 | } |
Jonathan Hart | e963a33 | 2013-07-26 15:56:20 +1200 | [diff] [blame] | 12 | |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame] | 13 | public RibUpdate(Operation operation, Prefix prefix, RibEntry ribEntry) { |
| 14 | this.operation = operation; |
| 15 | this.prefix = prefix; |
| 16 | this.ribEntry = ribEntry; |
| 17 | } |
Jonathan Hart | e963a33 | 2013-07-26 15:56:20 +1200 | [diff] [blame] | 18 | |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame] | 19 | public Operation getOperation() { |
| 20 | return operation; |
| 21 | } |
| 22 | |
| 23 | public Prefix getPrefix() { |
| 24 | return prefix; |
| 25 | } |
| 26 | |
| 27 | public RibEntry getRibEntry() { |
| 28 | return ribEntry; |
| 29 | } |
Jonathan Hart | e963a33 | 2013-07-26 15:56:20 +1200 | [diff] [blame] | 30 | } |