项目作者: vnitinv

项目描述 :
User defined PyEZ tables and views
高级语言: Python
项目地址: git://github.com/vnitinv/junos-tables-views.git
创建时间: 2017-04-24T10:39:26Z
项目社区:https://github.com/vnitinv/junos-tables-views

开源协议:

下载


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).

  1. pip install git+https://github.com/vnitinv/junos-tables-views

Example

  1. from jnpr.junos import Device
  2. from jnpr.junos.op.vnitinv.bgpneighbor import BGPNeighborTable
  3. with Device('host', user='user', passwd='passwrd') as dev:
  4. bgp = BGPNeighborTable(dev).get()
  5. for item in bgp:
  6. print item.neighbor
  7. print item.state
  8. print item.type
  9. 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 jnpr-community-netdev@juniper.net for any queries.

Contributors:

Nitin Kumar