Project

General

Profile

Actions

Feature #14293

closed

Package plugin hook for pf Ethernet rules

Added by Christian McDonald about 1 year ago. Updated 12 months 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 #2

Updated by Jim Pingle about 1 year ago

  • Tracker changed from Bug to Feature
Actions #3

Updated by Christian McDonald 12 months ago

  • Status changed from Feedback to Resolved

Currently no consumers of this feature, but it's simple enough that it should work.

Actions

Also available in: Atom PDF