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 at 0x3967410>

Description

identity = <sushy.resources.base.Field object at 0x3967350>

The Ethernet Interface identity string

mac_address = <sushy.resources.base.Field object at 0x3967490>

This is the currently configured MAC address of the interface.

name = <sushy.resources.base.Field object at 0x39673d0>

The name of the resource or array element

permanent_mac_address = <sushy.resources.base.Field object at 0x3967450>

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

speed_mbps = <sushy.resources.base.Field object at 0x39674d0>

This is the current speed in Mbps of this interface.

status = <sushy.resources.system.ethernet_interface.HealthStatusField object at 0x3967510>
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 at 0x39671d0>
state = <sushy.resources.base.MappedField object at 0x3967150>
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.