Fixes #14706: Relax one-to-one mapping of tunnel termination to IP address

This commit is contained in:
Jeremy Stretch
2024-01-05 14:31:38 -05:00
parent 5223486fd8
commit e1e198ec4f
2 changed files with 22 additions and 2 deletions

View File

@@ -129,10 +129,10 @@ class TunnelTermination(CustomFieldsMixin, CustomLinksMixin, TagsMixin, ChangeLo
ct_field='termination_type',
fk_field='termination_id'
)
outside_ip = models.OneToOneField(
outside_ip = models.ForeignKey(
to='ipam.IPAddress',
on_delete=models.PROTECT,
related_name='tunnel_termination',
related_name='tunnel_terminations',
blank=True,
null=True
)