The openstack_dashboard.dashboards.project.firewalls.tables ModuleΒΆ

class openstack_dashboard.dashboards.project.firewalls.tables.AddFirewallLink(attrs=None, **kwargs)[source]

Bases: horizon.tables.actions.LinkAction

AddFirewallLink.base_options = {'__module__': 'openstack_dashboard.dashboards.project.firewalls.tables', 'render': <function render at 0x531c398>, 'update': <function update at 0x531c668>, 'policy_rules': (('network', 'create_firewall'),), 'get_link_url': <function get_link_url at 0x530ee60>, 'ajax': False, 'allowed': <function allowed at 0x531c578>, 'base_options': {'__module__': 'horizon.tables.actions', 'data_type_matched': <function data_type_matched at 0x531c848>, 'get_default_classes': <function get_default_classes at 0x531c5f0>, 'update': <function update at 0x531c668>, 'get_policy_target': <function get_policy_target at 0x531c8c0>, 'associate_with_table': <function associate_with_table at 0x531c1b8>, '_allowed': <function _allowed at 0x531c758>, '__repr__': <function __repr__ at 0x531c230>, 'allowed': <function allowed at 0x531c578>, 'get_default_attrs': <function get_default_attrs at 0x531c7d0>, 'base_options': {...}, '__doc__': 'Common base class for all ``Action`` classes.', '__init__': <function __init__ at 0x531c9b0>}, 'get_default_attrs': <function get_default_attrs at 0x531c7d0>, '__init__': <function __init__ at 0x531c500>, 'name': 'addfirewall', 'url': 'horizon:project:firewalls:addfirewall', 'data_type_matched': <function data_type_matched at 0x531c848>, 'get_default_classes': <function get_default_classes at 0x531c5f0>, 'get_policy_target': <function get_policy_target at 0x531c8c0>, 'associate_with_table': <function associate_with_table at 0x530ec08>, '_allowed': <function _allowed at 0x531c758>, 'classes': ('ajax-modal', 'btn-addfirewall'), '__repr__': <function __repr__ at 0x531c230>, 'get_ajax_update_url': <function get_ajax_update_url at 0x531c410>, 'verbose_name': <django.utils.functional.__proxy__ object at 0x90b9190>, '__doc__': 'A table action which is simply a link rather than a form POST.\n\n .. attribute:: name\n\n Required. The short name or "slug" representing this\n action. This name should not be changed at runtime.\n\n .. attribute:: verbose_name\n\n A string which will be rendered as the link text. (Required)\n\n .. attribute:: url\n\n A string or a callable which resolves to a url to be used as the link\n target. You must either define the ``url`` attribute or override\n the ``get_link_url`` method on the class.\n\n .. attribute:: allowed_data_types\n\n A list that contains the allowed data types of the action. If the\n datum\'s type is in this list, the action will be shown on the row\n for the datum.\n\n Defaults to be an empty list (``[]``). When set to empty, the action\n will accept any kind of data.\n '}
AddFirewallLink.classes = ('ajax-modal', 'btn-addfirewall')
AddFirewallLink.name = 'addfirewall'
AddFirewallLink.policy_rules = (('network', 'create_firewall'),)
AddFirewallLink.url = 'horizon:project:firewalls:addfirewall'
AddFirewallLink.verbose_name = <django.utils.functional.__proxy__ object at 0x90b9190>
class openstack_dashboard.dashboards.project.firewalls.tables.AddPolicyLink(attrs=None, **kwargs)[source]

Bases: horizon.tables.actions.LinkAction

AddPolicyLink.base_options = {'__module__': 'openstack_dashboard.dashboards.project.firewalls.tables', 'render': <function render at 0x531c398>, 'update': <function update at 0x531c668>, 'policy_rules': (('network', 'create_firewall_policy'),), 'get_link_url': <function get_link_url at 0x530ee60>, 'ajax': False, 'allowed': <function allowed at 0x531c578>, 'base_options': {'__module__': 'horizon.tables.actions', 'data_type_matched': <function data_type_matched at 0x531c848>, 'get_default_classes': <function get_default_classes at 0x531c5f0>, 'update': <function update at 0x531c668>, 'get_policy_target': <function get_policy_target at 0x531c8c0>, 'associate_with_table': <function associate_with_table at 0x531c1b8>, '_allowed': <function _allowed at 0x531c758>, '__repr__': <function __repr__ at 0x531c230>, 'allowed': <function allowed at 0x531c578>, 'get_default_attrs': <function get_default_attrs at 0x531c7d0>, 'base_options': {...}, '__doc__': 'Common base class for all ``Action`` classes.', '__init__': <function __init__ at 0x531c9b0>}, 'get_default_attrs': <function get_default_attrs at 0x531c7d0>, '__init__': <function __init__ at 0x531c500>, 'name': 'addpolicy', 'url': 'horizon:project:firewalls:addpolicy', 'data_type_matched': <function data_type_matched at 0x531c848>, 'get_default_classes': <function get_default_classes at 0x531c5f0>, 'get_policy_target': <function get_policy_target at 0x531c8c0>, 'associate_with_table': <function associate_with_table at 0x530ec08>, '_allowed': <function _allowed at 0x531c758>, 'classes': ('ajax-modal', 'btn-addpolicy'), '__repr__': <function __repr__ at 0x531c230>, 'get_ajax_update_url': <function get_ajax_update_url at 0x531c410>, 'verbose_name': <django.utils.functional.__proxy__ object at 0x90b99d0>, '__doc__': 'A table action which is simply a link rather than a form POST.\n\n .. attribute:: name\n\n Required. The short name or "slug" representing this\n action. This name should not be changed at runtime.\n\n .. attribute:: verbose_name\n\n A string which will be rendered as the link text. (Required)\n\n .. attribute:: url\n\n A string or a callable which resolves to a url to be used as the link\n target. You must either define the ``url`` attribute or override\n the ``get_link_url`` method on the class.\n\n .. attribute:: allowed_data_types\n\n A list that contains the allowed data types of the action. If the\n datum\'s type is in this list, the action will be shown on the row\n for the datum.\n\n Defaults to be an empty list (``[]``). When set to empty, the action\n will accept any kind of data.\n '}
AddPolicyLink.classes = ('ajax-modal', 'btn-addpolicy')
AddPolicyLink.name = 'addpolicy'
AddPolicyLink.policy_rules = (('network', 'create_firewall_policy'),)
AddPolicyLink.url = 'horizon:project:firewalls:addpolicy'
AddPolicyLink.verbose_name = <django.utils.functional.__proxy__ object at 0x90b99d0>
class openstack_dashboard.dashboards.project.firewalls.tables.AddRuleLink(attrs=None, **kwargs)[source]

Bases: horizon.tables.actions.LinkAction

AddRuleLink.base_options = {'__module__': 'openstack_dashboard.dashboards.project.firewalls.tables', 'render': <function render at 0x531c398>, 'update': <function update at 0x531c668>, 'policy_rules': (('network', 'create_firewall_rule'),), 'get_link_url': <function get_link_url at 0x530ee60>, 'ajax': False, 'allowed': <function allowed at 0x531c578>, 'base_options': {'__module__': 'horizon.tables.actions', 'data_type_matched': <function data_type_matched at 0x531c848>, 'get_default_classes': <function get_default_classes at 0x531c5f0>, 'update': <function update at 0x531c668>, 'get_policy_target': <function get_policy_target at 0x531c8c0>, 'associate_with_table': <function associate_with_table at 0x531c1b8>, '_allowed': <function _allowed at 0x531c758>, '__repr__': <function __repr__ at 0x531c230>, 'allowed': <function allowed at 0x531c578>, 'get_default_attrs': <function get_default_attrs at 0x531c7d0>, 'base_options': {...}, '__doc__': 'Common base class for all ``Action`` classes.', '__init__': <function __init__ at 0x531c9b0>}, 'get_default_attrs': <function get_default_attrs at 0x531c7d0>, '__init__': <function __init__ at 0x531c500>, 'name': 'addrule', 'url': 'horizon:project:firewalls:addrule', 'data_type_matched': <function data_type_matched at 0x531c848>, 'get_default_classes': <function get_default_classes at 0x531c5f0>, 'get_policy_target': <function get_policy_target at 0x531c8c0>, 'associate_with_table': <function associate_with_table at 0x530ec08>, '_allowed': <function _allowed at 0x531c758>, 'classes': ('ajax-modal', 'btn-create'), '__repr__': <function __repr__ at 0x531c230>, 'get_ajax_update_url': <function get_ajax_update_url at 0x531c410>, 'verbose_name': <django.utils.functional.__proxy__ object at 0x6ba0890>, '__doc__': 'A table action which is simply a link rather than a form POST.\n\n .. attribute:: name\n\n Required. The short name or "slug" representing this\n action. This name should not be changed at runtime.\n\n .. attribute:: verbose_name\n\n A string which will be rendered as the link text. (Required)\n\n .. attribute:: url\n\n A string or a callable which resolves to a url to be used as the link\n target. You must either define the ``url`` attribute or override\n the ``get_link_url`` method on the class.\n\n .. attribute:: allowed_data_types\n\n A list that contains the allowed data types of the action. If the\n datum\'s type is in this list, the action will be shown on the row\n for the datum.\n\n Defaults to be an empty list (``[]``). When set to empty, the action\n will accept any kind of data.\n '}
AddRuleLink.classes = ('ajax-modal', 'btn-create')
AddRuleLink.name = 'addrule'
AddRuleLink.policy_rules = (('network', 'create_firewall_rule'),)
AddRuleLink.url = 'horizon:project:firewalls:addrule'
AddRuleLink.verbose_name = <django.utils.functional.__proxy__ object at 0x6ba0890>
class openstack_dashboard.dashboards.project.firewalls.tables.DeleteFirewallLink(**kwargs)[source]

Bases: horizon.tables.actions.DeleteAction

DeleteFirewallLink.action_past = <django.utils.functional.__proxy__ object at 0x90b9910>
DeleteFirewallLink.action_present = <django.utils.functional.__proxy__ object at 0x90b9650>
DeleteFirewallLink.base_options = {'__module__': 'openstack_dashboard.dashboards.project.firewalls.tables', 'handle': <function handle at 0x53115f0>, 'data_type_singular': <django.utils.functional.__proxy__ object at 0x90b95d0>, 'update': <function update at 0x5311848>, 'policy_rules': (('network', 'delete_firewall'),), 'get_success_url': <function get_success_url at 0x5311140>, 'get_param_name': <function get_param_name at 0x531c140>, 'allowed': <function allowed at 0x531c578>, 'base_options': {'__module__': 'horizon.tables.actions', 'data_type_matched': <function data_type_matched at 0x531c848>, 'get_default_classes': <function get_default_classes at 0x531c5f0>, 'update': <function update at 0x531c668>, 'get_policy_target': <function get_policy_target at 0x531c8c0>, 'associate_with_table': <function associate_with_table at 0x531c1b8>, '_allowed': <function _allowed at 0x531c758>, '__repr__': <function __repr__ at 0x531c230>, 'allowed': <function allowed at 0x531c578>, 'get_default_attrs': <function get_default_attrs at 0x531c7d0>, 'base_options': {...}, '__doc__': 'Common base class for all ``Action`` classes.', '__init__': <function __init__ at 0x531c9b0>}, '__init__': <function __init__ at 0x5311758>, 'name': 'deletefirewall', 'data_type_plural': <django.utils.functional.__proxy__ object at 0x90b9a10>, 'action_present': <django.utils.functional.__proxy__ object at 0x90b9650>, 'action_past': <django.utils.functional.__proxy__ object at 0x90b9910>, 'data_type_matched': <function data_type_matched at 0x531c848>, 'get_default_classes': <function get_default_classes at 0x5311578>, 'get_policy_target': <function get_policy_target at 0xbc24050>, 'associate_with_table': <function associate_with_table at 0x531c1b8>, '_allowed': <function _allowed at 0x53118c0>, '_get_action_name': <function _get_action_name at 0x5311a28>, '__repr__': <function __repr__ at 0x531c230>, 'action': <function action at 0x53116e0>, 'get_default_attrs': <function get_default_attrs at 0x531c7d0>, '__doc__': 'Doc missing.', 'delete': <function delete at 0x5311500>}
DeleteFirewallLink.data_type_plural = <django.utils.functional.__proxy__ object at 0x90b9a10>
DeleteFirewallLink.data_type_singular = <django.utils.functional.__proxy__ object at 0x90b95d0>
DeleteFirewallLink.get_policy_target(request, datum=None)[source]
DeleteFirewallLink.name = 'deletefirewall'
DeleteFirewallLink.policy_rules = (('network', 'delete_firewall'),)
class openstack_dashboard.dashboards.project.firewalls.tables.DeletePolicyLink(**kwargs)[source]

Bases: horizon.tables.actions.DeleteAction

DeletePolicyLink.action_past = <django.utils.functional.__proxy__ object at 0x90b9b10>
DeletePolicyLink.action_present = <django.utils.functional.__proxy__ object at 0x90b9d90>
DeletePolicyLink.base_options = {'__module__': 'openstack_dashboard.dashboards.project.firewalls.tables', 'handle': <function handle at 0x53115f0>, 'data_type_singular': <django.utils.functional.__proxy__ object at 0x90b9d50>, 'update': <function update at 0x5311848>, 'policy_rules': (('network', 'delete_firewall_policy'),), 'get_success_url': <function get_success_url at 0x5311140>, 'get_param_name': <function get_param_name at 0x531c140>, 'allowed': <function allowed at 0x531c578>, 'base_options': {'__module__': 'horizon.tables.actions', 'data_type_matched': <function data_type_matched at 0x531c848>, 'get_default_classes': <function get_default_classes at 0x531c5f0>, 'update': <function update at 0x531c668>, 'get_policy_target': <function get_policy_target at 0x531c8c0>, 'associate_with_table': <function associate_with_table at 0x531c1b8>, '_allowed': <function _allowed at 0x531c758>, '__repr__': <function __repr__ at 0x531c230>, 'allowed': <function allowed at 0x531c578>, 'get_default_attrs': <function get_default_attrs at 0x531c7d0>, 'base_options': {...}, '__doc__': 'Common base class for all ``Action`` classes.', '__init__': <function __init__ at 0x531c9b0>}, '__init__': <function __init__ at 0x5311758>, 'name': 'deletepolicy', 'data_type_plural': <django.utils.functional.__proxy__ object at 0x90b9090>, 'action_present': <django.utils.functional.__proxy__ object at 0x90b9d90>, 'action_past': <django.utils.functional.__proxy__ object at 0x90b9b10>, 'data_type_matched': <function data_type_matched at 0x531c848>, 'get_default_classes': <function get_default_classes at 0x5311578>, 'get_policy_target': <function get_policy_target at 0xbc240c8>, 'associate_with_table': <function associate_with_table at 0x531c1b8>, '_allowed': <function _allowed at 0x53118c0>, '_get_action_name': <function _get_action_name at 0x5311a28>, '__repr__': <function __repr__ at 0x531c230>, 'action': <function action at 0x53116e0>, 'get_default_attrs': <function get_default_attrs at 0x531c7d0>, '__doc__': 'Doc missing.', 'delete': <function delete at 0x5311500>}
DeletePolicyLink.data_type_plural = <django.utils.functional.__proxy__ object at 0x90b9090>
DeletePolicyLink.data_type_singular = <django.utils.functional.__proxy__ object at 0x90b9d50>
DeletePolicyLink.get_policy_target(request, datum=None)[source]
DeletePolicyLink.name = 'deletepolicy'
DeletePolicyLink.policy_rules = (('network', 'delete_firewall_policy'),)
class openstack_dashboard.dashboards.project.firewalls.tables.DeleteRuleLink(**kwargs)[source]

Bases: horizon.tables.actions.DeleteAction

DeleteRuleLink.action_past = <django.utils.functional.__proxy__ object at 0x90b94d0>
DeleteRuleLink.action_present = <django.utils.functional.__proxy__ object at 0x90b9450>
DeleteRuleLink.base_options = {'__module__': 'openstack_dashboard.dashboards.project.firewalls.tables', 'handle': <function handle at 0x53115f0>, 'data_type_singular': <django.utils.functional.__proxy__ object at 0x90b90d0>, 'update': <function update at 0x5311848>, 'policy_rules': (('network', 'delete_firewall_rule'),), 'get_success_url': <function get_success_url at 0x5311140>, 'get_param_name': <function get_param_name at 0x531c140>, 'allowed': <function allowed at 0x531c578>, 'base_options': {'__module__': 'horizon.tables.actions', 'data_type_matched': <function data_type_matched at 0x531c848>, 'get_default_classes': <function get_default_classes at 0x531c5f0>, 'update': <function update at 0x531c668>, 'get_policy_target': <function get_policy_target at 0x531c8c0>, 'associate_with_table': <function associate_with_table at 0x531c1b8>, '_allowed': <function _allowed at 0x531c758>, '__repr__': <function __repr__ at 0x531c230>, 'allowed': <function allowed at 0x531c578>, 'get_default_attrs': <function get_default_attrs at 0x531c7d0>, 'base_options': {...}, '__doc__': 'Common base class for all ``Action`` classes.', '__init__': <function __init__ at 0x531c9b0>}, '__init__': <function __init__ at 0x5311758>, 'name': 'deleterule', 'data_type_plural': <django.utils.functional.__proxy__ object at 0x90b9dd0>, 'action_present': <django.utils.functional.__proxy__ object at 0x90b9450>, 'action_past': <django.utils.functional.__proxy__ object at 0x90b94d0>, 'data_type_matched': <function data_type_matched at 0x531c848>, 'get_default_classes': <function get_default_classes at 0x5311578>, 'get_policy_target': <function get_policy_target at 0xbc24140>, 'associate_with_table': <function associate_with_table at 0x531c1b8>, '_allowed': <function _allowed at 0x53118c0>, '_get_action_name': <function _get_action_name at 0x5311a28>, '__repr__': <function __repr__ at 0x531c230>, 'action': <function action at 0x53116e0>, 'get_default_attrs': <function get_default_attrs at 0x531c7d0>, '__doc__': 'Doc missing.', 'delete': <function delete at 0x5311500>}
DeleteRuleLink.data_type_plural = <django.utils.functional.__proxy__ object at 0x90b9dd0>
DeleteRuleLink.data_type_singular = <django.utils.functional.__proxy__ object at 0x90b90d0>
DeleteRuleLink.get_policy_target(request, datum=None)[source]
DeleteRuleLink.name = 'deleterule'
DeleteRuleLink.policy_rules = (('network', 'delete_firewall_rule'),)
class openstack_dashboard.dashboards.project.firewalls.tables.FirewallsTable(request, data=None, needs_form_wrapper=None, **kwargs)[source]

Bases: horizon.tables.base.DataTable

class FirewallsTable.Meta[source]
FirewallsTable.Meta.name = 'firewallstable'
FirewallsTable.Meta.row_actions = (<class 'openstack_dashboard.dashboards.project.firewalls.tables.UpdateFirewallLink'>, <class 'openstack_dashboard.dashboards.project.firewalls.tables.DeleteFirewallLink'>)
FirewallsTable.Meta.table_actions = (<class 'openstack_dashboard.dashboards.project.firewalls.tables.AddFirewallLink'>, <class 'openstack_dashboard.dashboards.project.firewalls.tables.DeleteFirewallLink'>)
FirewallsTable.Meta.verbose_name = <django.utils.functional.__proxy__ object at 0x9bb9050>
FirewallsTable.base_actions = {'addfirewall': <AddFirewallLink: addfirewall>, 'deletefirewall': <DeleteFirewallLink: deletefirewall>, 'updatefirewall': <UpdateFirewallLink: updatefirewall>}
FirewallsTable.base_columns = {'name': <Column: name>, 'firewall_policy_id': <Column: firewall_policy_id>, 'status': <Column: status>}
class openstack_dashboard.dashboards.project.firewalls.tables.InsertRuleToPolicyLink(attrs=None, **kwargs)[source]

Bases: horizon.tables.actions.LinkAction

InsertRuleToPolicyLink.base_options = {'__module__': 'openstack_dashboard.dashboards.project.firewalls.tables', 'render': <function render at 0x531c398>, 'update': <function update at 0x531c668>, 'policy_rules': (('network', 'get_firewall_policy'), ('network', 'insert_rule')), 'get_link_url': <function get_link_url at 0xbc247d0>, 'ajax': False, 'allowed': <function allowed at 0x531c578>, 'base_options': {'__module__': 'horizon.tables.actions', 'data_type_matched': <function data_type_matched at 0x531c848>, 'get_default_classes': <function get_default_classes at 0x531c5f0>, 'update': <function update at 0x531c668>, 'get_policy_target': <function get_policy_target at 0x531c8c0>, 'associate_with_table': <function associate_with_table at 0x531c1b8>, '_allowed': <function _allowed at 0x531c758>, '__repr__': <function __repr__ at 0x531c230>, 'allowed': <function allowed at 0x531c578>, 'get_default_attrs': <function get_default_attrs at 0x531c7d0>, 'base_options': {...}, '__doc__': 'Common base class for all ``Action`` classes.', '__init__': <function __init__ at 0x531c9b0>}, 'get_default_attrs': <function get_default_attrs at 0x531c7d0>, '__init__': <function __init__ at 0x531c500>, 'name': 'insertrule', 'data_type_matched': <function data_type_matched at 0x531c848>, 'get_default_classes': <function get_default_classes at 0x531c5f0>, 'get_policy_target': <function get_policy_target at 0xbc24758>, 'associate_with_table': <function associate_with_table at 0x530ec08>, '_allowed': <function _allowed at 0x531c758>, 'classes': ('ajax-modal', 'btn-update'), '__repr__': <function __repr__ at 0x531c230>, 'get_ajax_update_url': <function get_ajax_update_url at 0x531c410>, 'verbose_name': <django.utils.functional.__proxy__ object at 0x6b87550>, '__doc__': 'A table action which is simply a link rather than a form POST.\n\n .. attribute:: name\n\n Required. The short name or "slug" representing this\n action. This name should not be changed at runtime.\n\n .. attribute:: verbose_name\n\n A string which will be rendered as the link text. (Required)\n\n .. attribute:: url\n\n A string or a callable which resolves to a url to be used as the link\n target. You must either define the ``url`` attribute or override\n the ``get_link_url`` method on the class.\n\n .. attribute:: allowed_data_types\n\n A list that contains the allowed data types of the action. If the\n datum\'s type is in this list, the action will be shown on the row\n for the datum.\n\n Defaults to be an empty list (``[]``). When set to empty, the action\n will accept any kind of data.\n '}
InsertRuleToPolicyLink.classes = ('ajax-modal', 'btn-update')
InsertRuleToPolicyLink.get_link_url(policy)[source]
InsertRuleToPolicyLink.get_policy_target(request, datum=None)[source]
InsertRuleToPolicyLink.name = 'insertrule'
InsertRuleToPolicyLink.policy_rules = (('network', 'get_firewall_policy'), ('network', 'insert_rule'))
InsertRuleToPolicyLink.verbose_name = <django.utils.functional.__proxy__ object at 0x6b87550>
class openstack_dashboard.dashboards.project.firewalls.tables.PoliciesTable(request, data=None, needs_form_wrapper=None, **kwargs)[source]

Bases: horizon.tables.base.DataTable

class PoliciesTable.Meta[source]
PoliciesTable.Meta.name = 'policiestable'
PoliciesTable.Meta.row_actions = (<class 'openstack_dashboard.dashboards.project.firewalls.tables.UpdatePolicyLink'>, <class 'openstack_dashboard.dashboards.project.firewalls.tables.InsertRuleToPolicyLink'>, <class 'openstack_dashboard.dashboards.project.firewalls.tables.RemoveRuleFromPolicyLink'>, <class 'openstack_dashboard.dashboards.project.firewalls.tables.DeletePolicyLink'>)
PoliciesTable.Meta.table_actions = (<class 'openstack_dashboard.dashboards.project.firewalls.tables.AddPolicyLink'>, <class 'openstack_dashboard.dashboards.project.firewalls.tables.DeletePolicyLink'>)
PoliciesTable.Meta.verbose_name = <django.utils.functional.__proxy__ object at 0x8b9bb50>
PoliciesTable.base_actions = {'addpolicy': <AddPolicyLink: addpolicy>, 'deletepolicy': <DeletePolicyLink: deletepolicy>, 'insertrule': <InsertRuleToPolicyLink: insertrule>, 'removerule': <RemoveRuleFromPolicyLink: removerule>, 'updatepolicy': <UpdatePolicyLink: updatepolicy>}
PoliciesTable.base_columns = {'name': <Column: name>, 'firewall_rules': <Column: firewall_rules>, 'audited': <Column: audited>}
class openstack_dashboard.dashboards.project.firewalls.tables.RemoveRuleFromPolicyLink(attrs=None, **kwargs)[source]

Bases: horizon.tables.actions.LinkAction

RemoveRuleFromPolicyLink.base_options = {'__module__': 'openstack_dashboard.dashboards.project.firewalls.tables', 'render': <function render at 0x531c398>, 'update': <function update at 0x531c668>, 'policy_rules': (('network', 'get_firewall_policy'), ('network', 'remove_rule')), 'get_link_url': <function get_link_url at 0xbc248c0>, 'ajax': False, 'allowed': <function allowed at 0x531c578>, 'base_options': {'__module__': 'horizon.tables.actions', 'data_type_matched': <function data_type_matched at 0x531c848>, 'get_default_classes': <function get_default_classes at 0x531c5f0>, 'update': <function update at 0x531c668>, 'get_policy_target': <function get_policy_target at 0x531c8c0>, 'associate_with_table': <function associate_with_table at 0x531c1b8>, '_allowed': <function _allowed at 0x531c758>, '__repr__': <function __repr__ at 0x531c230>, 'allowed': <function allowed at 0x531c578>, 'get_default_attrs': <function get_default_attrs at 0x531c7d0>, 'base_options': {...}, '__doc__': 'Common base class for all ``Action`` classes.', '__init__': <function __init__ at 0x531c9b0>}, 'get_default_attrs': <function get_default_attrs at 0x531c7d0>, '__init__': <function __init__ at 0x531c500>, 'name': 'removerule', 'data_type_matched': <function data_type_matched at 0x531c848>, 'get_default_classes': <function get_default_classes at 0x531c5f0>, 'get_policy_target': <function get_policy_target at 0xbc24848>, 'associate_with_table': <function associate_with_table at 0x530ec08>, '_allowed': <function _allowed at 0x531c758>, 'classes': ('ajax-modal', 'btn-danger'), '__repr__': <function __repr__ at 0x531c230>, 'get_ajax_update_url': <function get_ajax_update_url at 0x531c410>, 'verbose_name': <django.utils.functional.__proxy__ object at 0xae6ff10>, '__doc__': 'A table action which is simply a link rather than a form POST.\n\n .. attribute:: name\n\n Required. The short name or "slug" representing this\n action. This name should not be changed at runtime.\n\n .. attribute:: verbose_name\n\n A string which will be rendered as the link text. (Required)\n\n .. attribute:: url\n\n A string or a callable which resolves to a url to be used as the link\n target. You must either define the ``url`` attribute or override\n the ``get_link_url`` method on the class.\n\n .. attribute:: allowed_data_types\n\n A list that contains the allowed data types of the action. If the\n datum\'s type is in this list, the action will be shown on the row\n for the datum.\n\n Defaults to be an empty list (``[]``). When set to empty, the action\n will accept any kind of data.\n '}
RemoveRuleFromPolicyLink.classes = ('ajax-modal', 'btn-danger')
RemoveRuleFromPolicyLink.get_link_url(policy)[source]
RemoveRuleFromPolicyLink.get_policy_target(request, datum=None)[source]
RemoveRuleFromPolicyLink.name = 'removerule'
RemoveRuleFromPolicyLink.policy_rules = (('network', 'get_firewall_policy'), ('network', 'remove_rule'))
RemoveRuleFromPolicyLink.verbose_name = <django.utils.functional.__proxy__ object at 0xae6ff10>
class openstack_dashboard.dashboards.project.firewalls.tables.RulesTable(request, data=None, needs_form_wrapper=None, **kwargs)[source]

Bases: horizon.tables.base.DataTable

class RulesTable.Meta[source]
RulesTable.Meta.name = 'rulestable'
RulesTable.Meta.row_actions = (<class 'openstack_dashboard.dashboards.project.firewalls.tables.UpdateRuleLink'>, <class 'openstack_dashboard.dashboards.project.firewalls.tables.DeleteRuleLink'>)
RulesTable.Meta.table_actions = (<class 'openstack_dashboard.dashboards.project.firewalls.tables.AddRuleLink'>, <class 'openstack_dashboard.dashboards.project.firewalls.tables.DeleteRuleLink'>)
RulesTable.Meta.verbose_name = <django.utils.functional.__proxy__ object at 0x8b9b790>
RulesTable.base_actions = {'addrule': <AddRuleLink: addrule>, 'deleterule': <DeleteRuleLink: deleterule>, 'updaterule': <UpdateRuleLink: updaterule>}
RulesTable.base_columns = {'name': <Column: name>, 'protocol': <Column: protocol>, 'source_ip_address': <Column: source_ip_address>, 'source_port': <Column: source_port>, 'destination_ip_address': <Column: destination_ip_address>, 'destination_port': <Column: destination_port>, 'action': <Column: action>, 'enabled': <Column: enabled>, 'firewall_policy_id': <Column: firewall_policy_id>}
class openstack_dashboard.dashboards.project.firewalls.tables.UpdateFirewallLink(attrs=None, **kwargs)[source]

Bases: horizon.tables.actions.LinkAction

UpdateFirewallLink.base_options = {'__module__': 'openstack_dashboard.dashboards.project.firewalls.tables', 'render': <function render at 0x531c398>, 'update': <function update at 0x531c668>, 'policy_rules': (('network', 'update_firewall'),), 'get_link_url': <function get_link_url at 0xbc246e0>, 'ajax': False, 'allowed': <function allowed at 0x531c578>, 'base_options': {'__module__': 'horizon.tables.actions', 'data_type_matched': <function data_type_matched at 0x531c848>, 'get_default_classes': <function get_default_classes at 0x531c5f0>, 'update': <function update at 0x531c668>, 'get_policy_target': <function get_policy_target at 0x531c8c0>, 'associate_with_table': <function associate_with_table at 0x531c1b8>, '_allowed': <function _allowed at 0x531c758>, '__repr__': <function __repr__ at 0x531c230>, 'allowed': <function allowed at 0x531c578>, 'get_default_attrs': <function get_default_attrs at 0x531c7d0>, 'base_options': {...}, '__doc__': 'Common base class for all ``Action`` classes.', '__init__': <function __init__ at 0x531c9b0>}, 'get_default_attrs': <function get_default_attrs at 0x531c7d0>, '__init__': <function __init__ at 0x531c500>, 'name': 'updatefirewall', 'data_type_matched': <function data_type_matched at 0x531c848>, 'get_default_classes': <function get_default_classes at 0x531c5f0>, 'get_policy_target': <function get_policy_target at 0xbc24668>, 'associate_with_table': <function associate_with_table at 0x530ec08>, '_allowed': <function _allowed at 0x531c758>, 'classes': ('ajax-modal', 'btn-update'), '__repr__': <function __repr__ at 0x531c230>, 'get_ajax_update_url': <function get_ajax_update_url at 0x531c410>, 'verbose_name': <django.utils.functional.__proxy__ object at 0x90b98d0>, '__doc__': 'A table action which is simply a link rather than a form POST.\n\n .. attribute:: name\n\n Required. The short name or "slug" representing this\n action. This name should not be changed at runtime.\n\n .. attribute:: verbose_name\n\n A string which will be rendered as the link text. (Required)\n\n .. attribute:: url\n\n A string or a callable which resolves to a url to be used as the link\n target. You must either define the ``url`` attribute or override\n the ``get_link_url`` method on the class.\n\n .. attribute:: allowed_data_types\n\n A list that contains the allowed data types of the action. If the\n datum\'s type is in this list, the action will be shown on the row\n for the datum.\n\n Defaults to be an empty list (``[]``). When set to empty, the action\n will accept any kind of data.\n '}
UpdateFirewallLink.classes = ('ajax-modal', 'btn-update')
UpdateFirewallLink.get_link_url(firewall)[source]
UpdateFirewallLink.get_policy_target(request, datum=None)[source]
UpdateFirewallLink.name = 'updatefirewall'
UpdateFirewallLink.policy_rules = (('network', 'update_firewall'),)
UpdateFirewallLink.verbose_name = <django.utils.functional.__proxy__ object at 0x90b98d0>
class openstack_dashboard.dashboards.project.firewalls.tables.UpdatePolicyLink(attrs=None, **kwargs)[source]

Bases: horizon.tables.actions.LinkAction

UpdatePolicyLink.base_options = {'__module__': 'openstack_dashboard.dashboards.project.firewalls.tables', 'render': <function render at 0x531c398>, 'update': <function update at 0x531c668>, 'policy_rules': (('network', 'update_firewall_policy'),), 'get_link_url': <function get_link_url at 0xbc245f0>, 'ajax': False, 'allowed': <function allowed at 0x531c578>, 'base_options': {'__module__': 'horizon.tables.actions', 'data_type_matched': <function data_type_matched at 0x531c848>, 'get_default_classes': <function get_default_classes at 0x531c5f0>, 'update': <function update at 0x531c668>, 'get_policy_target': <function get_policy_target at 0x531c8c0>, 'associate_with_table': <function associate_with_table at 0x531c1b8>, '_allowed': <function _allowed at 0x531c758>, '__repr__': <function __repr__ at 0x531c230>, 'allowed': <function allowed at 0x531c578>, 'get_default_attrs': <function get_default_attrs at 0x531c7d0>, 'base_options': {...}, '__doc__': 'Common base class for all ``Action`` classes.', '__init__': <function __init__ at 0x531c9b0>}, 'get_default_attrs': <function get_default_attrs at 0x531c7d0>, '__init__': <function __init__ at 0x531c500>, 'name': 'updatepolicy', 'data_type_matched': <function data_type_matched at 0x531c848>, 'get_default_classes': <function get_default_classes at 0x531c5f0>, 'get_policy_target': <function get_policy_target at 0xbc24578>, 'associate_with_table': <function associate_with_table at 0x530ec08>, '_allowed': <function _allowed at 0x531c758>, 'classes': ('ajax-modal', 'btn-update'), '__repr__': <function __repr__ at 0x531c230>, 'get_ajax_update_url': <function get_ajax_update_url at 0x531c410>, 'verbose_name': <django.utils.functional.__proxy__ object at 0x90b9050>, '__doc__': 'A table action which is simply a link rather than a form POST.\n\n .. attribute:: name\n\n Required. The short name or "slug" representing this\n action. This name should not be changed at runtime.\n\n .. attribute:: verbose_name\n\n A string which will be rendered as the link text. (Required)\n\n .. attribute:: url\n\n A string or a callable which resolves to a url to be used as the link\n target. You must either define the ``url`` attribute or override\n the ``get_link_url`` method on the class.\n\n .. attribute:: allowed_data_types\n\n A list that contains the allowed data types of the action. If the\n datum\'s type is in this list, the action will be shown on the row\n for the datum.\n\n Defaults to be an empty list (``[]``). When set to empty, the action\n will accept any kind of data.\n '}
UpdatePolicyLink.classes = ('ajax-modal', 'btn-update')
UpdatePolicyLink.get_link_url(policy)[source]
UpdatePolicyLink.get_policy_target(request, datum=None)[source]
UpdatePolicyLink.name = 'updatepolicy'
UpdatePolicyLink.policy_rules = (('network', 'update_firewall_policy'),)
UpdatePolicyLink.verbose_name = <django.utils.functional.__proxy__ object at 0x90b9050>
class openstack_dashboard.dashboards.project.firewalls.tables.UpdateRuleLink(attrs=None, **kwargs)[source]

Bases: horizon.tables.actions.LinkAction

UpdateRuleLink.base_options = {'__module__': 'openstack_dashboard.dashboards.project.firewalls.tables', 'render': <function render at 0x531c398>, 'update': <function update at 0x531c668>, 'policy_rules': (('network', 'update_firewall_rule'),), 'get_link_url': <function get_link_url at 0xbc24500>, 'ajax': False, 'allowed': <function allowed at 0x531c578>, 'base_options': {'__module__': 'horizon.tables.actions', 'data_type_matched': <function data_type_matched at 0x531c848>, 'get_default_classes': <function get_default_classes at 0x531c5f0>, 'update': <function update at 0x531c668>, 'get_policy_target': <function get_policy_target at 0x531c8c0>, 'associate_with_table': <function associate_with_table at 0x531c1b8>, '_allowed': <function _allowed at 0x531c758>, '__repr__': <function __repr__ at 0x531c230>, 'allowed': <function allowed at 0x531c578>, 'get_default_attrs': <function get_default_attrs at 0x531c7d0>, 'base_options': {...}, '__doc__': 'Common base class for all ``Action`` classes.', '__init__': <function __init__ at 0x531c9b0>}, 'get_default_attrs': <function get_default_attrs at 0x531c7d0>, '__init__': <function __init__ at 0x531c500>, 'name': 'updaterule', 'data_type_matched': <function data_type_matched at 0x531c848>, 'get_default_classes': <function get_default_classes at 0x531c5f0>, 'get_policy_target': <function get_policy_target at 0xbc24488>, 'associate_with_table': <function associate_with_table at 0x530ec08>, '_allowed': <function _allowed at 0x531c758>, 'classes': ('ajax-modal', 'btn-update'), '__repr__': <function __repr__ at 0x531c230>, 'get_ajax_update_url': <function get_ajax_update_url at 0x531c410>, 'verbose_name': <django.utils.functional.__proxy__ object at 0x90b9110>, '__doc__': 'A table action which is simply a link rather than a form POST.\n\n .. attribute:: name\n\n Required. The short name or "slug" representing this\n action. This name should not be changed at runtime.\n\n .. attribute:: verbose_name\n\n A string which will be rendered as the link text. (Required)\n\n .. attribute:: url\n\n A string or a callable which resolves to a url to be used as the link\n target. You must either define the ``url`` attribute or override\n the ``get_link_url`` method on the class.\n\n .. attribute:: allowed_data_types\n\n A list that contains the allowed data types of the action. If the\n datum\'s type is in this list, the action will be shown on the row\n for the datum.\n\n Defaults to be an empty list (``[]``). When set to empty, the action\n will accept any kind of data.\n '}
UpdateRuleLink.classes = ('ajax-modal', 'btn-update')
UpdateRuleLink.get_link_url(rule)[source]
UpdateRuleLink.get_policy_target(request, datum=None)[source]
UpdateRuleLink.name = 'updaterule'
UpdateRuleLink.policy_rules = (('network', 'update_firewall_rule'),)
UpdateRuleLink.verbose_name = <django.utils.functional.__proxy__ object at 0x90b9110>
openstack_dashboard.dashboards.project.firewalls.tables.get_policy_link(datum)[source]
openstack_dashboard.dashboards.project.firewalls.tables.get_policy_name(datum)[source]
openstack_dashboard.dashboards.project.firewalls.tables.get_rules_name(datum)[source]

Previous topic

The openstack_dashboard.dashboards.project.stacks Module

Next topic

The openstack_dashboard.dashboards.project.firewalls.tests Module

This Page