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 0x2b837a17f6d0>, 'rule_menu': <django.forms.fields.ChoiceField object at 0x2b837a17f810>, 'direction': <django.forms.fields.ChoiceField object at 0x2b837a17f090>, 'ip_protocol': <django.forms.fields.IntegerField object at 0x2b837a17fb50>, 'port_or_range': <django.forms.fields.ChoiceField object at 0x2b8379c92b10>, 'port': <django.forms.fields.IntegerField object at 0x2b8377de5710>, 'from_port': <django.forms.fields.IntegerField object at 0x2b8377de5e90>, 'to_port': <django.forms.fields.IntegerField object at 0x2b8377de5950>, 'icmp_type': <django.forms.fields.IntegerField object at 0x2b8377de50d0>, 'icmp_code': <django.forms.fields.IntegerField object at 0x2b8377de5a10>, 'remote': <django.forms.fields.ChoiceField object at 0x2b8377de51d0>, 'cidr': <horizon.forms.fields.IPField object at 0x2b837a8afa90>, 'security_group': <django.forms.fields.ChoiceField object at 0x2b837a95c1d0>, 'ethertype': <django.forms.fields.ChoiceField object at 0x2b837a146190>}
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 0x2b8379d8c710>, 'description': <django.forms.fields.CharField object at 0x2b837a17f1d0>}
error_message = <django.utils.functional.__proxy__ object at 0x2b837a17f710>
media
success_message = <django.utils.functional.__proxy__ object at 0x2b837a17fed0>
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 0x2b8379d8c710>, 'description': <django.forms.fields.CharField object at 0x2b837a17f1d0>}
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 0x2b8379d8c710>, 'description': <django.forms.fields.CharField object at 0x2b837a17f1d0>, 'id': <django.forms.fields.CharField object at 0x2b837a17f550>}
error_message = <django.utils.functional.__proxy__ object at 0x2b837a17f590>
media
success_message = <django.utils.functional.__proxy__ object at 0x2b837a17fa50>

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