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 0x7fdfb19726d0>), ('rule_menu', <django.forms.fields.ChoiceField object at 0x7fdfb1972c10>), ('direction', <django.forms.fields.ChoiceField object at 0x7fdfb1972050>), ('ip_protocol', <django.forms.fields.IntegerField object at 0x7fdfb1972a90>), ('port_or_range', <django.forms.fields.ChoiceField object at 0x7fdfb16f01d0>), ('port', <django.forms.fields.IntegerField object at 0x7fdfb16f0850>), ('from_port', <django.forms.fields.IntegerField object at 0x7fdfb16f0590>), ('to_port', <django.forms.fields.IntegerField object at 0x7fdfb16f0a50>), ('icmp_type', <django.forms.fields.IntegerField object at 0x7fdfb16f0090>), ('icmp_code', <django.forms.fields.IntegerField object at 0x7fdfb16f0350>), ('remote', <django.forms.fields.ChoiceField object at 0x7fdfb16f0b50>), ('cidr', <horizon.forms.fields.IPField object at 0x7fdfb6e271d0>), ('security_group', <django.forms.fields.ChoiceField object at 0x7fdfb4d65490>), ('ethertype', <django.forms.fields.ChoiceField object at 0x7fdfb4d65a50>)])
clean()[source]
declared_fields = OrderedDict([('id', <django.forms.fields.CharField object at 0x7fdfb19726d0>), ('rule_menu', <django.forms.fields.ChoiceField object at 0x7fdfb1972c10>), ('direction', <django.forms.fields.ChoiceField object at 0x7fdfb1972050>), ('ip_protocol', <django.forms.fields.IntegerField object at 0x7fdfb1972a90>), ('port_or_range', <django.forms.fields.ChoiceField object at 0x7fdfb16f01d0>), ('port', <django.forms.fields.IntegerField object at 0x7fdfb16f0850>), ('from_port', <django.forms.fields.IntegerField object at 0x7fdfb16f0590>), ('to_port', <django.forms.fields.IntegerField object at 0x7fdfb16f0a50>), ('icmp_type', <django.forms.fields.IntegerField object at 0x7fdfb16f0090>), ('icmp_code', <django.forms.fields.IntegerField object at 0x7fdfb16f0350>), ('remote', <django.forms.fields.ChoiceField object at 0x7fdfb16f0b50>), ('cidr', <horizon.forms.fields.IPField object at 0x7fdfb6e271d0>), ('security_group', <django.forms.fields.ChoiceField object at 0x7fdfb4d65490>), ('ethertype', <django.forms.fields.ChoiceField object at 0x7fdfb4d65a50>)])
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 0x7fdfb19a1190>), ('description', <django.forms.fields.CharField object at 0x7fdfb19721d0>)])
declared_fields = OrderedDict([('name', <django.forms.fields.CharField object at 0x7fdfb19a1190>), ('description', <django.forms.fields.CharField object at 0x7fdfb19721d0>)])
error_message = <django.utils.functional.__proxy__ object at 0x7fdfb1972e10>
media
success_message = <django.utils.functional.__proxy__ object at 0x7fdfb1972610>
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 0x7fdfb19a1190>), ('description', <django.forms.fields.CharField object at 0x7fdfb19721d0>)])
declared_fields = OrderedDict([('name', <django.forms.fields.CharField object at 0x7fdfb19a1190>), ('description', <django.forms.fields.CharField object at 0x7fdfb19721d0>)])
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 0x7fdfb19a1190>), ('description', <django.forms.fields.CharField object at 0x7fdfb19721d0>), ('id', <django.forms.fields.CharField object at 0x7fdfb1972550>)])
declared_fields = OrderedDict([('name', <django.forms.fields.CharField object at 0x7fdfb19a1190>), ('description', <django.forms.fields.CharField object at 0x7fdfb19721d0>), ('id', <django.forms.fields.CharField object at 0x7fdfb1972550>)])
error_message = <django.utils.functional.__proxy__ object at 0x7fdfb19728d0>
media
success_message = <django.utils.functional.__proxy__ object at 0x7fdfb1972410>

Previous topic

The openstack_dashboard.dashboards.project.access_and_security.urls Module

Next topic

The openstack_dashboard.dashboards.project.access_and_security.security_groups Module

Project Source

This Page