{% extends 'generic/_base.html' %} {% load i18n %} {% load form_helpers %} {% block title %}{% trans "OT settings" %}{% endblock %} {% block subtitle %}
{% trans "Where the import and demo commands write. Pages and the REST API follow the branch picked in NetBox's menu, whatever is set here." %}
{% endblock %} {% block content %}
{% csrf_token %}

{% trans "Branching" %}

{% if form.non_field_errors %}
{{ form.non_field_errors }}
{% endif %} {% render_field form.branching_enabled %} {% render_field form.default_branch %} {% render_field form.protect_main %} {% if not branches %}

{% trans "No branches yet: create one under Branching > Branches first." %}

{% endif %}

{% trans "What this changes" %}

{% blocktrans %}With use a branch for imports on, ot_import and ot_demo run in the default branch. --branch NAME picks another branch, --main forces main.{% endblocktrans %}

{% blocktrans %}With refuse imports into main on, those commands will not write to main at all, --main included. A dry run (--dry-run) still works.{% endblocktrans %}

{% blocktrans %}ot_check and ot_rules read main unless given --branch, so a nightly check keeps watching the real inventory.{% endblocktrans %}

{% endblock %}