Skip to content
Permalink
Browse files

bgpd: fix "show rpki cache-server" for ssh caches

Fix #3662

Signed-off-by: Marcel Röthke <marcel.roethke@haw-hamburg.de>
  • Loading branch information...
mroethke committed Feb 7, 2019
1 parent 4634d02 commit 745ae9c08822de29c609c49c3179ac5628b3ffc7
Showing with 17 additions and 3 deletions.
  1. +17 −3 bgpd/bgp_rpki.c
@@ -1190,9 +1190,23 @@ DEFUN (show_rpki_cache_server,
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 if (cache->type == SSH) {
vty_out(vty,
"host: %s port: %d username: %s "
"server_hostkey_path: %s client_privkey_path: %s\n",
cache->tr_config.ssh_config->host,
cache->tr_config.ssh_config->port,
cache->tr_config.ssh_config->username,
cache->tr_config.ssh_config
->server_hostkey_path,
cache->tr_config.ssh_config
->client_privkey_path);
}
}

return CMD_SUCCESS;

0 comments on commit 745ae9c

Please sign in to comment.
You can’t perform that action at this time.