show pbr-action-list
Syntax
show pbr-action-list [ ] [commands] [configuration] [vsx-peer]
Description
Shows the current PBR action list configuration. Action list entries are displayed in ascending order of their sequence number.
Command context
config
Parameters
-
-
Specifies the PBR action list name.
-
commands
-
Formats output as CLI commands.
-
configuration
-
Displays user-specified configuration.
-
vsx-peer
-
Displays VSX peer switch information.
Authority
运营商或管理员或local user group members with execution rights for this command. Operators can execute this command from the operator context (>) only.
Restrictions
If an action list entry is modified to an invalid value (for example through the REST interface), this command will indicate a mismatch for that action entry when run. In this event, use thepbr-action-list
command to restore it to the previous valid value.
Usage
- This command does not indicate whether the action list is configured in a policy or applied to an interface. Use the
show pbr
command for PBR status involving action lists. A single action list is shown by specifying its name or you can show all action lists by omitting a name argument.
Using the additional
commands
keyword, you can change the tabulated output to a configuration style output for single or all list display.
Examples
Create two PBR action lists then runshow pbr-action-list
to display all configured action lists in the default configuration mode:
switch(config)#pbr-action-list v4_pbrswitch(config-pbr-action-list-v4_pbr)#1 nexthop 1.1.1.1switch(config-pbr-action-list-v4_pbr)#5 default-nexthop 2.2.2.2switch(config-pbr-action-list-v4_pbr)#10 interface nullswitch(config-pbr-action-list-v4_pbr)#exitswitch(config)# switch(config)#pbr-action-list v6_pbrswitch(config-pbr-action-list-v6_pbr)#20 nexthop 2000:abcd::cccc:ddddswitch(config-pbr-action-list-v6_pbr)#40 default-nexthop 1000:abcd::1234:5678switch(config-pbr-action-list-v6_pbr)#60界面为空switch(config-pbr-action-list-v6_pbr)#exitswitch# switch# show pbr-action-list Name Additional PBR-Action-List Parameters Sequence Type Nexthop --------------------------------------------------------------------------------------- v4_pbr 1 nexthop 1.1.1.1 5 default-nexthop 2.2.2.2 10 interface null v6_pbr 20 nexthop 2000:abcd::cccc:dddd 40 default-nexthop 1000:abcd::1234:5678 60 interface null