|
37 | 37 | #include "fboss/cli/fboss2/commands/config/protocol/CmdConfigProtocol.h" |
38 | 38 | #include "fboss/cli/fboss2/commands/config/protocol/bgp/CmdConfigProtocolBgp.h" |
39 | 39 | #include "fboss/cli/fboss2/commands/config/protocol/bgp/global/CmdConfigProtocolBgpGlobal.h" |
40 | | -#include "fboss/cli/fboss2/commands/config/protocol/bgp/global/CmdConfigProtocolBgpGlobalClusterId.h" |
41 | | -#include "fboss/cli/fboss2/commands/config/protocol/bgp/global/CmdConfigProtocolBgpGlobalConfedAsn.h" |
42 | | -#include "fboss/cli/fboss2/commands/config/protocol/bgp/global/CmdConfigProtocolBgpGlobalHoldTime.h" |
43 | | -#include "fboss/cli/fboss2/commands/config/protocol/bgp/global/CmdConfigProtocolBgpGlobalLocalAsn.h" |
44 | | -#include "fboss/cli/fboss2/commands/config/protocol/bgp/global/CmdConfigProtocolBgpGlobalNetwork6Add.h" |
45 | | -#include "fboss/cli/fboss2/commands/config/protocol/bgp/global/CmdConfigProtocolBgpGlobalRouterId.h" |
46 | | -#include "fboss/cli/fboss2/commands/config/protocol/bgp/global/CmdConfigProtocolBgpGlobalSwitchLimitMaxGoldenVips.h" |
47 | | -#include "fboss/cli/fboss2/commands/config/protocol/bgp/global/CmdConfigProtocolBgpGlobalSwitchLimitOverloadProtectionMode.h" |
48 | | -#include "fboss/cli/fboss2/commands/config/protocol/bgp/global/CmdConfigProtocolBgpGlobalSwitchLimitPrefixLimit.h" |
49 | | -#include "fboss/cli/fboss2/commands/config/protocol/bgp/global/CmdConfigProtocolBgpGlobalSwitchLimitTotalPathLimit.h" |
50 | 40 | #include "fboss/cli/fboss2/commands/config/protocol/bgp/peer-group/CmdConfigProtocolBgpPeerGroup.h" |
51 | 41 | #include "fboss/cli/fboss2/commands/config/protocol/bgp/peer-group/CmdConfigProtocolBgpPeerGroupConfedPeer.h" |
52 | 42 | #include "fboss/cli/fboss2/commands/config/protocol/bgp/peer-group/CmdConfigProtocolBgpPeerGroupDescription.h" |
@@ -358,91 +348,14 @@ const CommandTree& kConfigCommandTree() { |
358 | 348 | { |
359 | 349 | { |
360 | 350 | "global", |
361 | | - "Configure BGP global settings", |
| 351 | + "Configure BGP global settings: <attribute> <value> " |
| 352 | + "(router-id, local-asn, hold-time, confed-asn, " |
| 353 | + "count-confeds-in-as-path-len, " |
| 354 | + "graceful-restart-time, rib-allocated-path-ids, " |
| 355 | + "network6, switch-limit[-total-path|" |
| 356 | + "-max-golden-vips|-overload-protection-mode])", |
362 | 357 | commandHandler<CmdConfigProtocolBgpGlobal>, |
363 | 358 | argRegistrar<CmdConfigProtocolBgpGlobalTraits>, |
364 | | - { |
365 | | - { |
366 | | - "router-id", |
367 | | - "Set BGP router identifier", |
368 | | - commandHandler< |
369 | | - CmdConfigProtocolBgpGlobalRouterId>, |
370 | | - argRegistrar< |
371 | | - CmdConfigProtocolBgpGlobalRouterIdTraits>, |
372 | | - }, |
373 | | - { |
374 | | - "local-asn", |
375 | | - "Set local AS number", |
376 | | - commandHandler< |
377 | | - CmdConfigProtocolBgpGlobalLocalAsn>, |
378 | | - argRegistrar< |
379 | | - CmdConfigProtocolBgpGlobalLocalAsnTraits>, |
380 | | - }, |
381 | | - { |
382 | | - "hold-time", |
383 | | - "Set BGP hold time in seconds", |
384 | | - commandHandler< |
385 | | - CmdConfigProtocolBgpGlobalHoldTime>, |
386 | | - argRegistrar< |
387 | | - CmdConfigProtocolBgpGlobalHoldTimeTraits>, |
388 | | - }, |
389 | | - { |
390 | | - "confed-asn", |
391 | | - "Set BGP confederation AS number", |
392 | | - commandHandler< |
393 | | - CmdConfigProtocolBgpGlobalConfedAsn>, |
394 | | - argRegistrar< |
395 | | - CmdConfigProtocolBgpGlobalConfedAsnTraits>, |
396 | | - }, |
397 | | - { |
398 | | - "cluster-id", |
399 | | - "Set route reflector cluster ID", |
400 | | - commandHandler< |
401 | | - CmdConfigProtocolBgpGlobalClusterId>, |
402 | | - argRegistrar< |
403 | | - CmdConfigProtocolBgpGlobalClusterIdTraits>, |
404 | | - }, |
405 | | - { |
406 | | - "network6", |
407 | | - "Add IPv6 network to advertise", |
408 | | - commandHandler< |
409 | | - CmdConfigProtocolBgpGlobalNetwork6Add>, |
410 | | - argRegistrar< |
411 | | - CmdConfigProtocolBgpGlobalNetwork6AddTraits>, |
412 | | - }, |
413 | | - { |
414 | | - "switch-limit", |
415 | | - "Set switch limit prefix-limit", |
416 | | - commandHandler< |
417 | | - CmdConfigProtocolBgpGlobalSwitchLimitPrefixLimit>, |
418 | | - argRegistrar< |
419 | | - CmdConfigProtocolBgpGlobalSwitchLimitPrefixLimitTraits>, |
420 | | - }, |
421 | | - { |
422 | | - "switch-limit-total-path", |
423 | | - "Set switch limit total-path-limit", |
424 | | - commandHandler< |
425 | | - CmdConfigProtocolBgpGlobalSwitchLimitTotalPathLimit>, |
426 | | - argRegistrar< |
427 | | - CmdConfigProtocolBgpGlobalSwitchLimitTotalPathLimitTraits>, |
428 | | - }, |
429 | | - { |
430 | | - "switch-limit-max-golden-vips", |
431 | | - "Set switch limit max-golden-vips", |
432 | | - commandHandler< |
433 | | - CmdConfigProtocolBgpGlobalSwitchLimitMaxGoldenVips>, |
434 | | - argRegistrar< |
435 | | - CmdConfigProtocolBgpGlobalSwitchLimitMaxGoldenVipsTraits>, |
436 | | - }, |
437 | | - { |
438 | | - "switch-limit-overload-protection-mode", |
439 | | - "Set switch limit overload-protection-mode", |
440 | | - commandHandler< |
441 | | - CmdConfigProtocolBgpGlobalSwitchLimitOverloadProtectionMode>, |
442 | | - argRegistrar< |
443 | | - CmdConfigProtocolBgpGlobalSwitchLimitOverloadProtectionModeTraits>, |
444 | | - }, |
445 | | - }, |
446 | 359 | }, |
447 | 360 | { |
448 | 361 | "peer-group", |
|
0 commit comments