diff --git a/README.md b/README.md index 664c57e..f89809d 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,13 @@ NcclientLibrary is a [Robotframework](https://github.com/robotframework/robotframework) NETCONF wrapper libraray of [ncclient](https://github.com/ncclient/ncclient) -``` bash +## Installation + +``` Shell +virtualenv venv +source venv/bin/activate +pip install --upgrade pip +pip install --upgrade setuptools pip install robotframework-ncclient ``` diff --git a/src/NcclientLibrary/NcclientKeywords.py b/src/NcclientLibrary/NcclientKeywords.py index 036fd4a..7eb8ae0 100644 --- a/src/NcclientLibrary/NcclientKeywords.py +++ b/src/NcclientLibrary/NcclientKeywords.py @@ -91,6 +91,14 @@ def connect(self, *args, **kwds): logger.error(str(e)) raise str(e) + def get_server_capabilities(self): + """ Returns server caps """ + return self.server_capabilities + + def get_yang_modules(self): + """ Returns server supported YANG modules """ + return self.yang_modules + def _parse_server_capabilities(self, server_capabilities): """ Returns server_capabilities and supported YANG modules in JSON format diff --git a/src/NcclientLibrary/version.py b/src/NcclientLibrary/version.py index 8d76f25..856ce1d 100644 --- a/src/NcclientLibrary/version.py +++ b/src/NcclientLibrary/version.py @@ -1 +1 @@ -VERSION = '0.1.1' +VERSION = '0.1.2'