{# SPDX-License-Identifier: Apache-2.0 #} {# Copyright (C) 2025 Marcin Zieba #} {% extends 'generic/_base.html' %} {% block title %}Apply Rules{% endblock %} {% block content %}

Use this page to retroactively rename interfaces that were installed before the matching rule existed. Interfaces installed after a rule is active are renamed automatically at install time — you don't need to use Apply Rules for them.

Select a rule and click Preview & Apply to see which currently installed interfaces would be renamed, then optionally apply the changes (synchronously up to {{ batch_limit }} interfaces, or as a background job for larger sets).

{% if rules %}
Available Rules
{% for rule in rules %} {% endfor %}
# Type Module Type Parent Module Type Device Type Platform Name Template Ch. Can rename
{{ rule.pk }} {% if rule.module_type_is_regex %} regex {% else %} exact {% endif %} {% if rule.module_type_is_regex %} {{ rule.module_type_pattern }} {% elif rule.module_type %} {{ rule.module_type.model }} {% else %} {% endif %} {% if rule.parent_module_type %} {{ rule.parent_module_type.model }} {% else %} Any {% endif %} {% if rule.device_type %} {{ rule.device_type.model }} {% else %} Any {% endif %} {% if rule.platform %} {{ rule.platform.name }} {% else %} Any {% endif %} {{ rule.name_template }} {% if rule.channel_count %}{{ rule.channel_count }}{% else %}{% endif %} Preview & Apply
{% else %}
No rules defined yet. Add a rule to get started.
{% endif %} {% endblock %}