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 0x7f9f3dc5a790>), ('rule_menu', <django.forms.fields.ChoiceField object at 0x7f9f3dc5aa90>), ('direction', <django.forms.fields.ChoiceField object at 0x7f9f3dc5a510>), ('ip_protocol', <django.forms.fields.IntegerField object at 0x7f9f3dae3b90>), ('port_or_range', <django.forms.fields.ChoiceField object at 0x7f9f3dae3390>), ('port', <django.forms.fields.IntegerField object at 0x7f9f3dae3590>), ('from_port', <django.forms.fields.IntegerField object at 0x7f9f3dae3050>), ('to_port', <django.forms.fields.IntegerField object at 0x7f9f3e75e090>), ('icmp_type', <django.forms.fields.IntegerField object at 0x7f9f3e75ef90>), ('icmp_code', <django.forms.fields.IntegerField object at 0x7f9f3e75ead0>), ('remote', <django.forms.fields.ChoiceField object at 0x7f9f3dafce90>), ('cidr', <horizon.forms.fields.IPField object at 0x7f9f3dafc710>), ('security_group', <django.forms.fields.ChoiceField object at 0x7f9f3dafcc90>), ('ethertype', <django.forms.fields.ChoiceField object at 0x7f9f3dafc910>)])
clean()[source]
declared_fields = OrderedDict([('id', <django.forms.fields.CharField object at 0x7f9f3dc5a790>), ('rule_menu', <django.forms.fields.ChoiceField object at 0x7f9f3dc5aa90>), ('direction', <django.forms.fields.ChoiceField object at 0x7f9f3dc5a510>), ('ip_protocol', <django.forms.fields.IntegerField object at 0x7f9f3dae3b90>), ('port_or_range', <django.forms.fields.ChoiceField object at 0x7f9f3dae3390>), ('port', <django.forms.fields.IntegerField object at 0x7f9f3dae3590>), ('from_port', <django.forms.fields.IntegerField object at 0x7f9f3dae3050>), ('to_port', <django.forms.fields.IntegerField object at 0x7f9f3e75e090>), ('icmp_type', <django.forms.fields.IntegerField object at 0x7f9f3e75ef90>), ('icmp_code', <django.forms.fields.IntegerField object at 0x7f9f3e75ead0>), ('remote', <django.forms.fields.ChoiceField object at 0x7f9f3dafce90>), ('cidr', <horizon.forms.fields.IPField object at 0x7f9f3dafc710>), ('security_group', <django.forms.fields.ChoiceField object at 0x7f9f3dafcc90>), ('ethertype', <django.forms.fields.ChoiceField object at 0x7f9f3dafc910>)])
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 0x7f9f3cdf3650>), ('description', <django.forms.fields.CharField object at 0x7f9f3cee0ad0>)])
declared_fields = OrderedDict([('name', <django.forms.fields.CharField object at 0x7f9f3cdf3650>), ('description', <django.forms.fields.CharField object at 0x7f9f3cee0ad0>)])
error_message = <django.utils.functional.__proxy__ object at 0x7f9f3cea71d0>
media
success_message = <django.utils.functional.__proxy__ object at 0x7f9f3cebb050>
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 0x7f9f3cdf3650>), ('description', <django.forms.fields.CharField object at 0x7f9f3cee0ad0>)])
declared_fields = OrderedDict([('name', <django.forms.fields.CharField object at 0x7f9f3cdf3650>), ('description', <django.forms.fields.CharField object at 0x7f9f3cee0ad0>)])
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 0x7f9f3cdf3650>), ('description', <django.forms.fields.CharField object at 0x7f9f3cee0ad0>), ('id', <django.forms.fields.CharField object at 0x7f9f3dc5abd0>)])
declared_fields = OrderedDict([('name', <django.forms.fields.CharField object at 0x7f9f3cdf3650>), ('description', <django.forms.fields.CharField object at 0x7f9f3cee0ad0>), ('id', <django.forms.fields.CharField object at 0x7f9f3dc5abd0>)])
error_message = <django.utils.functional.__proxy__ object at 0x7f9f3ce94fd0>
media
success_message = <django.utils.functional.__proxy__ object at 0x7f9f3ce94e10>

Previous topic

The openstack_dashboard.dashboards.project.access_and_security.security_groups Module

Next topic

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

Project Source

This Page