Skip to content

Commit b016fbe

Browse files
committed
pr feedback
1 parent 67c91d3 commit b016fbe

File tree

2 files changed

+31
-31
lines changed

2 files changed

+31
-31
lines changed

cli/docs/cli.json

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4623,7 +4623,7 @@
46234623
{
46244624
"name": "peer",
46254625
"about": "Manage BGP peers.",
4626-
"long_about": "Manage BGP peers.\n\nThis command provides add and delete subcommands for managing BGP peers.\nBGP peer configuration is a part of a switch port settings configuration.\nThe peer add and remove subcommands perform read-modify-write operations\non switch port settings objects to manage BGP peer configurations.",
4626+
"long_about": "Manage BGP peers.\n\nThis command provides set and delete subcommands for managing BGP peers.\nBGP peer configuration is a part of a switch port settings configuration.\nThe peer set and delete subcommands perform read-modify-write operations\non switch port settings objects to manage BGP peer configurations.",
46274627
"args": [
46284628
{
46294629
"long": "profile",
@@ -4697,19 +4697,19 @@
46974697
},
46984698
{
46994699
"name": "set",
4700-
"about": "Set a BGP peer to a port configuration",
4700+
"about": "Set a BGP peer on a port configuration",
47014701
"args": [
47024702
{
47034703
"long": "addr",
4704-
"help": "Address of the peer to add"
4704+
"help": "Address of the peer to set the config for"
47054705
},
47064706
{
47074707
"long": "allowed-exports",
47084708
"help": "Prefixes that may be exported to the peer. Empty list means all prefixes allowed"
47094709
},
47104710
{
47114711
"long": "allowed-imports",
4712-
"help": "Prefixes that may be imported form the peer. Empty list means all prefixes allowed"
4712+
"help": "Prefixes that may be imported from the peer. Empty list means all prefixes allowed"
47134713
},
47144714
{
47154715
"long": "authstring",
@@ -4725,7 +4725,7 @@
47254725
},
47264726
{
47274727
"long": "connect-retry",
4728-
"help": "How long to to wait between TCP connection retries (seconds)"
4728+
"help": "How long to wait between TCP connection retries (seconds)"
47294729
},
47304730
{
47314731
"long": "delay-open",
@@ -4795,15 +4795,15 @@
47954795
"qsfp30",
47964796
"qsfp31"
47974797
],
4798-
"help": "Port to add the peer to"
4798+
"help": "Port to set the peer config on"
47994799
},
48004800
{
48014801
"long": "profile",
48024802
"help": "Configuration profile to use for commands"
48034803
},
48044804
{
48054805
"long": "rack",
4806-
"help": "Id of the rack to add the peer to"
4806+
"help": "Id of the rack to set the peer for"
48074807
},
48084808
{
48094809
"long": "remote-asn",
@@ -4815,7 +4815,7 @@
48154815
"switch0",
48164816
"switch1"
48174817
],
4818-
"help": "Switch to add the peer to"
4818+
"help": "Switch to set the peer config on"
48194819
},
48204820
{
48214821
"long": "vlan-id",
@@ -4834,7 +4834,7 @@
48344834
},
48354835
{
48364836
"long": "peer",
4837-
"help": "Peer to add the route preference to"
4837+
"help": "Peer to set the route preference on"
48384838
},
48394839
{
48404840
"long": "port",
@@ -4872,23 +4872,23 @@
48724872
"qsfp30",
48734873
"qsfp31"
48744874
],
4875-
"help": "Port to add the route preference to"
4875+
"help": "Port to set the route preference on"
48764876
},
48774877
{
48784878
"long": "profile",
48794879
"help": "Configuration profile to use for commands"
48804880
},
48814881
{
48824882
"long": "rack",
4883-
"help": "Id of the rack to add the route preference to"
4883+
"help": "Id of the rack to set the route preference on"
48844884
},
48854885
{
48864886
"long": "switch",
48874887
"values": [
48884888
"switch0",
48894889
"switch1"
48904890
],
4891-
"help": "Switch to add the route preference to"
4891+
"help": "Switch to set the route preference on"
48924892
}
48934893
]
48944894
},
@@ -5336,23 +5336,23 @@
53365336
"qsfp30",
53375337
"qsfp31"
53385338
],
5339-
"help": "Port to configure the route on"
5339+
"help": "Port to configure the static route on"
53405340
},
53415341
{
53425342
"long": "profile",
53435343
"help": "Configuration profile to use for commands"
53445344
},
53455345
{
53465346
"long": "rack",
5347-
"help": "Id of the rack to configure the route on"
5347+
"help": "Id of the rack to configure the static route on"
53485348
},
53495349
{
53505350
"long": "switch",
53515351
"values": [
53525352
"switch0",
53535353
"switch1"
53545354
],
5355-
"help": "Switch to configure the route on"
5355+
"help": "Switch to configure the static route on"
53565356
},
53575357
{
53585358
"long": "vlan-id",

cli/src/cmd_net.rs

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -489,19 +489,19 @@ impl AuthenticatedCmd for CmdBgpAuth {
489489
#[command(verbatim_doc_comment)]
490490
#[command(name = "pref")]
491491
pub struct CmdBgpLocalPref {
492-
/// Id of the rack to add the route preference to.
492+
/// Id of the rack to set the route preference on.
493493
#[arg(long)]
494494
rack: Uuid,
495495

496-
/// Switch to add the route preference to.
496+
/// Switch to set the route preference on.
497497
#[arg(long, value_enum)]
498498
switch: Switch,
499499

500-
/// Port to add the route preference to.
500+
/// Port to set the route preference on.
501501
#[arg(long, value_enum)]
502502
port: Port,
503503

504-
/// Peer to add the route preference to.
504+
/// Peer to set the route preference on.
505505
#[arg(long)]
506506
peer: IpAddr,
507507

@@ -567,15 +567,15 @@ enum RouteSubCommand {
567567
#[command(verbatim_doc_comment)]
568568
#[command(name = "route set")]
569569
pub struct CmdStaticRouteSet {
570-
/// Id of the rack to configure the route on.
570+
/// Id of the rack to configure the static route on.
571571
#[arg(long)]
572572
rack: Uuid,
573573

574-
/// Switch to configure the route on.
574+
/// Switch to configure the static route on.
575575
#[arg(long, value_enum)]
576576
switch: Switch,
577577

578-
/// Port to configure the route on.
578+
/// Port to configure the static route on.
579579
#[arg(long, value_enum)]
580580
port: Port,
581581

@@ -877,9 +877,9 @@ enum BgpConfigSubCommand {
877877

878878
/// Manage BGP peers.
879879
///
880-
/// This command provides add and delete subcommands for managing BGP peers.
880+
/// This command provides set and delete subcommands for managing BGP peers.
881881
/// BGP peer configuration is a part of a switch port settings configuration.
882-
/// The peer add and remove subcommands perform read-modify-write operations
882+
/// The peer set and delete subcommands perform read-modify-write operations
883883
/// on switch port settings objects to manage BGP peer configurations.
884884
#[derive(Parser, Debug, Clone)]
885885
#[command(verbatim_doc_comment)]
@@ -901,7 +901,7 @@ impl AuthenticatedCmd for CmdBgpPeer {
901901

902902
#[derive(Parser, Debug, Clone)]
903903
enum BgpConfigPeerSubCommand {
904-
/// Set a BGP peer to a port configuration.
904+
/// Set a BGP peer on a port configuration.
905905
Set(CmdBgpPeerSet),
906906

907907
/// Remove a BGP from a port configuration.
@@ -916,27 +916,27 @@ enum BgpConfigPeerSubCommand {
916916
#[command(verbatim_doc_comment)]
917917
#[command(name = "set")]
918918
pub struct CmdBgpPeerSet {
919-
/// Id of the rack to add the peer to.
919+
/// Id of the rack to set the peer for.
920920
#[arg(long)]
921921
rack: Uuid,
922922

923-
/// Switch to add the peer to.
923+
/// Switch to set the peer config on.
924924
#[arg(long, value_enum)]
925925
switch: Switch,
926926

927-
/// Port to add the peer to.
927+
/// Port to set the peer config on.
928928
#[arg(long, value_enum)]
929929
port: Port,
930930

931-
/// Address of the peer to add.
931+
/// Address of the peer to set the config for.
932932
#[arg(long)]
933933
addr: IpAddr,
934934

935935
/// BGP configuration this peer is associated with.
936936
#[arg(long)]
937937
bgp_config: NameOrId,
938938

939-
/// Prefixes that may be imported form the peer. Empty list means all prefixes
939+
/// Prefixes that may be imported from the peer. Empty list means all prefixes
940940
/// allowed.
941941
#[arg(long)]
942942
allowed_imports: Vec<oxnet::IpNet>,
@@ -950,7 +950,7 @@ pub struct CmdBgpPeerSet {
950950
#[arg(long)]
951951
communities: Vec<u32>,
952952

953-
/// How long to to wait between TCP connection retries (seconds).
953+
/// How long to wait between TCP connection retries (seconds).
954954
#[clap(long, default_value_t = 0u32)]
955955
pub connect_retry: u32,
956956

0 commit comments

Comments
 (0)