Making tables dump generic based on field tables

Signed-off-by: Ilya Nelkenbaum <ilyan@mellanox.com>