The ironic_inspector.common.lldp_parsers Module

Names and mapping functions used to map LLDP TLVs to name/value pairs

class ironic_inspector.common.lldp_parsers.LLDPBasicMgmtParser(nv=None)[source]

Bases: ironic_inspector.common.lldp_parsers.LLDPParser

Class to handle parsing of 802.1AB Basic Management set

This class will also handle 802.1Q and 802.3 OUI TLVs

add_capabilities(struct, name, data)[source]

Handle LLDP_TLV_SYS_CAPABILITIES

add_mgmt_address(struct, name, data)[source]

Handle LLDP_TLV_MGMT_ADDRESS

handle_org_specific_tlv(struct, name, data)[source]

Handle Organizationally Unique ID TLVs

This class supports 802.1Q and 802.3 OUI TLVs See http://www.ieee802.org/1/pages/802.1Q-2014.html, Annex D and http: // standards.ieee.org / about / get / 802 / 802.3.html

class ironic_inspector.common.lldp_parsers.LLDPParser(node_info, nv=None)[source]

Bases: object

Base class to handle parsing of LLDP TLVs

add_single_value(struct, name, data)[source]

Add a single name/value pair the the nv dict

append_value(name, value)[source]

Add value to a list mapped to name

parse_tlv(tlv_type, data)[source]

Parse TLVs from mapping table

Param:tlv_type - type identifier for TLV
Param:data - raw TLV value
set_value(name, value)[source]

Set name value pair in dictionary

class ironic_inspector.common.lldp_parsers.LLDPdot1Parser(node_info, nv=None)[source]

Bases: ironic_inspector.common.lldp_parsers.LLDPParser

Class to handle parsing of 802.1Q TLVs

add_dot1_port_protocol_vlan(struct, name, data)[source]

Handle dot1_PORT_PROTOCOL_VLANID

add_dot1_protocol_identities(struct, name, data)[source]

handle dot1_PROTOCOL_IDENTITY

add_dot1_vlans(struct, name, data)[source]

Handle dot1_VLAN_NAME

class ironic_inspector.common.lldp_parsers.LLDPdot3Parser(node_info, nv=None)[source]

Bases: ironic_inspector.common.lldp_parsers.LLDPParser

Class to handle parsing of 802.3 TLVs

add_dot3_macphy_config(struct, name, data)[source]

Handle dot3_MACPHY_CONFIG_STATUS

Previous topic

The ironic_inspector.common.keystone Module

Next topic

The ironic_inspector.common.lldp_tlvs Module

This Page