mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-06 10:54:47 +00:00
bgpd: avoid crash when calling show rpki-table
if ssh cache servers are configured, then show rpki-table is looking at the tcp server context. Fix this by checking the server cache type, and also display the ssh context if this is configured. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
This commit is contained in:
parent
bd32bb8058
commit
b5b9dcae9c
@ -1242,9 +1242,14 @@ DEFUN (show_rpki_prefix_table,
|
||||
struct cache *cache;
|
||||
|
||||
for (ALL_LIST_ELEMENTS_RO(cache_list, cache_node, cache)) {
|
||||
vty_out(vty, "host: %s port: %s\n",
|
||||
cache->tr_config.tcp_config->host,
|
||||
cache->tr_config.tcp_config->port);
|
||||
if (cache->type == TCP)
|
||||
vty_out(vty, "host: %s port: %s\n",
|
||||
cache->tr_config.tcp_config->host,
|
||||
cache->tr_config.tcp_config->port);
|
||||
else
|
||||
vty_out(vty, "host: %s port: %u SSH\n",
|
||||
cache->tr_config.ssh_config->host,
|
||||
cache->tr_config.ssh_config->port);
|
||||
}
|
||||
if (is_synchronized())
|
||||
print_prefix_table(vty);
|
||||
|
Loading…
Reference in New Issue
Block a user