8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-12-18 04:53:47 +00:00
re2o/preferences/migrations/0056_1_radiusoption.py

190 lines
6.5 KiB
Python
Raw Permalink Normal View History

2018-09-02 14:53:21 +00:00
# -*- coding: utf-8 -*-
# Generated by Django 1.10.7 on 2018-10-13 14:29
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
import re2o.mixins
class Migration(migrations.Migration):
dependencies = [
("machines", "0095_auto_20180919_2225"),
("preferences", "0055_generaloption_main_site_url"),
2018-09-02 14:53:21 +00:00
]
operations = [
migrations.CreateModel(
name="RadiusOption",
2018-09-02 14:53:21 +00:00
fields=[
(
"id",
models.AutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
(
"radius_general_policy",
models.CharField(
choices=[
("MACHINE", "On the IP range's VLAN of the machine"),
(
"DEFINED",
"Preset in 'VLAN for machines accepted by RADIUS'",
),
],
default="DEFINED",
max_length=32,
),
),
2018-09-02 14:53:21 +00:00
],
options={"verbose_name": "radius policies"},
2018-09-02 14:53:21 +00:00
bases=(re2o.mixins.AclMixin, models.Model),
),
2018-12-02 16:03:27 +00:00
migrations.AddField(
model_name="radiusoption",
name="banned_vlan",
field=models.ForeignKey(
blank=True,
help_text="Vlan for banned if not rejected.",
null=True,
on_delete=django.db.models.deletion.PROTECT,
related_name="banned_vlan",
to="machines.Vlan",
verbose_name="Banned Vlan",
),
2018-09-02 14:53:21 +00:00
),
migrations.AddField(
model_name="radiusoption",
name="non_member_vlan",
field=models.ForeignKey(
blank=True,
help_text="Vlan for non members if not rejected.",
null=True,
on_delete=django.db.models.deletion.PROTECT,
related_name="non_member_vlan",
to="machines.Vlan",
verbose_name="Non member Vlan",
),
2018-09-02 14:53:21 +00:00
),
migrations.AddField(
model_name="radiusoption",
name="unknown_machine_vlan",
field=models.ForeignKey(
blank=True,
help_text="Vlan for unknown machines if not rejected.",
null=True,
on_delete=django.db.models.deletion.PROTECT,
related_name="unknown_machine_vlan",
to="machines.Vlan",
verbose_name="Unknown machine Vlan",
),
2018-09-02 14:53:21 +00:00
),
migrations.AddField(
model_name="radiusoption",
name="unknown_port_vlan",
field=models.ForeignKey(
blank=True,
help_text="Vlan for unknown ports if not rejected.",
null=True,
on_delete=django.db.models.deletion.PROTECT,
related_name="unknown_port_vlan",
to="machines.Vlan",
verbose_name="Unknown port Vlan",
),
2018-09-02 14:53:21 +00:00
),
migrations.AddField(
model_name="radiusoption",
name="unknown_room_vlan",
field=models.ForeignKey(
blank=True,
help_text="Vlan for unknown room if not rejected.",
null=True,
on_delete=django.db.models.deletion.PROTECT,
related_name="unknown_room_vlan",
to="machines.Vlan",
verbose_name="Unknown room Vlan",
),
2018-09-02 14:53:21 +00:00
),
migrations.AddField(
model_name="radiusoption",
name="banned",
field=models.CharField(
choices=[
("REJECT", "Reject the machine"),
("SET_VLAN", "Place the machine on the VLAN"),
],
default="REJECT",
max_length=32,
verbose_name="Policy for banned users.",
),
2018-09-02 14:53:21 +00:00
),
migrations.AddField(
model_name="radiusoption",
name="non_member",
field=models.CharField(
choices=[
("REJECT", "Reject the machine"),
("SET_VLAN", "Place the machine on the VLAN"),
],
default="REJECT",
max_length=32,
verbose_name="Policy non member users.",
),
2018-09-02 14:53:21 +00:00
),
2018-12-02 16:03:27 +00:00
migrations.AddField(
model_name="radiusoption",
name="unknown_machine",
field=models.CharField(
choices=[
("REJECT", "Reject the machine"),
("SET_VLAN", "Place the machine on the VLAN"),
],
default="REJECT",
max_length=32,
verbose_name="Policy for unknown machines",
),
2018-12-02 16:03:27 +00:00
),
migrations.AddField(
model_name="radiusoption",
name="unknown_port",
field=models.CharField(
choices=[
("REJECT", "Reject the machine"),
("SET_VLAN", "Place the machine on the VLAN"),
],
default="REJECT",
max_length=32,
verbose_name="Policy for unknown machines",
),
2018-12-02 16:03:27 +00:00
),
migrations.AddField(
model_name="radiusoption",
name="unknown_room",
field=models.CharField(
choices=[
("REJECT", "Reject the machine"),
("SET_VLAN", "Place the machine on the VLAN"),
],
default="REJECT",
max_length=32,
verbose_name="Policy for machine connecting from unregistered room (relevant on ports with STRICT radius mode)",
),
2018-12-02 16:03:27 +00:00
),
migrations.AddField(
model_name="radiusoption",
name="vlan_decision_ok",
field=models.OneToOneField(
blank=True,
null=True,
on_delete=django.db.models.deletion.PROTECT,
related_name="vlan_ok_option",
to="machines.Vlan",
),
),
2018-09-02 14:53:21 +00:00
]