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:
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, root=None)¶
Bases:
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:
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, root=None)¶
Bases:
ResourceCollectionBase
- create_acl()¶
Create a new ACL
- Returns:
The location of the acl rule