The ironic_inspector_client.resource Module

class ironic_inspector_client.resource.InterfaceResource(field_ids=None, detailed=False)[source]

Bases: object

InterfaceResource class

This class is used to manage the fields including Link Layer Discovery Protocols (LLDP) fields, that an interface contains. An individual field consists of a ‘field_id’ (key) and a ‘label’ (value).

DEFAULT_FIELD_IDS = ['interface', 'mac', 'switch_port_vlan_ids', 'switch_chassis_id', 'switch_port_id']
FIELDS = {'switch_port_autonegotiation_support': 'Switch Port Autonegotiation Supported', 'switch_port_physical_capabilities': 'Switch Port Physical Capabilities', 'interface': 'Interface', 'switch_port_link_aggregation_id': 'Switch Port Link Aggregation ID', 'switch_port_mau_type': 'Switch Port Mau Type', 'switch_port_link_aggregation_support': 'Switch Port Link Aggregation Supported', 'switch_port_autonegotiation_enabled': 'Switch Port Autonegotiation Enabled', 'switch_capabilities_support': 'Switch Capabilities Supported', 'mac': 'MAC Address', 'node_ident': 'Node', 'switch_port_description': 'Switch Port Description', 'switch_chassis_id': 'Switch Chassis ID', 'switch_port_mtu': 'Switch Port MTU', 'switch_port_vlans': 'Switch Port VLANs', 'switch_port_management_vlan_id': 'Switch Port Mgmt VLAN ID', 'switch_port_id': 'Switch Port ID', 'switch_port_protocol_vlan_ids': 'Switch Port Protocol VLAN IDs', 'switch_port_untagged_vlan_id': 'Switch Port Untagged VLAN', 'switch_system_name': 'Switch System Name', 'switch_port_vlan_ids': 'Switch Port VLAN IDs', 'switch_protocol_identities': 'Switch Protocol Identities', 'switch_port_link_aggregation_enabled': 'Switch Port Link Aggregation Enabled', 'switch_port_protocol_vlan_enabled': 'Switch Port Protocol VLAN Enabled', 'switch_port_protocol_vlan_support': 'Switch Port Protocol VLAN Supported', 'switch_capabilities_enabled': 'Switch Capabilities Enabled'}
fields
labels