diff --git a/openstack_dashboard/dashboards/project/firewalls/forms.py b/openstack_dashboard/dashboards/project/firewalls/forms.py index 02557b0104..81cb0612fb 100644 --- a/openstack_dashboard/dashboards/project/firewalls/forms.py +++ b/openstack_dashboard/dashboards/project/firewalls/forms.py @@ -42,7 +42,8 @@ class UpdateRule(forms.SelfHandlingForm): help_text=_('Protocol for the firewall rule')) action = forms.ChoiceField( label=_("Action"), required=False, - choices=[('ALLOW', _('ALLOW')), ('DENY', _('DENY'))], + choices=[('ALLOW', _('ALLOW')), ('DENY', _('DENY')), + ('REJECT', _('REJECT'))], help_text=_('Action for the firewall rule')) source_ip_address = forms.IPField( label=_("Source IP Address/Subnet"), diff --git a/openstack_dashboard/dashboards/project/firewalls/tables.py b/openstack_dashboard/dashboards/project/firewalls/tables.py index f70a2e7f34..663b79fdad 100644 --- a/openstack_dashboard/dashboards/project/firewalls/tables.py +++ b/openstack_dashboard/dashboards/project/firewalls/tables.py @@ -286,6 +286,7 @@ class RulesTable(tables.DataTable): ACTION_DISPLAY_CHOICES = ( ("Allow", pgettext_lazy("Action Name of a Firewall Rule", u"ALLOW")), ("Deny", pgettext_lazy("Action Name of a Firewall Rule", u"DENY")), + ("Reject", pgettext_lazy("Action Name of a Firewall Rule", u"REJECT")), ) name = tables.Column("name_or_id", verbose_name=_("Name"), diff --git a/openstack_dashboard/dashboards/project/firewalls/workflows.py b/openstack_dashboard/dashboards/project/firewalls/workflows.py index 05c7adef09..8dd5654317 100644 --- a/openstack_dashboard/dashboards/project/firewalls/workflows.py +++ b/openstack_dashboard/dashboards/project/firewalls/workflows.py @@ -43,7 +43,8 @@ class AddRuleAction(workflows.Action): action = forms.ChoiceField( label=_("Action"), choices=[('allow', _('ALLOW')), - ('deny', _('DENY'))],) + ('deny', _('DENY')), + ('reject', _('REJECT'))],) source_ip_address = forms.IPField( label=_("Source IP Address/Subnet"), version=forms.IPv4 | forms.IPv6,