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 = OrderedDict([('id', <django.forms.fields.CharField object at 0x7f42442466d0>), ('rule_menu', <django.forms.fields.ChoiceField object at 0x7f4244246290>), ('direction', <django.forms.fields.ChoiceField object at 0x7f4243ad4390>), ('ip_protocol', <django.forms.fields.IntegerField object at 0x7f4243ad4610>), ('port_or_range', <django.forms.fields.ChoiceField object at 0x7f4249b476d0>), ('port', <django.forms.fields.IntegerField object at 0x7f4245e02e90>), ('from_port', <django.forms.fields.IntegerField object at 0x7f4243b02710>), ('to_port', <django.forms.fields.IntegerField object at 0x7f4243b023d0>), ('icmp_type', <django.forms.fields.IntegerField object at 0x7f4243b028d0>), ('icmp_code', <django.forms.fields.IntegerField object at 0x7f4243b02990>), ('remote', <django.forms.fields.ChoiceField object at 0x7f4243b02050>), ('cidr', <horizon.forms.fields.IPField object at 0x7f4243b02590>), ('security_group', <django.forms.fields.ChoiceField object at 0x7f4246445f90>), ('ethertype', <django.forms.fields.ChoiceField object at 0x7f4246445f10>)])
clean()[source]
declared_fields = OrderedDict([('id', <django.forms.fields.CharField object at 0x7f42442466d0>), ('rule_menu', <django.forms.fields.ChoiceField object at 0x7f4244246290>), ('direction', <django.forms.fields.ChoiceField object at 0x7f4243ad4390>), ('ip_protocol', <django.forms.fields.IntegerField object at 0x7f4243ad4610>), ('port_or_range', <django.forms.fields.ChoiceField object at 0x7f4249b476d0>), ('port', <django.forms.fields.IntegerField object at 0x7f4245e02e90>), ('from_port', <django.forms.fields.IntegerField object at 0x7f4243b02710>), ('to_port', <django.forms.fields.IntegerField object at 0x7f4243b023d0>), ('icmp_type', <django.forms.fields.IntegerField object at 0x7f4243b028d0>), ('icmp_code', <django.forms.fields.IntegerField object at 0x7f4243b02990>), ('remote', <django.forms.fields.ChoiceField object at 0x7f4243b02050>), ('cidr', <horizon.forms.fields.IPField object at 0x7f4243b02590>), ('security_group', <django.forms.fields.ChoiceField object at 0x7f4246445f90>), ('ethertype', <django.forms.fields.ChoiceField object at 0x7f4246445f10>)])
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 = OrderedDict([('name', <django.forms.fields.CharField object at 0x7f4243454e10>), ('description', <django.forms.fields.CharField object at 0x7f4243454650>)])
declared_fields = OrderedDict([('name', <django.forms.fields.CharField object at 0x7f4243454e10>), ('description', <django.forms.fields.CharField object at 0x7f4243454650>)])
error_message = <django.utils.functional.__proxy__ object at 0x7f4243454450>
media
success_message = <django.utils.functional.__proxy__ object at 0x7f4243454dd0>
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 = OrderedDict([('name', <django.forms.fields.CharField object at 0x7f4243454e10>), ('description', <django.forms.fields.CharField object at 0x7f4243454650>)])
declared_fields = OrderedDict([('name', <django.forms.fields.CharField object at 0x7f4243454e10>), ('description', <django.forms.fields.CharField object at 0x7f4243454650>)])
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 = OrderedDict([('name', <django.forms.fields.CharField object at 0x7f4243454e10>), ('description', <django.forms.fields.CharField object at 0x7f4243454650>), ('id', <django.forms.fields.CharField object at 0x7f4244a4d8d0>)])
declared_fields = OrderedDict([('name', <django.forms.fields.CharField object at 0x7f4243454e10>), ('description', <django.forms.fields.CharField object at 0x7f4243454650>), ('id', <django.forms.fields.CharField object at 0x7f4244a4d8d0>)])
error_message = <django.utils.functional.__proxy__ object at 0x7f4243454c10>
media
success_message = <django.utils.functional.__proxy__ object at 0x7f4243454fd0>

Previous topic

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

Next topic

The openstack_dashboard.dashboards.project.access_and_security.security_groups Module

Project Source

This Page