Skip to content

Commit

Permalink
* Fix rpc output to be decoded into rpc output entity (CiscoDevNet#471)
Browse files Browse the repository at this point in the history
  • Loading branch information
Abhi Keshav authored and ylil93 committed Sep 13, 2017
1 parent 5254461 commit c7b4b1e
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions sdk/python/core/ydk/services/netconf_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,14 @@ def unlock(self, provider, target):
if None in (provider, target):
raise _YPYServiceError("provider and target cannot be None")

with _handle_error():
return self._ns.unlock(provider, target)

def validate(self, provider, source=None, url="", source_config=None):
if provider is None or (source is None and source_config is None):
raise _YPYServiceError("provider and source/source_config cannot be None")
Args:
provider (ydk.providers.ServiceProvider): A provider instance.
target (Datastore): Particular configuration to unlock. Valid
options are Datastore.candidate, Datastore.running, and
Datastore.startup if the device has such feature advertised.

Returns:
An ok reply string if operation succeeds.

with _handle_error():
if type(source) == DataStore:
Expand Down

0 comments on commit c7b4b1e

Please sign in to comment.