aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/fib/fib_entry.h
diff options
context:
space:
mode:
authorNeale Ranns <nranns@cisco.com>2018-04-04 05:00:48 -0700
committerOle Trøan <otroan@employees.org>2018-04-04 13:31:56 +0000
commit6df19030f2bf986f1876c2c46b44c046b9b2c686 (patch)
treeebc11f7ec2fa917b3720cb7284b51d280a2b1a57 /src/vnet/fib/fib_entry.h
parent36a62702c5454d0a3f7e7aafc5b95d6ca0a7d703 (diff)
NAT added FIB entries have a preference lower than API/CLI
Change-Id: Ia99490180683e8649784f7d9d18c509c3ca78438 Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'src/vnet/fib/fib_entry.h')
-rw-r--r--src/vnet/fib/fib_entry.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/vnet/fib/fib_entry.h b/src/vnet/fib/fib_entry.h
index 92333e9cc03..ddaf914389e 100644
--- a/src/vnet/fib/fib_entry.h
+++ b/src/vnet/fib/fib_entry.h
@@ -73,6 +73,10 @@ typedef enum fib_source_t_ {
*/
FIB_SOURCE_CLI,
/**
+ * A low (below routing) priority source a plugin can use
+ */
+ FIB_SOURCE_PLUGIN_LOW,
+ /**
* LISP
*/
FIB_SOURCE_LISP,
@@ -169,6 +173,7 @@ STATIC_ASSERT (sizeof(fib_source_t) == 1,
[FIB_SOURCE_URPF_EXEMPT] = "urpf-exempt", \
[FIB_SOURCE_DEFAULT_ROUTE] = "default-route", \
[FIB_SOURCE_PLUGIN_HI] = "plugin-hi", \
+ [FIB_SOURCE_PLUGIN_LOW] = "plugin-low", \
[FIB_SOURCE_INTERPOSE] = "interpose", \
}