The rsd_lib.resources.v2_1.ethernet_switch.ethernet_switch_acl_rule
Module¶
-
class
rsd_lib.resources.v2_1.ethernet_switch.ethernet_switch_acl_rule.
ConditionTypeField
(*args, **kwargs)¶ Bases:
sushy.resources.base.CompositeField
-
ip_destination
= <rsd_lib.resources.v2_1.ethernet_switch.ethernet_switch_acl_rule.IPConditionTypeField object>¶
-
ip_source
= <rsd_lib.resources.v2_1.ethernet_switch.ethernet_switch_acl_rule.IPConditionTypeField object>¶
-
l4_destination_port
= <rsd_lib.resources.v2_1.ethernet_switch.ethernet_switch_acl_rule.PortConditionTypeField object>¶
-
l4_protocol
= <sushy.resources.base.Field object>¶
-
l4_source_port
= <rsd_lib.resources.v2_1.ethernet_switch.ethernet_switch_acl_rule.PortConditionTypeField object>¶
-
mac_destination
= <rsd_lib.resources.v2_1.ethernet_switch.ethernet_switch_acl_rule.MACConditionTypeField object>¶
-
mac_source
= <rsd_lib.resources.v2_1.ethernet_switch.ethernet_switch_acl_rule.MACConditionTypeField object>¶
-
vlan_id
= <rsd_lib.resources.v2_1.ethernet_switch.ethernet_switch_acl_rule.VlanIdConditionTypeField object>¶
-
-
class
rsd_lib.resources.v2_1.ethernet_switch.ethernet_switch_acl_rule.
EthernetSwitchACLRule
(connector, path='', redfish_version=None, registries=None, reader=None, json_doc=None, root=None)¶ Bases:
rsd_lib.base.ResourceBase
EthernetSwitchACLRule resource class
A Ethernet Switch ACL Rule represents Access Control List rule for switch.
-
action
= <sushy.resources.base.Field object>¶ Action that will be executed when rule condition will be met.s
-
condition
= <rsd_lib.resources.v2_1.ethernet_switch.ethernet_switch_acl_rule.ConditionTypeField object>¶ Property contain set of conditions that should be met to trigger Rule action.
-
property
forward_mirror_interface
¶ Property to provide reference to EthernetSwitchPort instance
It is calculated once when it is queried for the first time. On refresh, this property is reset.
-
property
mirror_port_region
¶ Property to provide a list of EthernetSwitchPort instance
It is calculated once when it is queried for the first time. On refresh, this property is reset.
-
mirror_type
= <sushy.resources.base.Field object>¶ Type of mirroring that should be use for Mirror action.
-
rule_id
= <sushy.resources.base.Field object>¶ This is ACL rule ID which determine rule priority.
-
update
(data=None)¶ Update a new ACL rule
- Parameters
data – JSON for acl_rule
-
-
class
rsd_lib.resources.v2_1.ethernet_switch.ethernet_switch_acl_rule.
EthernetSwitchACLRuleCollection
(connector, path, redfish_version=None, registries=None, root=None)¶ Bases:
rsd_lib.base.ResourceCollectionBase
-
create_acl_rule
(acl_rule_req)¶ Create a new ACL rule
- Parameters
acl_rule – JSON for acl_rule
- Returns
The location of the acl rule
-
-
class
rsd_lib.resources.v2_1.ethernet_switch.ethernet_switch_acl_rule.
IPConditionTypeField
(*args, **kwargs)¶ Bases:
sushy.resources.base.CompositeField
-
ipv4_address
= <sushy.resources.base.Field object>¶
-
mask
= <sushy.resources.base.Field object>¶
-
-
class
rsd_lib.resources.v2_1.ethernet_switch.ethernet_switch_acl_rule.
MACConditionTypeField
(*args, **kwargs)¶ Bases:
sushy.resources.base.CompositeField
-
mac_address
= <sushy.resources.base.Field object>¶
-
mask
= <sushy.resources.base.Field object>¶
-