mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-20 02:06:42 -06:00
Closes #14707: Change 'Interface' to 'Tunnel interface' in VPN tunnel forms
This commit is contained in:
parent
d9a7b4ee0e
commit
5b50920c61
@ -91,7 +91,7 @@ class TunnelCreateForm(TunnelForm):
|
|||||||
termination1_termination = DynamicModelChoiceField(
|
termination1_termination = DynamicModelChoiceField(
|
||||||
queryset=Interface.objects.all(),
|
queryset=Interface.objects.all(),
|
||||||
required=False,
|
required=False,
|
||||||
label=_('Interface'),
|
label=_('Tunnel interface'),
|
||||||
query_params={
|
query_params={
|
||||||
'device_id': '$termination1_parent',
|
'device_id': '$termination1_parent',
|
||||||
}
|
}
|
||||||
@ -126,7 +126,7 @@ class TunnelCreateForm(TunnelForm):
|
|||||||
termination2_termination = DynamicModelChoiceField(
|
termination2_termination = DynamicModelChoiceField(
|
||||||
queryset=Interface.objects.all(),
|
queryset=Interface.objects.all(),
|
||||||
required=False,
|
required=False,
|
||||||
label=_('Interface'),
|
label=_('Tunnel interface'),
|
||||||
query_params={
|
query_params={
|
||||||
'device_id': '$termination2_parent',
|
'device_id': '$termination2_parent',
|
||||||
}
|
}
|
||||||
@ -238,7 +238,7 @@ class TunnelTerminationForm(NetBoxModelForm):
|
|||||||
)
|
)
|
||||||
termination = DynamicModelChoiceField(
|
termination = DynamicModelChoiceField(
|
||||||
queryset=Interface.objects.all(),
|
queryset=Interface.objects.all(),
|
||||||
label=_('Interface'),
|
label=_('Tunnel interface'),
|
||||||
query_params={
|
query_params={
|
||||||
'device_id': '$parent',
|
'device_id': '$parent',
|
||||||
}
|
}
|
||||||
|
@ -88,7 +88,7 @@ class TunnelTerminationTable(TenancyColumnsMixin, NetBoxTable):
|
|||||||
verbose_name=_('Host')
|
verbose_name=_('Host')
|
||||||
)
|
)
|
||||||
termination = tables.Column(
|
termination = tables.Column(
|
||||||
verbose_name=_('Interface'),
|
verbose_name=_('Tunnel interface'),
|
||||||
linkify=True
|
linkify=True
|
||||||
)
|
)
|
||||||
ip_addresses = tables.ManyToManyColumn(
|
ip_addresses = tables.ManyToManyColumn(
|
||||||
|
Loading…
Reference in New Issue
Block a user