Skip to content
This repository has been archived by the owner on Jun 29, 2024. It is now read-only.

Commit

Permalink
Updates (#2)
Browse files Browse the repository at this point in the history
* get methods for server caps

* version bump

* Updated README

* doc updatation
  • Loading branch information
vkosuri authored Oct 17, 2016
1 parent 7a43305 commit 29e36a8
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

Expand Down
8 changes: 8 additions & 0 deletions src/NcclientLibrary/NcclientKeywords.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/NcclientLibrary/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
VERSION = '0.1.1'
VERSION = '0.1.2'

0 comments on commit 29e36a8

Please sign in to comment.