Skip to content

Commit 6fbbd55

Browse files
committed
add bgp auth and static route commands
1 parent 4eb7649 commit 6fbbd55

File tree

10 files changed

+692
-473
lines changed

10 files changed

+692
-473
lines changed

cli/docs/cli.json

Lines changed: 291 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4347,6 +4347,73 @@
43474347
}
43484348
]
43494349
},
4350+
{
4351+
"name": "auth",
4352+
"args": [
4353+
{
4354+
"long": "authstring",
4355+
"help": "Authorization string"
4356+
},
4357+
{
4358+
"long": "peer",
4359+
"help": "Peer to apply allow list to"
4360+
},
4361+
{
4362+
"long": "port",
4363+
"values": [
4364+
"qsfp0",
4365+
"qsfp1",
4366+
"qsfp2",
4367+
"qsfp3",
4368+
"qsfp4",
4369+
"qsfp5",
4370+
"qsfp6",
4371+
"qsfp7",
4372+
"qsfp8",
4373+
"qsfp9",
4374+
"qsfp10",
4375+
"qsfp11",
4376+
"qsfp12",
4377+
"qsfp13",
4378+
"qsfp14",
4379+
"qsfp15",
4380+
"qsfp16",
4381+
"qsfp17",
4382+
"qsfp18",
4383+
"qsfp19",
4384+
"qsfp20",
4385+
"qsfp21",
4386+
"qsfp22",
4387+
"qsfp23",
4388+
"qsfp24",
4389+
"qsfp25",
4390+
"qsfp26",
4391+
"qsfp27",
4392+
"qsfp28",
4393+
"qsfp29",
4394+
"qsfp30",
4395+
"qsfp31"
4396+
],
4397+
"help": "Port to add the port to"
4398+
},
4399+
{
4400+
"long": "profile",
4401+
"help": "Configuration profile to use for commands"
4402+
},
4403+
{
4404+
"long": "rack",
4405+
"help": "Id of the rack to add the address to"
4406+
},
4407+
{
4408+
"long": "switch",
4409+
"values": [
4410+
"switch0",
4411+
"switch1"
4412+
],
4413+
"help": "Switch to add the address to"
4414+
}
4415+
]
4416+
},
43504417
{
43514418
"name": "config",
43524419
"args": [
@@ -4758,6 +4825,73 @@
47584825
}
47594826
]
47604827
},
4828+
{
4829+
"name": "pref",
4830+
"args": [
4831+
{
4832+
"long": "local-pref",
4833+
"help": "Authorization string"
4834+
},
4835+
{
4836+
"long": "peer",
4837+
"help": "Peer to apply allow list to"
4838+
},
4839+
{
4840+
"long": "port",
4841+
"values": [
4842+
"qsfp0",
4843+
"qsfp1",
4844+
"qsfp2",
4845+
"qsfp3",
4846+
"qsfp4",
4847+
"qsfp5",
4848+
"qsfp6",
4849+
"qsfp7",
4850+
"qsfp8",
4851+
"qsfp9",
4852+
"qsfp10",
4853+
"qsfp11",
4854+
"qsfp12",
4855+
"qsfp13",
4856+
"qsfp14",
4857+
"qsfp15",
4858+
"qsfp16",
4859+
"qsfp17",
4860+
"qsfp18",
4861+
"qsfp19",
4862+
"qsfp20",
4863+
"qsfp21",
4864+
"qsfp22",
4865+
"qsfp23",
4866+
"qsfp24",
4867+
"qsfp25",
4868+
"qsfp26",
4869+
"qsfp27",
4870+
"qsfp28",
4871+
"qsfp29",
4872+
"qsfp30",
4873+
"qsfp31"
4874+
],
4875+
"help": "Port to add the port to"
4876+
},
4877+
{
4878+
"long": "profile",
4879+
"help": "Configuration profile to use for commands"
4880+
},
4881+
{
4882+
"long": "rack",
4883+
"help": "Id of the rack to add the address to"
4884+
},
4885+
{
4886+
"long": "switch",
4887+
"values": [
4888+
"switch0",
4889+
"switch1"
4890+
],
4891+
"help": "Switch to add the address to"
4892+
}
4893+
]
4894+
},
47614895
{
47624896
"name": "show-status",
47634897
"about": "Get the status of BGP on the rack.",
@@ -5052,6 +5186,163 @@
50525186
}
50535187
]
50545188
},
5189+
{
5190+
"name": "route",
5191+
"args": [
5192+
{
5193+
"long": "profile",
5194+
"help": "Configuration profile to use for commands"
5195+
}
5196+
],
5197+
"subcommands": [
5198+
{
5199+
"name": "delete",
5200+
"args": [
5201+
{
5202+
"long": "destination",
5203+
"help": "The route destination"
5204+
},
5205+
{
5206+
"long": "nexthop",
5207+
"help": "The route nexthop"
5208+
},
5209+
{
5210+
"long": "port",
5211+
"values": [
5212+
"qsfp0",
5213+
"qsfp1",
5214+
"qsfp2",
5215+
"qsfp3",
5216+
"qsfp4",
5217+
"qsfp5",
5218+
"qsfp6",
5219+
"qsfp7",
5220+
"qsfp8",
5221+
"qsfp9",
5222+
"qsfp10",
5223+
"qsfp11",
5224+
"qsfp12",
5225+
"qsfp13",
5226+
"qsfp14",
5227+
"qsfp15",
5228+
"qsfp16",
5229+
"qsfp17",
5230+
"qsfp18",
5231+
"qsfp19",
5232+
"qsfp20",
5233+
"qsfp21",
5234+
"qsfp22",
5235+
"qsfp23",
5236+
"qsfp24",
5237+
"qsfp25",
5238+
"qsfp26",
5239+
"qsfp27",
5240+
"qsfp28",
5241+
"qsfp29",
5242+
"qsfp30",
5243+
"qsfp31"
5244+
],
5245+
"help": "Port to add the port to"
5246+
},
5247+
{
5248+
"long": "profile",
5249+
"help": "Configuration profile to use for commands"
5250+
},
5251+
{
5252+
"long": "rack",
5253+
"help": "Id of the rack to add the address to"
5254+
},
5255+
{
5256+
"long": "switch",
5257+
"values": [
5258+
"switch0",
5259+
"switch1"
5260+
],
5261+
"help": "Switch to add the address to"
5262+
},
5263+
{
5264+
"long": "vlan-id",
5265+
"help": "The route vlan id"
5266+
}
5267+
]
5268+
},
5269+
{
5270+
"name": "set",
5271+
"args": [
5272+
{
5273+
"long": "destination",
5274+
"help": "The route destination"
5275+
},
5276+
{
5277+
"long": "local-pref",
5278+
"help": "The route local preference"
5279+
},
5280+
{
5281+
"long": "nexthop",
5282+
"help": "The route nexthop"
5283+
},
5284+
{
5285+
"long": "port",
5286+
"values": [
5287+
"qsfp0",
5288+
"qsfp1",
5289+
"qsfp2",
5290+
"qsfp3",
5291+
"qsfp4",
5292+
"qsfp5",
5293+
"qsfp6",
5294+
"qsfp7",
5295+
"qsfp8",
5296+
"qsfp9",
5297+
"qsfp10",
5298+
"qsfp11",
5299+
"qsfp12",
5300+
"qsfp13",
5301+
"qsfp14",
5302+
"qsfp15",
5303+
"qsfp16",
5304+
"qsfp17",
5305+
"qsfp18",
5306+
"qsfp19",
5307+
"qsfp20",
5308+
"qsfp21",
5309+
"qsfp22",
5310+
"qsfp23",
5311+
"qsfp24",
5312+
"qsfp25",
5313+
"qsfp26",
5314+
"qsfp27",
5315+
"qsfp28",
5316+
"qsfp29",
5317+
"qsfp30",
5318+
"qsfp31"
5319+
],
5320+
"help": "Port to add the port to"
5321+
},
5322+
{
5323+
"long": "profile",
5324+
"help": "Configuration profile to use for commands"
5325+
},
5326+
{
5327+
"long": "rack",
5328+
"help": "Id of the rack to add the address to"
5329+
},
5330+
{
5331+
"long": "switch",
5332+
"values": [
5333+
"switch0",
5334+
"switch1"
5335+
],
5336+
"help": "Switch to add the address to"
5337+
},
5338+
{
5339+
"long": "vlan-id",
5340+
"help": "The route vlan id"
5341+
}
5342+
]
5343+
}
5344+
]
5345+
},
50555346
{
50565347
"name": "switch-port-settings",
50575348
"args": [

cli/src/cli_builder.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,6 @@ fn xxx<'a>(command: CliCommand) -> Option<&'a str> {
326326
CliCommand::InstanceCreate => Some("instance create"),
327327
CliCommand::InstanceView => Some("instance view"),
328328
CliCommand::InstanceDelete => Some("instance delete"),
329-
CliCommand::InstanceMigrate => None, // TODO delete from API?
330329
CliCommand::InstanceReboot => Some("instance reboot"),
331330
CliCommand::InstanceSerialConsole => None, // Special-cased
332331
CliCommand::InstanceSerialConsoleStream => None, // Ditto

0 commit comments

Comments
 (0)