FIB path preference 86/7586/3
authorNeale Ranns <nranns@cisco.com>
Sat, 15 Jul 2017 14:37:25 +0000 (07:37 -0700)
committerDamjan Marion <dmarion.lists@gmail.com>
Tue, 18 Jul 2017 20:46:29 +0000 (20:46 +0000)
commit57b5860f013953ce161d05302e05370db9cd6ee2
tree2d4cdbbc631848be4c43c599698019b2121e000b
parent51822bf07a3f0fe72834ea94659faf6e262475ba
FIB path preference

Paths are given a preference, lowest value is 'best'. Only paths that are up are up contribute to fprwarding - that's unchanged. What's new is that of the path's that re up only those that have the best preference contribute. A poor man's primary and backup. It's not true primary/backup function because the FIB must converge before the lower preference paths are used.

Change-Id: Ie4453c4a7b1094c6c2b51fe1594b8302103bb68e
Signed-off-by: Neale Ranns <nranns@cisco.com>
13 files changed:
src/vnet/fib/fib_api.h
src/vnet/fib/fib_entry.c
src/vnet/fib/fib_entry_src.c
src/vnet/fib/fib_path.c
src/vnet/fib/fib_path.h
src/vnet/fib/fib_path_list.c
src/vnet/fib/fib_test.c
src/vnet/fib/fib_types.h
src/vnet/ip/ip.api
src/vnet/ip/ip_api.c
src/vnet/ip/lookup.c
src/vnet/mpls/mpls.api
src/vnet/mpls/mpls_api.c