ModelProvider¶
-
class
ydk::path::
ModelProvider
¶ Interface for a YANG model provider which can download YANG models from a server.
-
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.
-
virtual std::string