Change-Id: Ie7827b6a31968a355687d27325c0f30cab1bc890
Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
fib_node_index_t fi;
va_list ap;
fib_node_index_t fi;
va_list ap;
fib_table = fib_table_get(fi, proto);
fib_table = fib_table_get(fi, proto);
fib_table->ft_desc = va_format(fib_table->ft_desc, fmt, &ap);
va_end(ap);
fib_table->ft_desc = va_format(fib_table->ft_desc, fmt, &ap);
va_end(ap);
#define FIB_TEST_RPF(_cond, _comment, _args...) \
{ \
if (FIB_TEST_I(_cond, _comment, ##_args)) { \
#define FIB_TEST_RPF(_cond, _comment, _args...) \
{ \
if (FIB_TEST_I(_cond, _comment, ##_args)) { \
+ res = 1; \
+ goto cleanup; \
va_end(ap);
return (res);
va_end(ap);
return (res);
- va_start(ap, n_buckets);
res = 0;
pfx = fib_entry_get_prefix(fei);
res = 0;
pfx = fib_entry_get_prefix(fei);
{
const replicate_t *rep;
{
const replicate_t *rep;
+ va_start(ap, n_buckets);
rep = replicate_get(dpo.dpoi_index);
res = fib_test_validate_rep_v(rep, n_buckets, &ap);
rep = replicate_get(dpo.dpoi_index);
res = fib_test_validate_rep_v(rep, n_buckets, &ap);
format_fib_prefix, pfx,
format_dpo_type, dpo.dpoi_type);
format_fib_prefix, pfx,
format_dpo_type, dpo.dpoi_type);
+ va_start(ap, n_buckets);
lb = load_balance_get(dpo.dpoi_index);
res = fib_test_validate_lb_v(lb, n_buckets, &ap);
lb = load_balance_get(dpo.dpoi_index);
res = fib_test_validate_lb_v(lb, n_buckets, &ap);
/*
* ensure that the LB contributed by the entry is the
/*
* ensure that the LB contributed by the entry is the
- va_start(ap, n_buckets);
res = 0;
mfe = mfib_entry_get(fei);
res = 0;
mfe = mfib_entry_get(fei);
format_mfib_prefix, &pfx,
format_dpo_type, tmp.dpoi_type);
format_mfib_prefix, &pfx,
format_dpo_type, tmp.dpoi_type);
+ va_start(ap, n_buckets);
res = mfib_test_validate_rep_v(rep, n_buckets, &ap);
res = mfib_test_validate_rep_v(rep, n_buckets, &ap);