Merge "Add description for network types"

This commit is contained in:
Zuul 2025-05-06 14:31:33 +00:00 committed by Gerrit Code Review
commit 1c1363e2ef
3 changed files with 28 additions and 6 deletions

View File

@ -124,9 +124,14 @@ class CreateNetwork(forms.SelfHandlingForm):
required=False,
help_text=_("If checked, the network will be enabled."))
shared = forms.BooleanField(label=_("Shared"),
initial=False, required=False)
initial=False, required=False,
help_text=_("Share the network between "
"projects"))
external = forms.BooleanField(label=_("External Network"),
initial=False, required=False)
initial=False, required=False,
help_text=_("Network has an external routing "
"facility that is not managed by "
"Neutron"))
with_subnet = forms.BooleanField(label=_("Create Subnet"),
widget=forms.CheckboxInput(attrs={
'class': 'switchable',
@ -341,8 +346,19 @@ class UpdateNetwork(forms.SelfHandlingForm):
label=_("Enable Admin State"),
required=False,
help_text=_("If checked, the network will be enabled."))
shared = forms.BooleanField(label=_("Shared"), required=False)
external = forms.BooleanField(label=_("External Network"), required=False)
shared = forms.BooleanField(
label=_("Shared"),
required=False,
help_text=_("Share the network between projects")
)
external = forms.BooleanField(
label=_("External Network"),
required=False,
help_text=_("Network has an external routing "
"facility that is not managed by "
"Neutron")
)
failure_url = 'horizon:admin:networks:index'
def handle(self, request, data):

View File

@ -38,7 +38,11 @@ class UpdateNetwork(forms.SelfHandlingForm):
label=_("Enable Admin State"),
required=False,
help_text=_("If checked, the network will be enabled."))
shared = forms.BooleanField(label=_("Shared"), required=False)
shared = forms.BooleanField(
label=_("Shared"),
required=False,
help_text=_("Share the network between projects")
)
failure_url = 'horizon:project:networks:index'
def __init__(self, request, *args, **kwargs):

View File

@ -44,7 +44,9 @@ class CreateNetworkInfoAction(workflows.Action):
required=False,
help_text=_("If checked, the network will be enabled."))
shared = forms.BooleanField(label=_("Shared"), initial=False,
required=False)
required=False,
help_text=_("Share the network between "
"projects"))
with_subnet = forms.BooleanField(label=_("Create Subnet"),
widget=forms.CheckboxInput(attrs={
'class': 'switchable',