]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgpd: Rename SERVER_PUBKEY to KNOWN_HOSTS_PATH 16023/head
authorDonatas Abraitis <donatas@opensourcerouting.org>
Tue, 21 May 2024 06:00:24 +0000 (09:00 +0300)
committerDonatas Abraitis <donatas@opensourcerouting.org>
Tue, 21 May 2024 11:23:16 +0000 (14:23 +0300)
SERVER_PUBKEY is not the best name to describe what it really is.

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
bgpd/bgp_rpki.c
doc/user/rpki.rst

index 08a7e1896ff7ae336e7a83604527cc6cbb7862c3..f5508a0a73456b2d6dd73762bfd08bcbbf499f6a 100644 (file)
@@ -1922,7 +1922,7 @@ DEFUN (no_rpki_retry_interval,
 CPP_NOTICE("Remove rpki_cache_cmd")
 #endif
 DEFPY(rpki_cache, rpki_cache_cmd,
-      "rpki cache <A.B.C.D|WORD> <TCPPORT|(1-65535)$sshport SSH_UNAME SSH_PRIVKEY [SERVER_PUBKEY]> [source <A.B.C.D>$bindaddr] preference (1-255)",
+      "rpki cache <A.B.C.D|WORD> <TCPPORT|(1-65535)$sshport SSH_UNAME SSH_PRIVKEY [KNOWN_HOSTS_PATH]> [source <A.B.C.D>$bindaddr] preference (1-255)",
       RPKI_OUTPUT_STRING
       "Install a cache server to current group\n"
       "IP address of cache server\n"
@@ -1931,7 +1931,7 @@ DEFPY(rpki_cache, rpki_cache_cmd,
       "SSH port number\n"
       "SSH user name\n"
       "Path to own SSH private key\n"
-      "Path to Public key of cache server\n"
+      "Path to the known hosts file\n"
       "Configure source IP address of RPKI connection\n"
       "Define a Source IP Address\n"
       "Preference of the cache server\n"
@@ -1970,7 +1970,7 @@ DEFPY(rpki_cache, rpki_cache_cmd,
        if (ssh_uname) {
 #if defined(FOUND_SSH)
                return_value = add_ssh_cache(rpki_vrf, cache, sshport, ssh_uname,
-                                            ssh_privkey, server_pubkey,
+                                            ssh_privkey, known_hosts_path,
                                             preference, bindaddr_str);
 #else
                return_value = SUCCESS;
@@ -2050,7 +2050,7 @@ DEFPY(rpki_cache_tcp, rpki_cache_tcp_cmd,
 }
 
 DEFPY(rpki_cache_ssh, rpki_cache_ssh_cmd,
-      "rpki cache ssh <A.B.C.D|WORD>$cache (1-65535)$sshport SSH_UNAME SSH_PRIVKEY [SERVER_PUBKEY] [source <A.B.C.D>$bindaddr] preference (1-255)",
+      "rpki cache ssh <A.B.C.D|WORD>$cache (1-65535)$sshport SSH_UNAME SSH_PRIVKEY [KNOWN_HOSTS_PATH] [source <A.B.C.D>$bindaddr] preference (1-255)",
       RPKI_OUTPUT_STRING
       "Install a cache server to current group\n"
       "Use SSH\n"
@@ -2059,7 +2059,7 @@ DEFPY(rpki_cache_ssh, rpki_cache_ssh_cmd,
       "SSH port number\n"
       "SSH user name\n"
       "Path to own SSH private key\n"
-      "Path to Public key of cache server\n"
+      "Path to the known hosts file\n"
       "Configure source IP address of RPKI connection\n"
       "Define a Source IP Address\n"
       "Preference of the cache server\n"
@@ -2096,7 +2096,7 @@ DEFPY(rpki_cache_ssh, rpki_cache_ssh_cmd,
 
 #if defined(FOUND_SSH)
        return_value = add_ssh_cache(rpki_vrf, cache, sshport, ssh_uname,
-                                    ssh_privkey, server_pubkey, preference,
+                                    ssh_privkey, known_hosts_path, preference,
                                     bindaddr_str);
 #else
        return_value = SUCCESS;
@@ -2117,7 +2117,7 @@ DEFPY(rpki_cache_ssh, rpki_cache_ssh_cmd,
 
 DEFPY (no_rpki_cache,
        no_rpki_cache_cmd,
-       "no rpki cache <tcp|ssh> <A.B.C.D|WORD> <TCPPORT|(1-65535)$sshport SSH_UNAME SSH_PRIVKEY [SERVER_PUBKEY]> [source <A.B.C.D>$bindaddr] preference (1-255)",
+       "no rpki cache <tcp|ssh> <A.B.C.D|WORD> <TCPPORT|(1-65535)$sshport SSH_UNAME SSH_PRIVKEY [KNOWN_HOSTS_PATH]> [source <A.B.C.D>$bindaddr] preference (1-255)",
        NO_STR
        RPKI_OUTPUT_STRING
        "Install a cache server to current group\n"
@@ -2129,7 +2129,7 @@ DEFPY (no_rpki_cache,
        "SSH port number\n"
        "SSH user name\n"
        "Path to own SSH private key\n"
-       "Path to Public key of cache server\n"
+       "Path to the known hosts file\n"
        "Configure source IP address of RPKI connection\n"
        "Define a Source IP Address\n"
        "Preference of the cache server\n"
index 394327e2ff7710e5aa9db70926c5d72465f757e0..98f9b103cdf9b6af45df520f47e5a54b99faf3a1 100644 (file)
@@ -135,7 +135,7 @@ The following commands are available for independent of a specific cache server.
 
    Add a TCP cache server to the socket.
 
-.. clicmd:: rpki cache ssh HOST PORT SSH_USERNAME SSH_PRIVKEY_PATH [SERVER_PUBKEY] [source A.B.C.D] preference (1-255)
+.. clicmd:: rpki cache ssh HOST PORT SSH_USERNAME SSH_PRIVKEY_PATH [KNOWN_HOSTS_PATH] [source A.B.C.D] preference (1-255)
 
    Add a SSH cache server to the socket.
 
@@ -145,7 +145,7 @@ The following commands are available for independent of a specific cache server.
    SSH_PRIVKEY_PATH
       Local path that includes the private key file of the router.
 
-   SERVER_PUBKEY
+   KNOWN_HOSTS_PATH
       Local path that includes the known hosts file. The default value depends
       on the configuration of the operating system environment, usually
       :file:`~/.ssh/known_hosts`.