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 0x2b77fa32d9d0>, 'rule_menu': <django.forms.fields.ChoiceField object at 0x2b77fa32dad0>, 'direction': <django.forms.fields.ChoiceField object at 0x2b77fa32d1d0>, 'ip_protocol': <django.forms.fields.IntegerField object at 0x2b77fa32dc10>, 'port_or_range': <django.forms.fields.ChoiceField object at 0x2b77fa32d890>, 'port': <django.forms.fields.IntegerField object at 0x2b77f9d80ed0>, 'from_port': <django.forms.fields.IntegerField object at 0x2b77f9d80710>, 'to_port': <django.forms.fields.IntegerField object at 0x2b77f9d80390>, 'icmp_type': <django.forms.fields.IntegerField object at 0x2b77f9d80f90>, 'icmp_code': <django.forms.fields.IntegerField object at 0x2b77f9d80f50>, 'remote': <django.forms.fields.ChoiceField object at 0x2b77f9d80950>, 'cidr': <horizon.forms.fields.IPField object at 0x2b77fa1b31d0>, 'security_group': <django.forms.fields.ChoiceField object at 0x2b77f9e2ecd0>, 'ethertype': <django.forms.fields.ChoiceField object at 0x2b77f7be1fd0>}
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 0x2b77f9b23150>, 'description': <django.forms.fields.CharField object at 0x2b77f9b23190>}
error_message = <django.utils.functional.__proxy__ object at 0x2b77f9b23a50>
media
success_message = <django.utils.functional.__proxy__ object at 0x2b77f9b23050>
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 0x2b77f9b23150>, 'description': <django.forms.fields.CharField object at 0x2b77f9b23190>}
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 0x2b77f9b23150>, 'description': <django.forms.fields.CharField object at 0x2b77f9b23190>, 'id': <django.forms.fields.CharField object at 0x2b77f9b23650>}
error_message = <django.utils.functional.__proxy__ object at 0x2b77f9b23cd0>
media
success_message = <django.utils.functional.__proxy__ object at 0x2b77f9b232d0>

Previous topic

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

Next topic

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

This Page