mirror of
https://github.com/netbox-community/netbox.git
synced 2025-12-25 06:37:46 -06:00
53 lines
2.4 KiB
Python
53 lines
2.4 KiB
Python
# Generated by Django 5.0.9 on 2024-10-09 15:20
|
|
|
|
import django.db.models.deletion
|
|
import taggit.managers
|
|
import utilities.json
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('extras', '0121_customfield_related_object_filter'),
|
|
('ipam', '0070_vlangroup_vlan_id_ranges'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='VLANTranslationPolicy',
|
|
fields=[
|
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False)),
|
|
('created', models.DateTimeField(auto_now_add=True, null=True)),
|
|
('last_updated', models.DateTimeField(auto_now=True, null=True)),
|
|
('custom_field_data', models.JSONField(blank=True, default=dict, encoder=utilities.json.CustomFieldJSONEncoder)),
|
|
('comments', models.TextField(blank=True)),
|
|
('name', models.CharField(max_length=100, unique=True)),
|
|
('description', models.CharField(blank=True, max_length=200)),
|
|
('tags', taggit.managers.TaggableManager(through='extras.TaggedItem', to='extras.Tag')),
|
|
],
|
|
options={
|
|
'verbose_name': 'VLAN translation policy',
|
|
'verbose_name_plural': 'VLAN translation policies',
|
|
'ordering': ('name',),
|
|
},
|
|
),
|
|
migrations.CreateModel(
|
|
name='VLANTranslationRule',
|
|
fields=[
|
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False)),
|
|
('created', models.DateTimeField(auto_now_add=True, null=True)),
|
|
('last_updated', models.DateTimeField(auto_now=True, null=True)),
|
|
('custom_field_data', models.JSONField(blank=True, default=dict, encoder=utilities.json.CustomFieldJSONEncoder)),
|
|
('local_vid', models.IntegerField()),
|
|
('remote_vid', models.IntegerField()),
|
|
('policy', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='rules', to='ipam.vlantranslationpolicy')),
|
|
('tags', taggit.managers.TaggableManager(through='extras.TaggedItem', to='extras.Tag')),
|
|
],
|
|
options={
|
|
'verbose_name': 'VLAN translation rule',
|
|
'ordering': ('policy', 'local_vid', 'remote_vid'),
|
|
},
|
|
),
|
|
]
|