|
35 | 35 | #include "fboss/cli/fboss2/commands/config/protocol/CmdConfigProtocol.h" |
36 | 36 | #include "fboss/cli/fboss2/commands/config/protocol/bgp/CmdConfigProtocolBgp.h" |
37 | 37 | #include "fboss/cli/fboss2/commands/config/protocol/bgp/global/CmdConfigProtocolBgpGlobal.h" |
38 | | -#include "fboss/cli/fboss2/commands/config/protocol/bgp/global/CmdConfigProtocolBgpGlobalClusterId.h" |
39 | | -#include "fboss/cli/fboss2/commands/config/protocol/bgp/global/CmdConfigProtocolBgpGlobalConfedAsn.h" |
40 | | -#include "fboss/cli/fboss2/commands/config/protocol/bgp/global/CmdConfigProtocolBgpGlobalHoldTime.h" |
41 | | -#include "fboss/cli/fboss2/commands/config/protocol/bgp/global/CmdConfigProtocolBgpGlobalLocalAsn.h" |
42 | | -#include "fboss/cli/fboss2/commands/config/protocol/bgp/global/CmdConfigProtocolBgpGlobalNetwork6Add.h" |
43 | | -#include "fboss/cli/fboss2/commands/config/protocol/bgp/global/CmdConfigProtocolBgpGlobalRouterId.h" |
44 | | -#include "fboss/cli/fboss2/commands/config/protocol/bgp/global/CmdConfigProtocolBgpGlobalSwitchLimitMaxGoldenVips.h" |
45 | | -#include "fboss/cli/fboss2/commands/config/protocol/bgp/global/CmdConfigProtocolBgpGlobalSwitchLimitOverloadProtectionMode.h" |
46 | | -#include "fboss/cli/fboss2/commands/config/protocol/bgp/global/CmdConfigProtocolBgpGlobalSwitchLimitPrefixLimit.h" |
47 | | -#include "fboss/cli/fboss2/commands/config/protocol/bgp/global/CmdConfigProtocolBgpGlobalSwitchLimitTotalPathLimit.h" |
48 | 38 | #include "fboss/cli/fboss2/commands/config/protocol/bgp/peer-group/CmdConfigProtocolBgpPeerGroup.h" |
49 | 39 | #include "fboss/cli/fboss2/commands/config/protocol/bgp/peer-group/CmdConfigProtocolBgpPeerGroupConfedPeer.h" |
50 | 40 | #include "fboss/cli/fboss2/commands/config/protocol/bgp/peer-group/CmdConfigProtocolBgpPeerGroupDescription.h" |
@@ -306,91 +296,14 @@ const CommandTree& kConfigCommandTree() { |
306 | 296 | { |
307 | 297 | { |
308 | 298 | "global", |
309 | | - "Configure BGP global settings", |
| 299 | + "Configure BGP global settings: <attribute> <value> " |
| 300 | + "(router-id, local-asn, hold-time, confed-asn, " |
| 301 | + "count-confeds-in-as-path-len, " |
| 302 | + "graceful-restart-time, rib-allocated-path-ids, " |
| 303 | + "network6, switch-limit[-total-path|" |
| 304 | + "-max-golden-vips|-overload-protection-mode])", |
310 | 305 | commandHandler<CmdConfigProtocolBgpGlobal>, |
311 | 306 | argRegistrar<CmdConfigProtocolBgpGlobalTraits>, |
312 | | - { |
313 | | - { |
314 | | - "router-id", |
315 | | - "Set BGP router identifier", |
316 | | - commandHandler< |
317 | | - CmdConfigProtocolBgpGlobalRouterId>, |
318 | | - argRegistrar< |
319 | | - CmdConfigProtocolBgpGlobalRouterIdTraits>, |
320 | | - }, |
321 | | - { |
322 | | - "local-asn", |
323 | | - "Set local AS number", |
324 | | - commandHandler< |
325 | | - CmdConfigProtocolBgpGlobalLocalAsn>, |
326 | | - argRegistrar< |
327 | | - CmdConfigProtocolBgpGlobalLocalAsnTraits>, |
328 | | - }, |
329 | | - { |
330 | | - "hold-time", |
331 | | - "Set BGP hold time in seconds", |
332 | | - commandHandler< |
333 | | - CmdConfigProtocolBgpGlobalHoldTime>, |
334 | | - argRegistrar< |
335 | | - CmdConfigProtocolBgpGlobalHoldTimeTraits>, |
336 | | - }, |
337 | | - { |
338 | | - "confed-asn", |
339 | | - "Set BGP confederation AS number", |
340 | | - commandHandler< |
341 | | - CmdConfigProtocolBgpGlobalConfedAsn>, |
342 | | - argRegistrar< |
343 | | - CmdConfigProtocolBgpGlobalConfedAsnTraits>, |
344 | | - }, |
345 | | - { |
346 | | - "cluster-id", |
347 | | - "Set route reflector cluster ID", |
348 | | - commandHandler< |
349 | | - CmdConfigProtocolBgpGlobalClusterId>, |
350 | | - argRegistrar< |
351 | | - CmdConfigProtocolBgpGlobalClusterIdTraits>, |
352 | | - }, |
353 | | - { |
354 | | - "network6", |
355 | | - "Add IPv6 network to advertise", |
356 | | - commandHandler< |
357 | | - CmdConfigProtocolBgpGlobalNetwork6Add>, |
358 | | - argRegistrar< |
359 | | - CmdConfigProtocolBgpGlobalNetwork6AddTraits>, |
360 | | - }, |
361 | | - { |
362 | | - "switch-limit", |
363 | | - "Set switch limit prefix-limit", |
364 | | - commandHandler< |
365 | | - CmdConfigProtocolBgpGlobalSwitchLimitPrefixLimit>, |
366 | | - argRegistrar< |
367 | | - CmdConfigProtocolBgpGlobalSwitchLimitPrefixLimitTraits>, |
368 | | - }, |
369 | | - { |
370 | | - "switch-limit-total-path", |
371 | | - "Set switch limit total-path-limit", |
372 | | - commandHandler< |
373 | | - CmdConfigProtocolBgpGlobalSwitchLimitTotalPathLimit>, |
374 | | - argRegistrar< |
375 | | - CmdConfigProtocolBgpGlobalSwitchLimitTotalPathLimitTraits>, |
376 | | - }, |
377 | | - { |
378 | | - "switch-limit-max-golden-vips", |
379 | | - "Set switch limit max-golden-vips", |
380 | | - commandHandler< |
381 | | - CmdConfigProtocolBgpGlobalSwitchLimitMaxGoldenVips>, |
382 | | - argRegistrar< |
383 | | - CmdConfigProtocolBgpGlobalSwitchLimitMaxGoldenVipsTraits>, |
384 | | - }, |
385 | | - { |
386 | | - "switch-limit-overload-protection-mode", |
387 | | - "Set switch limit overload-protection-mode", |
388 | | - commandHandler< |
389 | | - CmdConfigProtocolBgpGlobalSwitchLimitOverloadProtectionMode>, |
390 | | - argRegistrar< |
391 | | - CmdConfigProtocolBgpGlobalSwitchLimitOverloadProtectionModeTraits>, |
392 | | - }, |
393 | | - }, |
394 | 307 | }, |
395 | 308 | { |
396 | 309 | "peer-group", |
|
0 commit comments