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::InterfaceParser Class Reference

Parses interface information from libyang XML nodes and populates CncNode_t structures. This parser is responsible for extracting interface-related data, including GCL configurations, from the XML data provided by the NETCONF/YANG models. It maps the relevant XML nodes to the corresponding fields in the CncNode_t and ietfInterface_t structures defined in CncTypes.h. More...

#include <InterfaceParser.h>

Collaboration diagram for cnc::InterfaceParser:
Collaboration graph

Static Public Member Functions

static bool parseInterface (const struct lyd_node *rootNode, CncNode_t &node)
 Parses the interface information from the given libyang node and populates the provided CncNode_t structure.
 

Detailed Description

Parses interface information from libyang XML nodes and populates CncNode_t structures. This parser is responsible for extracting interface-related data, including GCL configurations, from the XML data provided by the NETCONF/YANG models. It maps the relevant XML nodes to the corresponding fields in the CncNode_t and ietfInterface_t structures defined in CncTypes.h.

Member Function Documentation

◆ parseInterface()

bool cnc::InterfaceParser::parseInterface ( const struct lyd_node *  rootNode,
CncNode_t &  node 
)
static

Parses the interface information from the given libyang node and populates the provided CncNode_t structure.

Parameters
rootNodeThe libyang node containing the interface information to be parsed.
nodeThe CncNode_t structure to be populated with the parsed interface information
Returns
true if the parsing was successful, false otherwise.

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