ModelProvider¶
-
class
ModelProvider
¶
Interface for a YANG model provider which can download YANG models from a server
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
- format –
format
of the model to downloadReturns:
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