[an error occurred while processing this directive][an error occurred while processing this directive]

Specifying the Order in Which the BGF Processes Rules

If you define multiple rules, you can specify the order in which the BGF processes the rules by creating a rule set. The BGF processes the rules in the order in which you specify them in the rule set. It processes rules as follows:

  • If a rule matches the packet, the BGF performs the corresponding action and the rule processing stops.
  • If no rule matches the packet, processing continues to the next rule in the set. If none of the rules match the packet, the packet is dropped by default.

To configure a rule set:

  1. Create a rule set and specify a name for the rule set.
    [edit services pgcp]user@host# edit rule-set bgf-rule-set-1
  2. Add a rule to the rule set.
    [edit services pgcp rule-set bgf-rule-set-1]user@host# set rule bgf-rule-1
  3. Add additional rules to the rule set.
    [edit services pgcp rule-set bgf-rule-set-1]user@host# set rule bgf-rule-2

You can also configure rule sets for the BGF within a service set.


Published: 2010-04-22

[an error occurred while processing this directive]