Fixup Path weights of 0 63/3863/2
authorNeale Ranns <nranns@cisco.com>
Wed, 16 Nov 2016 11:47:44 +0000 (11:47 +0000)
committerDamjan Marion <dmarion.lists@gmail.com>
Thu, 17 Nov 2016 18:46:20 +0000 (18:46 +0000)
commit0bd36eac4758f785ae9e2c006894b6935f0f70f2
tree227e36c8ef714012699486ea78890ca14d77ddad
parent4ee3a65b93282aec6d2016f174529d7ac5e364e1
Fixup Path weights of 0

A path wight of 0 is a meaningless value. We can either reject it and thus expect CLI/API clients to always write a non-zero value, or we can accept it and assume the intent was a weight of 1 - this fix does the latter.

Change-Id: Ide736dbbb8376f85441f5a67388d5e3acad4d34e
Signed-off-by: Neale Ranns <nranns@cisco.com>
vnet/vnet/dpo/load_balance.c
vnet/vnet/fib/fib_path.c
vnet/vnet/fib/fib_test.c