The sushy.resources.system.ethernet_interface Module

The sushy.resources.system.ethernet_interface Module

class sushy.resources.system.ethernet_interface.EthernetInterface(connector, path='', redfish_version=None)

Bases: sushy.resources.base.ResourceBase

This class adds the EthernetInterface resource

description = <sushy.resources.base.Field object>

Description

identity = <sushy.resources.base.Field object>

The Ethernet Interface identity string

mac_address = <sushy.resources.base.Field object>

This is the currently configured MAC address of the interface.

name = <sushy.resources.base.Field object>

The name of the resource or array element

permanent_mac_address = <sushy.resources.base.Field object>

This is the permanent MAC address assigned to this interface (port)

speed_mbps = <sushy.resources.base.Field object>

This is the current speed in Mbps of this interface.

status = <sushy.resources.system.ethernet_interface.HealthStatusField object>
class sushy.resources.system.ethernet_interface.EthernetInterfaceCollection(connector, path, redfish_version=None)

Bases: sushy.resources.base.ResourceCollectionBase

summary

Summary of MAC addresses and interfaces state

This filters the MACs whose health is OK, which means the MACs in both ‘Enabled’ and ‘Disabled’ States are returned.

Returns:dictionary in the format {‘aa:bb:cc:dd:ee:ff’: ‘Enabled’, ‘aa:bb:aa:aa:aa:aa’: ‘Disabled’}
class sushy.resources.system.ethernet_interface.HealthStatusField(*args, **kwargs)

Bases: sushy.resources.base.CompositeField

health = <sushy.resources.base.Field object>
state = <sushy.resources.base.MappedField object>
Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.