Specifying the Order in Which the BGF Processes Rules
If you have defined 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:
- Create a rule set and specify a name for it.[edit services pgcp]user@host# edit rule-set bgf-rule-set-1
- Add a rule to the rule set.[edit services pgcp rule-set bgf-rule-set-1]user@host# set rule bgf-rule-1
- Add additional rules to the rule set.[edit services pgcp rule-set bgf-rule-set-1]user@host# set rule bgf-rule-2
