https://github.com/vnitinv/junos-tables-views
User defined PyEZ tables and views
https://github.com/vnitinv/junos-tables-views
pyez
Last synced: 2 months ago
JSON representation
User defined PyEZ tables and views
- Host: GitHub
- URL: https://github.com/vnitinv/junos-tables-views
- Owner: vnitinv
- Created: 2017-04-24T10:39:26.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-04-24T10:49:55.000Z (about 8 years ago)
- Last Synced: 2025-02-08T18:46:20.820Z (4 months ago)
- Topics: pyez
- Language: Python
- Size: 2.93 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# junos-tables-views
User defined PyEZ tables and views# INSTALLATION
## PIP
Installation requires Python 2.6 or 2.7 or >=3.4 and associated `pip` tool
Installing from Git is only supported as of now (OS must have git installed).
pip install git+https://github.com/vnitinv/junos-tables-views
## Example
````python
from jnpr.junos import Device
from jnpr.junos.op.vnitinv.bgpneighbor import BGPNeighborTablewith Device('host', user='user', passwd='passwrd') as dev:
bgp = BGPNeighborTable(dev).get()
for item in bgp:
print item.neighbor
print item.state
print item.type
print item.flap_count
````## How to contribute your Table/View
Create a folder at lib/jnpr/junos/op/
Github user name is preffered as it helps in tracking. Inside this folder copy your .py and .yml files corresponding to tables/views.# LICENSE
Apache 2.0
# CONTRIBUTORS
Juniper Networks is actively contributing to and maintaining this repo. Please contact [email protected] for any queries.
*Contributors:*
[Nitin Kumar](https://github.com/vnitinv)