The rsd_lib.resources.v2_1.ethernet_switch.ethernet_switch_port
Module¶
- class rsd_lib.resources.v2_1.ethernet_switch.ethernet_switch_port.EthernetSwitchPort(connector, path='', redfish_version=None, registries=None, reader=None, json_doc=None, root=None)¶
Bases:
ResourceBase
- administrative_state = <sushy.resources.base.Field object>¶
Port link state forced by user.
- autosense = <sushy.resources.base.Field object>¶
Indicates if the speed and duplex is automatically configured by the NIC
- frame_size = <sushy.resources.base.Field object>¶
MAC frame size in bytes
- full_duplex = <sushy.resources.base.Field object>¶
Indicates if port is in Full Duplex mode or not
- ipv4_addresses = <rsd_lib.resources.v2_1.common.ip_addresses.IPv4AddressCollectionField object>¶
Array of following IPv4 address
- ipv6_addresses = <rsd_lib.resources.v2_1.common.ip_addresses.IPv6AddressCollectionField object>¶
Array of following IPv6 address
- link_speed_mbps = <sushy.resources.base.Field object>¶
Port speed
- link_type = <sushy.resources.base.Field object>¶
Type of port link
- links = <rsd_lib.resources.v2_1.ethernet_switch.ethernet_switch_port.LinksField object>¶
- mac_address = <sushy.resources.base.Field object>¶
MAC address of port.
- neighbor_info = <rsd_lib.resources.v2_1.ethernet_switch.ethernet_switch_port.NeighborInfoField object>¶
For Upstream port type this property provide information about neighbor switch (and switch port if available) connected to this port
- neighbor_mac = <sushy.resources.base.Field object>¶
For Downstream port type this property provide MAC address of NIC connected to this port.
- operational_state = <sushy.resources.base.Field object>¶
Port link operational state
- port_class = <sushy.resources.base.Field object>¶
Port class
- port_id = <sushy.resources.base.Field object>¶
Switch port unique identifier.
- port_mode = <sushy.resources.base.Field object>¶
Port working mode. The value shall correspond to the port class (especially to the logical port definition).
- port_type = <sushy.resources.base.Field object>¶
PortType
- property static_macs¶
Property to provide reference to EthernetSwitchStaticMACCollection
It is calculated once when it is queried for the first time. On refresh, this property is reset.
- status = <rsd_lib.base.StatusField object>¶
This indicates the known state of the resource, such as if it is enabled.
- update(data=None)¶
Update a new Port
- Parameters:
data – JSON for Port
- property vlans¶
Property to provide reference to VLanNetworkInterfaceCollection
It is calculated once when it is queried for the first time. On refresh, this property is reset.
- class rsd_lib.resources.v2_1.ethernet_switch.ethernet_switch_port.EthernetSwitchPortCollection(connector, path, redfish_version=None, registries=None, root=None)¶
Bases:
ResourceCollectionBase
- create_port(port_req)¶
Create a new Port
- Parameters:
Port – JSON for Port
- Returns:
The location of the Port
- class rsd_lib.resources.v2_1.ethernet_switch.ethernet_switch_port.LinksField(*args, **kwargs)¶
Bases:
CompositeField
- active_acls = <sushy.resources.base.Field object>¶
- member_of_port = <sushy.resources.base.Field object>¶
- oem = <rsd_lib.resources.v2_1.ethernet_switch.ethernet_switch_port.LinksOemField object>¶
Oem specific properties.
- port_members = <sushy.resources.base.Field object>¶
- primary_vlan = <sushy.resources.base.Field object>¶
- switch = <sushy.resources.base.Field object>¶
- class rsd_lib.resources.v2_1.ethernet_switch.ethernet_switch_port.LinksIntelRackScaleField(*args, **kwargs)¶
Bases:
CompositeField
- neighbor_interface = <sushy.resources.base.Field object>¶