ModelProvider

class ydk::path::ModelProvider

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

enum class Format

Format of model to be downloaded

enumerator YANG
enumerator YIN
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 – Model name.
  • version – Model revision
  • format – Model download format.
Returns:

Context of downloaded model. Empty if the model cannot be provided.

virtual std::string get_hostname_port() = 0

Return the hostname and port of the connected server.