summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_rpki.c
diff options
context:
space:
mode:
authorMarcel Röthke <marcel.roethke@haw-hamburg.de>2019-02-07 17:12:16 +0100
committerMarcel Röthke <marcel.roethke@haw-hamburg.de>2019-02-07 17:26:11 +0100
commit745ae9c08822de29c609c49c3179ac5628b3ffc7 (patch)
tree69e016a62cc5c5e2014535377903056a5ba5d732 /bgpd/bgp_rpki.c
parentMerge pull request #3684 from mjstapp/dplane_pw (diff)
downloadfrr-745ae9c08822de29c609c49c3179ac5628b3ffc7.tar.xz
frr-745ae9c08822de29c609c49c3179ac5628b3ffc7.zip
bgpd: fix "show rpki cache-server" for ssh caches
Fix #3662 Signed-off-by: Marcel Röthke <marcel.roethke@haw-hamburg.de>
Diffstat (limited to '')
-rw-r--r--bgpd/bgp_rpki.c20
1 files changed, 17 insertions, 3 deletions
diff --git a/bgpd/bgp_rpki.c b/bgpd/bgp_rpki.c
index b614e87d2..b2e7f04ec 100644
--- a/bgpd/bgp_rpki.c
+++ b/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;