Software TSN Switch
A software switch to connect VMs and Containers to a TSN network
Loading...
Searching...
No Matches
GclParser.h
Go to the documentation of this file.
1#pragma once
2
3#include <CncTypes.h>
4#include <Topology.h>
5
6#include <string>
7
8struct lyd_node; // Forward declaration for libyang data node
9
10namespace cnc {
18class GclParser {
19 public:
26 static bool parseOperationalGclData(const struct lyd_node* rootNode, CncNode_t& node);
27
28 private:
34 static void parseInterfaceGcl(const struct lyd_node* gclNode, ietfInterface_t& iface);
35};
36} // namespace cnc
Parses Gate Control List (GCL) operational XML data and maps it to CncTypes.h data structures.
Definition GclParser.h:18
static void parseInterfaceGcl(const struct lyd_node *gclNode, ietfInterface_t &iface)
Parses GCL configuration for a single interface from the given XML node pointer.
Definition GclParser.cpp:127
static bool parseOperationalGclData(const struct lyd_node *rootNode, CncNode_t &node)
Parses GCL configuration data from the provided XML string and populates the given CncNode_t structur...
Definition GclParser.cpp:53
Definition GclParser.h:10
This struct is used on the CNC side to represent one host with all its interfaces as well as its PTP ...
Definition CncTypes.h:512
Struct to hold information about an interface, inspired by the ietf-interfaces yang model.
Definition CncTypes.h:256