BOM Scope Rules
A BOM scope rule filters objects in NetBox to determine which should be included in (or excluded from) the scope of a BOM. Each rule references one or more object types and a set of filter parameters, which are evaluated using the target model's native filterset when the BOM is generated.
Rules are evaluated per object type. For a given type, the union of all include rules produces the initial candidate set; any objects matched by an exclude rule for the same type are then removed. Cables without an assigned type and racks without an assigned rack type are silently dropped during evaluation, as they cannot be resolved to a unique line item.
Scope rules may only be added, modified, or deleted while their parent BOM is in draft status. Once the BOM is approved, its scope is locked in. To revise the scope of a non-draft BOM, revert it to draft status first (if the applicable status transition rules permit it).
Fields
BOM
The BOM to which this rule applies.
Object Types
The NetBox content types the rule targets. Supported types are dcim.rack, dcim.device, dcim.module, and dcim.cable. A single rule may target more than one type, in which case the same filter parameters are applied to each.
Enabled
If not checked, this rule is retained on the BOM but ignored during generation.
Action
Determines how matched objects are treated. One of:
- Include (default) - Add matched objects to the BOM's scope.
- Exclude - Remove matched objects from the BOM's scope.
Parameters
A JSON object of filter parameters passed to the target model's filterset. The accepted keys and values correspond to the filters exposed by the underlying NetBox model (for example, site_id, role_id, status, or tag). An empty object matches every object of the selected types.
BOM Line Items
A BOM line item represents a unique item on a BOM and the quantity required. Each line item references a specific type - a rack type, device type, module typ...
Cable Types
A cable type captures a unique combination of cable medium, profile, and end connectors, providing a canonical reference for cables modeled in NetBox. NetBox...