The rsd_lib.resources.v2_1.ethernet_switch.ethernet_switch_acl
Module¶
- class rsd_lib.resources.v2_1.ethernet_switch.ethernet_switch_acl.BindActionField(*args, **kwargs)¶
Bases:
sushy.resources.common.ActionField
- allowed_values = <sushy.resources.base.Field object>¶
- class rsd_lib.resources.v2_1.ethernet_switch.ethernet_switch_acl.EthernetSwitchACL(connector, path='', redfish_version=None, registries=None, reader=None, json_doc=None)¶
Bases:
rsd_lib.base.ResourceBase
EthernetSwitchACL resource class
A Ethernet Switch ACL represents Access Control List for switch.
- bind_port(port)¶
Bind port from this switch ACL
- Parameters
port – Link to port to bind.
- Raises
InvalidParameterValueError
- get_allowed_bind_ports()¶
Get the allowed ports for bind action.
- Returns
A set with the allowed bind ports.
- get_allowed_unbind_ports()¶
Get the allowed ports for unbind action.
- Returns
A set with the allowed unbind ports.
- links = <rsd_lib.resources.v2_1.ethernet_switch.ethernet_switch_acl.LinksField object>¶
- property rules¶
Property to provide reference to EthernetSwitchACLRuleCollection instance
It is calculated once when it is queried for the first time. On refresh, this property is reset.
- unbind_port(port)¶
Unbind port from this switch ACL
- Parameters
port – Link to port to unbind.
- Raises
InvalidParameterValueError
- class rsd_lib.resources.v2_1.ethernet_switch.ethernet_switch_acl.EthernetSwitchACLActionsField(*args, **kwargs)¶
Bases:
sushy.resources.base.CompositeField
- bind = <rsd_lib.resources.v2_1.ethernet_switch.ethernet_switch_acl.BindActionField object>¶
- unbind = <rsd_lib.resources.v2_1.ethernet_switch.ethernet_switch_acl.UnbindActionField object>¶
- class rsd_lib.resources.v2_1.ethernet_switch.ethernet_switch_acl.EthernetSwitchACLCollection(connector, path, redfish_version=None, registries=None)¶
Bases:
rsd_lib.base.ResourceCollectionBase
- create_acl()¶
Create a new ACL
- Returns
The location of the acl rule