MINOR: stick-table: Make the CLI stick-table handler support dictionary entry data type.
Simple patch to dump the values (strings) of dictionary entries stored in stick-table entries with STD_T_DICT as internal data type.
This commit is contained in:
parent
8d78fa7def
commit
16b4f54533
@ -3347,6 +3347,12 @@ static int table_dump_entry_to_buffer(struct buffer *msg,
|
||||
read_freq_ctr_period(&stktable_data_cast(ptr, std_t_frqp),
|
||||
t->data_arg[dt].u));
|
||||
break;
|
||||
case STD_T_DICT: {
|
||||
struct dict_entry *de;
|
||||
de = stktable_data_cast(ptr, std_t_dict);
|
||||
chunk_appendf(msg, "%s", de ? (char *)de->value.key : "-");
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
chunk_appendf(msg, "\n");
|
||||
|
Loading…
x
Reference in New Issue
Block a user