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 0x7f446cdacad0>), ('rule_menu', <django.forms.fields.ChoiceField object at 0x7f446d7c4a50>), ('direction', <django.forms.fields.ChoiceField object at 0x7f446d04a090>), ('ip_protocol', <django.forms.fields.IntegerField object at 0x7f446d04ae10>), ('port_or_range', <django.forms.fields.ChoiceField object at 0x7f446dcdbc90>), ('port', <django.forms.fields.IntegerField object at 0x7f446dcdb990>), ('from_port', <django.forms.fields.IntegerField object at 0x7f446dcdbd90>), ('to_port', <django.forms.fields.IntegerField object at 0x7f446dcdb6d0>), ('icmp_type', <django.forms.fields.IntegerField object at 0x7f446dcdb190>), ('icmp_code', <django.forms.fields.IntegerField object at 0x7f4471aa3290>), ('remote', <django.forms.fields.ChoiceField object at 0x7f446d2610d0>), ('cidr', <horizon.forms.fields.IPField object at 0x7f446d2613d0>), ('security_group', <django.forms.fields.ChoiceField object at 0x7f446d261e90>), ('ethertype', <django.forms.fields.ChoiceField object at 0x7f446d261890>)])
clean()[source]
declared_fields = OrderedDict([('id', <django.forms.fields.CharField object at 0x7f446cdacad0>), ('rule_menu', <django.forms.fields.ChoiceField object at 0x7f446d7c4a50>), ('direction', <django.forms.fields.ChoiceField object at 0x7f446d04a090>), ('ip_protocol', <django.forms.fields.IntegerField object at 0x7f446d04ae10>), ('port_or_range', <django.forms.fields.ChoiceField object at 0x7f446dcdbc90>), ('port', <django.forms.fields.IntegerField object at 0x7f446dcdb990>), ('from_port', <django.forms.fields.IntegerField object at 0x7f446dcdbd90>), ('to_port', <django.forms.fields.IntegerField object at 0x7f446dcdb6d0>), ('icmp_type', <django.forms.fields.IntegerField object at 0x7f446dcdb190>), ('icmp_code', <django.forms.fields.IntegerField object at 0x7f4471aa3290>), ('remote', <django.forms.fields.ChoiceField object at 0x7f446d2610d0>), ('cidr', <horizon.forms.fields.IPField object at 0x7f446d2613d0>), ('security_group', <django.forms.fields.ChoiceField object at 0x7f446d261e90>), ('ethertype', <django.forms.fields.ChoiceField object at 0x7f446d261890>)])
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 0x7f446da90ed0>), ('description', <django.forms.fields.CharField object at 0x7f446ccf6110>)])
declared_fields = OrderedDict([('name', <django.forms.fields.CharField object at 0x7f446da90ed0>), ('description', <django.forms.fields.CharField object at 0x7f446ccf6110>)])
error_message = <django.utils.functional.__proxy__ object at 0x7f446ccf6050>
media
success_message = <django.utils.functional.__proxy__ object at 0x7f446ccf6090>
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 0x7f446da90ed0>), ('description', <django.forms.fields.CharField object at 0x7f446ccf6110>)])
declared_fields = OrderedDict([('name', <django.forms.fields.CharField object at 0x7f446da90ed0>), ('description', <django.forms.fields.CharField object at 0x7f446ccf6110>)])
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 0x7f446da90ed0>), ('description', <django.forms.fields.CharField object at 0x7f446ccf6110>), ('id', <django.forms.fields.CharField object at 0x7f446ccf6950>)])
declared_fields = OrderedDict([('name', <django.forms.fields.CharField object at 0x7f446da90ed0>), ('description', <django.forms.fields.CharField object at 0x7f446ccf6110>), ('id', <django.forms.fields.CharField object at 0x7f446ccf6950>)])
error_message = <django.utils.functional.__proxy__ object at 0x7f446ccf6ad0>
media
success_message = <django.utils.functional.__proxy__ object at 0x7f446ccf6610>

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