2015-03-23 01:42:31 +01:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
from __future__ import unicode_literals
|
|
|
|
|
|
|
|
from django.db import models, migrations
|
|
|
|
|
|
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
|
|
|
|
dependencies = [
|
|
|
|
('bgpdata', '0006_auto_20150321_1845'),
|
|
|
|
]
|
|
|
|
|
|
|
|
operations = [
|
|
|
|
migrations.CreateModel(
|
|
|
|
name='BorderRouterPair',
|
|
|
|
fields=[
|
|
|
|
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
|
2020-06-06 22:01:51 +02:00
|
|
|
('router1', models.ForeignKey(related_name='routerpair1', default=None, blank=True, to='bgpdata.BorderRouter', null=True, on_delete=models.CASCADE)),
|
|
|
|
('router2', models.ForeignKey(related_name='routerpair2', default=None, blank=True, to='bgpdata.BorderRouter', null=True, on_delete=models.CASCADE)),
|
2015-03-23 01:42:31 +01:00
|
|
|
],
|
|
|
|
options={
|
|
|
|
},
|
|
|
|
bases=(models.Model,),
|
|
|
|
),
|
|
|
|
migrations.RemoveField(
|
|
|
|
model_name='peering',
|
|
|
|
name='router1',
|
|
|
|
),
|
|
|
|
migrations.RemoveField(
|
|
|
|
model_name='peering',
|
|
|
|
name='router2',
|
|
|
|
),
|
|
|
|
migrations.AddField(
|
|
|
|
model_name='announcement',
|
|
|
|
name='router',
|
2020-06-06 22:01:51 +02:00
|
|
|
field=models.ForeignKey(default=None, to='bgpdata.BorderRouter', on_delete=models.CASCADE),
|
2015-03-23 01:42:31 +01:00
|
|
|
preserve_default=False,
|
|
|
|
),
|
|
|
|
migrations.AddField(
|
|
|
|
model_name='peering',
|
|
|
|
name='routers',
|
|
|
|
field=models.ManyToManyField(default=None, to='bgpdata.BorderRouterPair', null=True, blank=True),
|
|
|
|
preserve_default=True,
|
|
|
|
),
|
|
|
|
]
|