ModelProvider

class ModelProvider

Interface for a YANG model provider which can download YANG models from a server

enum Format

Format of model to be downloaded

enumerator YANG
enumerator YIN
ModelProvider()

Constructs an instance of the ModelProvider

virtual std::string get_model(const std::string &name, const std::string &version, Format format) = 0

Returns the model identified by the name and version

Parameters:
  • name – name of the model
  • version – version of the model
  • formatformat of the model to download
Returns:

std::string containing the model downloaded. If empty then the model probably cannot be provided

virtual std::string get_hostname_port() = 0

Return the hostname and port of the connected server