|
Software TSN Switch
A software switch to connect VMs and Containers to a TSN network
|
Builds Gate Control List (GCL) XML payloads from CNC in-memory data structures. More...
#include <GclXmlBuilder.h>

Public Member Functions | |
| GclXmlBuilder ()=delete | |
| Constructor: Prevents instantiation of this utility class. Just tools. | |
Static Public Member Functions | |
| static std::string | buildXmlForNode (const CncNode_t &node) |
| Builds XML configuration for the given CncNode_t's GCL. Function iterates over all Interfaces in CncNode_t and constructs the appropriate XML structure for the Gate Control List (GCL) if the interface has GCL data. | |
| static std::string | buildXmlForInterface (const ietfInterface_t &iface) |
| Builds XML configuration for the given interface GCL. Function that builds the XML structure for the Gate Control List (GCL) for the given interface. | |
Static Private Member Functions | |
| static void | appendInterfaceXml (std::stringstream &ss, const ietfInterface_t &iface) |
| Appends XML for a single interface's GCL configuration. | |
| static void | appendCycleTime (std::stringstream &ss, const RationalTime_t &time) |
| Appends XML for cycle time. | |
| static void | appendControlList (std::stringstream &ss, const GclConfig_t &config) |
| Appends the Gate Control List to Xml (AdminControlList) | |
| static void | appendPtpTime (std::stringstream &ss, PtpTime_t time, const std::string &tagName) |
| Appends the ptpTime to the Xml. | |
Builds Gate Control List (GCL) XML payloads from CNC in-memory data structures.
This utility class serializes TSN scheduling-related configuration from CncNode_t and nested interface/GCL types into the expected NETCONF/XML representation. It provides helper routines for composing cycle time, control-list entries, and PTP time fields used by bridge schedule configuration.
|
delete |
Constructor: Prevents instantiation of this utility class. Just tools.
|
staticprivate |
Appends the Gate Control List to Xml (AdminControlList)
| ss | The stringstream to append the XML to. |
| config | The GCL holding all necessary information for node. |
|
staticprivate |
Appends XML for cycle time.
| ss | The stringstream to append the XML to. |
| time | The given cycle time in the GCL. |
|
staticprivate |
Appends XML for a single interface's GCL configuration.
| ss | The stringstream to append the XML to. |
| iface | The ietfInterface_t containing GCL data. |
|
staticprivate |
Appends the ptpTime to the Xml.
| ss | The stringstream to append the XML to. |
| time | The ptp time. |
| tagName | The name of the tag to use. |
|
static |
Builds XML configuration for the given interface GCL. Function that builds the XML structure for the Gate Control List (GCL) for the given interface.
| iface | The IetfInterface_t containing the GCL data. |
|
static |
Builds XML configuration for the given CncNode_t's GCL. Function iterates over all Interfaces in CncNode_t and constructs the appropriate XML structure for the Gate Control List (GCL) if the interface has GCL data.
| node | The CncNode_t containing GCL data. |