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 0x2afcca44a610>, 'rule_menu': <django.forms.fields.ChoiceField object at 0x2afcca44a690>, 'direction': <django.forms.fields.ChoiceField object at 0x2afcc95b7c10>, 'ip_protocol': <django.forms.fields.IntegerField object at 0x2afcc95b7410>, 'port_or_range': <django.forms.fields.ChoiceField object at 0x2afcc9c73750>, 'port': <django.forms.fields.IntegerField object at 0x2afcc9c73ad0>, 'from_port': <django.forms.fields.IntegerField object at 0x2afcc9c73790>, 'to_port': <django.forms.fields.IntegerField object at 0x2afcc9c73310>, 'icmp_type': <django.forms.fields.IntegerField object at 0x2afcc9c73b50>, 'icmp_code': <django.forms.fields.IntegerField object at 0x2afcc9c734d0>, 'remote': <django.forms.fields.ChoiceField object at 0x2afcc6f78350>, 'cidr': <horizon.forms.fields.IPField object at 0x2afcc7a77790>, 'security_group': <django.forms.fields.ChoiceField object at 0x2afcca0d3950>, 'ethertype': <django.forms.fields.ChoiceField object at 0x2afcc6c0e850>}
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 0x2afcca44ac50>, 'description': <django.forms.fields.CharField object at 0x2afcca44a0d0>}
error_message = <django.utils.functional.__proxy__ object at 0x2afcca44a110>
media
success_message = <django.utils.functional.__proxy__ object at 0x2afcca44ad10>
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 0x2afcca44ac50>, 'description': <django.forms.fields.CharField object at 0x2afcca44a0d0>}
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 0x2afcca44ac50>, 'description': <django.forms.fields.CharField object at 0x2afcca44a0d0>, 'id': <django.forms.fields.CharField object at 0x2afcca44a710>}
error_message = <django.utils.functional.__proxy__ object at 0x2afcca44ac90>
media
success_message = <django.utils.functional.__proxy__ object at 0x2afcca44a190>

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