Project

General

Profile

Actions

Feature #14293

closed

Package plugin hook for pf Ethernet rules

Added by Christian McDonald over 1 year ago. Updated over 1 year ago.

Status:
Resolved
Priority:
Normal
Category:
Package System
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
0.50 h
Release Notes:
Default

Description

Packages can now add pf ether rules using the <filter_rules_needed>package_rules</filter_rules_needed> mechanism.

<filter_rules_needed> defines a callback function that called for each package during filter config generation:

function package_rules($ruletype) {
   if ($ruletype === 'ether') {
      return '# add an ether rule' . PHP_EOL;
   }
}
Actions

Also available in: Atom PDF