Define rules to filter which prefixes are synced from Meraki to NetBox.
Use these rules to exclude conflicting prefixes or include only specific ranges.
Rules are evaluated in priority order (lower numbers first).
{% if prefix_filter_rules %}
| Priority |
Name |
Type |
Pattern |
Length Filter |
Status |
Actions |
{% for rule in prefix_filter_rules %}
| {{ rule.priority }} |
{{ rule.name }} |
{% if rule.filter_type == 'exclude' %}
Exclude
{% else %}
Include Only
{% endif %}
|
{% if rule.prefix_pattern %}
{{ rule.prefix_pattern }}
{% else %}
All prefixes
{% endif %}
|
{{ rule.get_prefix_length_filter_display }}
{% if rule.min_prefix_length %}
({{ rule.min_prefix_length }}
{% if rule.max_prefix_length and rule.prefix_length_filter == 'range' %}
- {{ rule.max_prefix_length }}
{% endif %}
)
{% endif %}
|
{% if rule.enabled %}
Enabled
{% else %}
Disabled
{% endif %}
|
Edit
Delete
|
{% endfor %}
{% else %}
No prefix filter rules configured. All prefixes will be synced.
{% endif %}
Examples:
- Exclude /32 host routes: Filter Type: Exclude, Length Filter: Exact, Min Length: 32
- Include only /24 subnets: Filter Type: Include Only, Length Filter: Exact, Min Length: 24
- Exclude 192.168.0.0/16 range: Filter Type: Exclude, Pattern: 192.168.0.0/16
- Include prefixes >= /20: Filter Type: Include Only, Length Filter: Greater, Min Length: 20