The rsd_lib.resources.v2_1.ethernet_switch.ethernet_switch_static_mac
Module¶
- class rsd_lib.resources.v2_1.ethernet_switch.ethernet_switch_static_mac.EthernetSwitchStaticMAC(connector, path='', redfish_version=None, registries=None, reader=None, json_doc=None)¶
Bases:
rsd_lib.base.ResourceBase
EthernetSwitchStaticMAC resource class
A Ethernet Switch ACL represents Access Control List for switch.
- mac_address = <sushy.resources.base.Field object>¶
The static mac address
- update(mac_address, vlan_id=None)¶
Update attributes of static MAC
- Parameters
mac_address – MAC address that should be forwarded to this port
vlan_id – If specified, defines which packets tagged with specific VLANId should be forwarded to this port
- vlan_id = <sushy.resources.base.Field object>¶
The static mac vlan id
- class rsd_lib.resources.v2_1.ethernet_switch.ethernet_switch_static_mac.EthernetSwitchStaticMACCollection(connector, path, redfish_version=None, registries=None)¶
Bases:
rsd_lib.base.ResourceCollectionBase
- create_static_mac(mac_address, vlan_id=None)¶
Create new static MAC entry
- Parameters
mac_address – MAC address that should be forwarded to this port
vlan_id – If specified, defines which packets tagged with specific VLANId should be forwarded to this port
- Returns
The location of new static MAC entry