Skip to content

Commit 15701e4

Browse files
committed
consistent use of authstring for md5 auth
1 parent bf7b7e2 commit 15701e4

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

cli/docs/cli.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4647,6 +4647,10 @@
46474647
"long": "allowed-imports",
46484648
"help": "Prefixes that may be imported form the peer. Empty list means all prefixes allowed"
46494649
},
4650+
{
4651+
"long": "authstring",
4652+
"help": "Use the given authorization string for TCP-MD5 authentication with the peer"
4653+
},
46504654
{
46514655
"long": "bgp-config",
46524656
"help": "BGP configuration this peer is associated with"
@@ -4683,10 +4687,6 @@
46834687
"long": "local-pref",
46844688
"help": "Apply a local preference to routes received from this peer"
46854689
},
4686-
{
4687-
"long": "md5-auth-key",
4688-
"help": "Use the given key for TCP-MD5 authentication with the peer"
4689-
},
46904690
{
46914691
"long": "min-ttl",
46924692
"help": "Require messages from a peer have a minimum IP time to live field"

cli/src/cmd_net.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -981,9 +981,9 @@ pub struct CmdBgpPeerSet {
981981
#[arg(long)]
982982
pub local_pref: Option<u32>,
983983

984-
/// Use the given key for TCP-MD5 authentication with the peer.
984+
/// Use the given authorization string for TCP-MD5 authentication with the peer.
985985
#[arg(long)]
986-
pub md5_auth_key: Option<String>,
986+
pub authstring: Option<String>,
987987

988988
/// Require messages from a peer have a minimum IP time to live field.
989989
#[arg(long)]
@@ -1042,7 +1042,7 @@ impl AuthenticatedCmd for CmdBgpPeerSet {
10421042
interface_name: PHY0.to_owned(),
10431043
keepalive: self.keepalive,
10441044
local_pref: self.local_pref,
1045-
md5_auth_key: self.md5_auth_key.clone(),
1045+
md5_auth_key: self.authstring.clone(),
10461046
min_ttl: self.min_ttl,
10471047
multi_exit_discriminator: self.multi_exit_discriminator,
10481048
remote_asn: self.remote_asn,

0 commit comments

Comments
 (0)