home

Supported platforms

Vyatta documentation

Learn how to install, configure, and operate the Vyatta Network Operating System (Vyatta NOS) and Orchestrator, which help drive our virtual networking and physical platforms portfolio.

policy route pbr <name> rule <rule-number> log

Enables logging for a routing policy rule.

set policy route pbr name rule rule-number log
delete policy route pbr name rule number log
show policy route pbr name rule number

Logging is disabled.

name
The name of an IP routing policy.
rule-number
The numeric identifier of the rule. Rule numbers determine the order in which rules are executed. Each rule must have a unique rule number. The numbers range from 1 through 9999.

You can define multiple rules by creating more than one rule configuration node.

Configuration mode


policy {
    route {
        pbr name {
                rule rule-number {
                    log
                }
            }
        }
    }

You must specify the address-family, action, and table leaf nodes to configure a routing policy. It is recommended to use the delete policy route pbr name rule number command to delete a routing policy.

When logging is enabled, any action taken is logged.

Use the set form of this command to enable logging for a routing policy rule.

Use the delete form of this command to restore the default behavior for logging, that is, actions are not logged.

Use the show form of this command to display whether logging is enabled or disabled.