Opendaylight Service Provider¶
-
class
ydk.providers.
OpendaylightServiceProvider
(repo, address, username, password, port, encoding)¶ A service provider to be used to communicate with an OpenDaylight instance.
Parameters: - repo – (
Repository
) User provided repository stores cached models. - address – (
str
) IP address of the ODL instance - username – (
str
) Username to log in to the instance - password – (
str
) Password to log in to the instance - port – (
int
) Device port used to access the ODL instance. - encoding – (
EncodingFormat
) Type of encoding to be used for the payload. Default isJSON
-
get_node_provider
(node_id)¶ Returns the ServiceProvider instance corresponding to the device being controlled by the OpenDaylight instance, indicated by
node_id
Parameters: node_id – ( str
) The name of the device being controlled by the OpenDaylight instance.Returns: One of supported service provider instance. Raises: YServiceProviderError
if no such service provider could be found.
-
get_node_ids
()¶ Returns a list of node ID’s of the devices being controlled by this OpenDaylight instance.
Returns: List of node ID’s of the devices being controlled by this OpenDaylight instance.
- repo – (