The openstack_dashboard.dashboards.project.access_and_security.security_groups.forms Module

class openstack_dashboard.dashboards.project.access_and_security.security_groups.forms.AddRule(*args, **kwargs)[source]

Bases: horizon.forms.base.SelfHandlingForm

base_fields = {'id': <django.forms.fields.CharField object at 0x2aba145edb10>, 'rule_menu': <django.forms.fields.ChoiceField object at 0x2aba145edd50>, 'direction': <django.forms.fields.ChoiceField object at 0x2aba14b80e50>, 'ip_protocol': <django.forms.fields.IntegerField object at 0x2aba14b80610>, 'port_or_range': <django.forms.fields.ChoiceField object at 0x2aba14b806d0>, 'port': <django.forms.fields.IntegerField object at 0x2aba14b80190>, 'from_port': <django.forms.fields.IntegerField object at 0x2aba143ffe10>, 'to_port': <django.forms.fields.IntegerField object at 0x2aba143ff550>, 'icmp_type': <django.forms.fields.IntegerField object at 0x2aba143ff510>, 'icmp_code': <django.forms.fields.IntegerField object at 0x2aba143ff5d0>, 'remote': <django.forms.fields.ChoiceField object at 0x2aba143ff650>, 'cidr': <horizon.forms.fields.IPField object at 0x2aba143ff190>, 'security_group': <django.forms.fields.ChoiceField object at 0x2aba143fff50>, 'ethertype': <django.forms.fields.ChoiceField object at 0x2aba13602390>}
clean()[source]
handle(request, data)[source]
media
class openstack_dashboard.dashboards.project.access_and_security.security_groups.forms.CreateGroup(request, *args, **kwargs)[source]

Bases: openstack_dashboard.dashboards.project.access_and_security.security_groups.forms.GroupBase

base_fields = {'name': <django.forms.fields.CharField object at 0x2aba12abd850>, 'description': <django.forms.fields.CharField object at 0x2aba12abde50>}
error_message = <django.utils.functional.__proxy__ object at 0x2aba145ed690>
media
success_message = <django.utils.functional.__proxy__ object at 0x2aba12abd3d0>
class openstack_dashboard.dashboards.project.access_and_security.security_groups.forms.GroupBase(request, *args, **kwargs)[source]

Bases: horizon.forms.base.SelfHandlingForm

Base class to handle creation and update of security groups.

Children classes must define two attributes:

success_message

A success message containing the placeholder %s, which will be replaced by the group name.

error_message

An error message containing the placeholder %s, which will be replaced by the error message.

base_fields = {'name': <django.forms.fields.CharField object at 0x2aba12abd850>, 'description': <django.forms.fields.CharField object at 0x2aba12abde50>}
handle(request, data)[source]
media
class openstack_dashboard.dashboards.project.access_and_security.security_groups.forms.UpdateGroup(request, *args, **kwargs)[source]

Bases: openstack_dashboard.dashboards.project.access_and_security.security_groups.forms.GroupBase

base_fields = {'name': <django.forms.fields.CharField object at 0x2aba12abd850>, 'description': <django.forms.fields.CharField object at 0x2aba12abde50>, 'id': <django.forms.fields.CharField object at 0x2aba145edc50>}
error_message = <django.utils.functional.__proxy__ object at 0x2aba145edf50>
media
success_message = <django.utils.functional.__proxy__ object at 0x2aba145ed1d0>

Previous topic

The openstack_dashboard.dashboards.project.access_and_security.security_groups.views Module

Next topic

The openstack_dashboard.dashboards.project.images.panel Module

This Page