mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-16 12:38:17 -06:00
Added new role BGP P2P for IPaddresses
This commit is contained in:
parent
a4d8b92cb1
commit
7dd32288c6
@ -38,6 +38,7 @@ IPADDRESS_ROLE_VRRP = 41
|
|||||||
IPADDRESS_ROLE_HSRP = 42
|
IPADDRESS_ROLE_HSRP = 42
|
||||||
IPADDRESS_ROLE_GLBP = 43
|
IPADDRESS_ROLE_GLBP = 43
|
||||||
IPADDRESS_ROLE_CARP = 44
|
IPADDRESS_ROLE_CARP = 44
|
||||||
|
IPADDRESS_ROLE_BGPP2P = 50
|
||||||
IPADDRESS_ROLE_CHOICES = (
|
IPADDRESS_ROLE_CHOICES = (
|
||||||
(IPADDRESS_ROLE_LOOPBACK, 'Loopback'),
|
(IPADDRESS_ROLE_LOOPBACK, 'Loopback'),
|
||||||
(IPADDRESS_ROLE_SECONDARY, 'Secondary'),
|
(IPADDRESS_ROLE_SECONDARY, 'Secondary'),
|
||||||
@ -47,6 +48,7 @@ IPADDRESS_ROLE_CHOICES = (
|
|||||||
(IPADDRESS_ROLE_HSRP, 'HSRP'),
|
(IPADDRESS_ROLE_HSRP, 'HSRP'),
|
||||||
(IPADDRESS_ROLE_GLBP, 'GLBP'),
|
(IPADDRESS_ROLE_GLBP, 'GLBP'),
|
||||||
(IPADDRESS_ROLE_CARP, 'CARP'),
|
(IPADDRESS_ROLE_CARP, 'CARP'),
|
||||||
|
(IPADDRESS_ROLE_BGPP2P, 'BGP P2P'),
|
||||||
)
|
)
|
||||||
|
|
||||||
IPADDRESS_ROLES_NONUNIQUE = (
|
IPADDRESS_ROLES_NONUNIQUE = (
|
||||||
@ -57,6 +59,7 @@ IPADDRESS_ROLES_NONUNIQUE = (
|
|||||||
IPADDRESS_ROLE_HSRP,
|
IPADDRESS_ROLE_HSRP,
|
||||||
IPADDRESS_ROLE_GLBP,
|
IPADDRESS_ROLE_GLBP,
|
||||||
IPADDRESS_ROLE_CARP,
|
IPADDRESS_ROLE_CARP,
|
||||||
|
IPADDRESS_ROLE_BGPP2P,
|
||||||
)
|
)
|
||||||
|
|
||||||
# VLAN statuses
|
# VLAN statuses
|
||||||
@ -87,6 +90,7 @@ ROLE_CHOICE_CLASSES = {
|
|||||||
42: 'success',
|
42: 'success',
|
||||||
43: 'success',
|
43: 'success',
|
||||||
44: 'success',
|
44: 'success',
|
||||||
|
50: 'success',
|
||||||
}
|
}
|
||||||
|
|
||||||
# IP protocols (for services)
|
# IP protocols (for services)
|
||||||
|
@ -229,7 +229,7 @@ class Migration(migrations.Migration):
|
|||||||
migrations.AddField(
|
migrations.AddField(
|
||||||
model_name='ipaddress',
|
model_name='ipaddress',
|
||||||
name='role',
|
name='role',
|
||||||
field=models.PositiveSmallIntegerField(blank=True, choices=[(10, 'Loopback'), (20, 'Secondary'), (30, 'Anycast'), (40, 'VIP'), (41, 'VRRP'), (42, 'HSRP'), (43, 'GLBP')], help_text='The functional role of this IP', null=True, verbose_name='Role'),
|
field=models.PositiveSmallIntegerField(blank=True, choices=[(10, 'Loopback'), (20, 'Secondary'), (30, 'Anycast'), (40, 'VIP'), (41, 'VRRP'), (42, 'HSRP'), (43, 'GLBP'), (50, 'BGP P2P')], help_text='The functional role of this IP', null=True, verbose_name='Role'),
|
||||||
),
|
),
|
||||||
migrations.AlterUniqueTogether(
|
migrations.AlterUniqueTogether(
|
||||||
name='service',
|
name='service',
|
||||||
|
@ -13,7 +13,7 @@ class Migration(migrations.Migration):
|
|||||||
migrations.AddField(
|
migrations.AddField(
|
||||||
model_name='ipaddress',
|
model_name='ipaddress',
|
||||||
name='role',
|
name='role',
|
||||||
field=models.PositiveSmallIntegerField(blank=True, choices=[(10, 'Loopback'), (20, 'Secondary'), (30, 'Anycast'), (40, 'VIP'), (41, 'VRRP'), (42, 'HSRP'), (43, 'GLBP')], help_text='The functional role of this IP', null=True, verbose_name='Role'),
|
field=models.PositiveSmallIntegerField(blank=True, choices=[(10, 'Loopback'), (20, 'Secondary'), (30, 'Anycast'), (40, 'VIP'), (41, 'VRRP'), (42, 'HSRP'), (43, 'GLBP'), (50, 'BGP P2P')], help_text='The functional role of this IP', null=True, verbose_name='Role'),
|
||||||
),
|
),
|
||||||
migrations.AlterField(
|
migrations.AlterField(
|
||||||
model_name='ipaddress',
|
model_name='ipaddress',
|
||||||
|
@ -31,6 +31,6 @@ class Migration(migrations.Migration):
|
|||||||
migrations.AlterField(
|
migrations.AlterField(
|
||||||
model_name='ipaddress',
|
model_name='ipaddress',
|
||||||
name='role',
|
name='role',
|
||||||
field=models.PositiveSmallIntegerField(blank=True, choices=[(10, 'Loopback'), (20, 'Secondary'), (30, 'Anycast'), (40, 'VIP'), (41, 'VRRP'), (42, 'HSRP'), (43, 'GLBP'), (44, 'CARP')], help_text='The functional role of this IP', null=True, verbose_name='Role'),
|
field=models.PositiveSmallIntegerField(blank=True, choices=[(10, 'Loopback'), (20, 'Secondary'), (30, 'Anycast'), (40, 'VIP'), (41, 'VRRP'), (42, 'HSRP'), (43, 'GLBP'), (44, 'CARP'), (50, 'BGP P2P')], help_text='The functional role of this IP', null=True, verbose_name='Role'),
|
||||||
),
|
),
|
||||||
]
|
]
|
||||||
|
@ -13,6 +13,6 @@ class Migration(migrations.Migration):
|
|||||||
migrations.AlterField(
|
migrations.AlterField(
|
||||||
model_name='ipaddress',
|
model_name='ipaddress',
|
||||||
name='role',
|
name='role',
|
||||||
field=models.PositiveSmallIntegerField(blank=True, choices=[(10, 'Loopback'), (20, 'Secondary'), (30, 'Anycast'), (40, 'VIP'), (41, 'VRRP'), (42, 'HSRP'), (43, 'GLBP'), (44, 'CARP')], help_text='The functional role of this IP', null=True, verbose_name='Role'),
|
field=models.PositiveSmallIntegerField(blank=True, choices=[(10, 'Loopback'), (20, 'Secondary'), (30, 'Anycast'), (40, 'VIP'), (41, 'VRRP'), (42, 'HSRP'), (43, 'GLBP'), (44, 'CARP'), (50, 'BGP P2P')], help_text='The functional role of this IP', null=True, verbose_name='Role'),
|
||||||
),
|
),
|
||||||
]
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user