|
49 | 49 | #include "fboss/cli/fboss2/commands/config/protocol/bgp/policy/prefix-list/entry/CmdConfigProtocolBgpPolicyPrefixListEntry.h" |
50 | 50 | #include "fboss/cli/fboss2/commands/config/protocol/bgp/policy/routing-policy/CmdConfigProtocolBgpPolicyRoutingPolicy.h" |
51 | 51 | #include "fboss/cli/fboss2/commands/config/protocol/bgp/policy/routing-policy/term/CmdConfigProtocolBgpPolicyRoutingPolicyTerm.h" |
| 52 | +#include "fboss/cli/fboss2/commands/config/protocol/bgp/policy/routing-policy/term/action/CmdConfigProtocolBgpPolicyRoutingPolicyTermAction.h" |
52 | 53 | #include "fboss/cli/fboss2/commands/config/protocol/static/CmdConfigProtocolStatic.h" |
53 | 54 | #include "fboss/cli/fboss2/commands/config/protocol/static/route/add/CmdConfigProtocolStaticRouteAdd.h" |
54 | 55 | #include "fboss/cli/fboss2/commands/config/ptp/CmdConfigPtp.h" |
@@ -483,6 +484,30 @@ const CommandTree& kConfigCommandTree() { |
483 | 484 | CmdConfigProtocolBgpPolicyRoutingPolicyTerm>, |
484 | 485 | argRegistrar< |
485 | 486 | CmdConfigProtocolBgpPolicyRoutingPolicyTermTraits>, |
| 487 | + {{ |
| 488 | + "action", |
| 489 | + "Configure a term action", |
| 490 | + {{ |
| 491 | + "result", |
| 492 | + "Set the term result: " |
| 493 | + "<ACCEPT|REJECT|CONTINUE>", |
| 494 | + commandHandler< |
| 495 | + CmdConfigProtocolBgpPolicyRoutingPolicyTermActionResult>, |
| 496 | + argRegistrar< |
| 497 | + CmdConfigProtocolBgpPolicyRoutingPolicyTermActionResultTraits>, |
| 498 | + }, |
| 499 | + { |
| 500 | + "set", |
| 501 | + "Set a route attribute: " |
| 502 | + "as-path prepend|community|" |
| 503 | + "local-pref|med|next-hop|" |
| 504 | + "origin|weight <value> ...", |
| 505 | + commandHandler< |
| 506 | + CmdConfigProtocolBgpPolicyRoutingPolicyTermActionSet>, |
| 507 | + argRegistrar< |
| 508 | + CmdConfigProtocolBgpPolicyRoutingPolicyTermActionSetTraits>, |
| 509 | + }}, |
| 510 | + }}, |
486 | 511 | }}, |
487 | 512 | }}, |
488 | 513 | }, |
|
0 commit comments