Software TSN Switch
A software switch to connect VMs and Containers to a TSN network
Loading...
Searching...
No Matches
Classes | Typedefs | Functions | Variables
cnc Namespace Reference

Classes

struct  DeviceCredentials_t
 Structure to hold device credentials for network devices. Used for SSH network management access. More...
 
class  GclParser
 Parses Gate Control List (GCL) operational XML data and maps it to CncTypes.h data structures. More...
 
class  GclXmlBuilder
 Builds Gate Control List (GCL) XML payloads from CNC in-memory data structures. More...
 
class  InterfaceParser
 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...
 
class  JsonImporter
 Imports CNC topology and inventory data from JSON sources. More...
 
class  LldpParser
 Parses LLDP operational XML data from NETCONF and maps it to internal CNC structures. More...
 
class  NetworkManager
 Coordinates NETCONF-based communication and TSN configuration workflows across topology nodes. More...
 
struct  NodeWorker
 Worker structure for managing NETCONF sessions and job queues for individual nodes. More...
 
class  PtpParser
 Parses PTP data from libyang XML nodes and populates CncNode_t structures. This parser is responsible for extracting PTP-related data from the XML data provided by the NETCONF/YANG models. It maps the relevant XML nodes to the corresponding fields in the CncNode_t structure defined in CncTypes.h. More...
 

Typedefs

using InventoryMap = std::map< std::string, DeviceCredentials_t >
 

Functions

static std::string getXpathValue (const struct lyd_node *contextNode, const char *xpath)
 
static uint32_t getXpathValueUint32 (const struct lyd_node *contextNode, const char *xpath, uint32_t defaultVal=0)
 
static uint64_t getXpathValueUint64 (const struct lyd_node *contextNode, const char *xpath, uint64_t defaultVal=0)
 
static bool getXpathValueBool (const struct lyd_node *contextNode, const char *xpath, bool defaultVal=false)
 
static std::string getXPathValue (const struct lyd_node *contextNode, const char *xpath)
 
static uint32_t getXpathValueUint32 (const struct lyd_node *contextNode, const char *xpath, uint32_t defaultValue=0)
 
static std::string getXpathValue (const struct lyd_node *contextNode, const char *xpath)
 
static uint32_t getXpathValueUint32 (const struct lyd_node *contextNode, const char *xpath, uint32_t defaultVal=0)
 
static uint64_t getXpathValueUint64 (const struct lyd_node *contextNode, const char *xpath, uint64_t defaultVal=0)
 
static int64_t getXpathValueInt64 (const struct lyd_node *contextNode, const char *xpath, int64_t defaultVal=0)
 
static bool getXpathValueBool (const struct lyd_node *contextNode, const char *xpath, bool defaultVal=false)
 
static PtpInstanceType_t stringToInstanceType (const std::string &str)
 
static PtpPortState_t stringToPortState (const std::string &str)
 
static PtpPerformanceParameters_t parsePerfParams (const struct lyd_node *contextNode, const std::string &prefix, bool useShortMinMax=false)
 

Variables

const std::string NS_IETF_IF = "urn:ietf:params:xml:ns:yang:ietf-interfaces"
 
const std::string NS_DOT1Q_BRIDGE = "urn:ieee:std:802.1Q:yang:ieee802-dot1q-bridge"
 
const std::string NS_DOT1Q_SCHED_BRIDGE = "urn:ieee:std:802.1Q:yang:ieee802-dot1q-sched-bridge"
 
const std::string NS_DOT1Q_SCHED = "urn:ieee:std:802.1Q:yang:ieee802-dot1q-sched"
 

Typedef Documentation

◆ InventoryMap

using cnc::InventoryMap = typedef std::map<std::string, DeviceCredentials_t>

Function Documentation

◆ getXpathValue() [1/2]

static std::string cnc::getXpathValue ( const struct lyd_node *  contextNode,
const char *  xpath 
)
static

◆ getXPathValue()

static std::string cnc::getXPathValue ( const struct lyd_node *  contextNode,
const char *  xpath 
)
static

◆ getXpathValue() [2/2]

static std::string cnc::getXpathValue ( const struct lyd_node *  contextNode,
const char *  xpath 
)
static

◆ getXpathValueBool() [1/2]

static bool cnc::getXpathValueBool ( const struct lyd_node *  contextNode,
const char *  xpath,
bool  defaultVal = false 
)
static

◆ getXpathValueBool() [2/2]

static bool cnc::getXpathValueBool ( const struct lyd_node *  contextNode,
const char *  xpath,
bool  defaultVal = false 
)
static

◆ getXpathValueInt64()

static int64_t cnc::getXpathValueInt64 ( const struct lyd_node *  contextNode,
const char *  xpath,
int64_t  defaultVal = 0 
)
static

◆ getXpathValueUint32() [1/3]

static uint32_t cnc::getXpathValueUint32 ( const struct lyd_node *  contextNode,
const char *  xpath,
uint32_t  defaultVal = 0 
)
static

◆ getXpathValueUint32() [2/3]

static uint32_t cnc::getXpathValueUint32 ( const struct lyd_node *  contextNode,
const char *  xpath,
uint32_t  defaultVal = 0 
)
static

◆ getXpathValueUint32() [3/3]

static uint32_t cnc::getXpathValueUint32 ( const struct lyd_node *  contextNode,
const char *  xpath,
uint32_t  defaultValue = 0 
)
static

◆ getXpathValueUint64() [1/2]

static uint64_t cnc::getXpathValueUint64 ( const struct lyd_node *  contextNode,
const char *  xpath,
uint64_t  defaultVal = 0 
)
static

◆ getXpathValueUint64() [2/2]

static uint64_t cnc::getXpathValueUint64 ( const struct lyd_node *  contextNode,
const char *  xpath,
uint64_t  defaultVal = 0 
)
static

◆ parsePerfParams()

static PtpPerformanceParameters_t cnc::parsePerfParams ( const struct lyd_node *  contextNode,
const std::string &  prefix,
bool  useShortMinMax = false 
)
static

◆ stringToInstanceType()

static PtpInstanceType_t cnc::stringToInstanceType ( const std::string &  str)
static

◆ stringToPortState()

static PtpPortState_t cnc::stringToPortState ( const std::string &  str)
static

Variable Documentation

◆ NS_DOT1Q_BRIDGE

const std::string cnc::NS_DOT1Q_BRIDGE = "urn:ieee:std:802.1Q:yang:ieee802-dot1q-bridge"

◆ NS_DOT1Q_SCHED

const std::string cnc::NS_DOT1Q_SCHED = "urn:ieee:std:802.1Q:yang:ieee802-dot1q-sched"

◆ NS_DOT1Q_SCHED_BRIDGE

const std::string cnc::NS_DOT1Q_SCHED_BRIDGE = "urn:ieee:std:802.1Q:yang:ieee802-dot1q-sched-bridge"

◆ NS_IETF_IF

const std::string cnc::NS_IETF_IF = "urn:ietf:params:xml:ns:yang:ietf-interfaces"