Software TSN Switch
A software switch to connect VMs and Containers to a TSN network
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
cnc::LldpParser Class Reference

Parses LLDP operational XML data from NETCONF and maps it to internal CNC structures. More...

#include <LldpParser.h>

Collaboration diagram for cnc::LldpParser:
Collaboration graph

Static Public Member Functions

static bool parseLldpData (const struct lyd_node *rootNode, CncNode_t &node)
 Parses LLDP data from the provided XML string and populates the given CncNode_t structure.
 

Detailed Description

Parses LLDP operational XML data from NETCONF and maps it to internal CNC structures.

This parser consumes LLDP information retrieved from the NETCONF datastore in XML form and populates the corresponding fields in CncNode_t. It is used to translate neighbor and interface discovery data into the controller's in-memory topology representation.

Member Function Documentation

◆ parseLldpData()

bool cnc::LldpParser::parseLldpData ( const struct lyd_node *  rootNode,
CncNode_t &  node 
)
static

Parses LLDP data from the provided XML string and populates the given CncNode_t structure.

Parameters
rootNodeThe root node of the LLDP data in XML format.
nodeReference to the CncNode_t structure to populate.
Returns
true if parsing is successful, false otherwise.

The documentation for this class was generated from the following files: