Skip to content

Latest commit

 

History

History
31 lines (27 loc) · 736 Bytes

README.md

File metadata and controls

31 lines (27 loc) · 736 Bytes

#pynos pynos is a python library for working with Brocade devices running NOS.

##Installation

pip install pynos

##Usage The following is an example usage of pynos. Full documentation can be found here.

>>> from pprint import pprint
>>> import pynos.device
>>> conn = ('10.24.39.211', '22')
>>> auth = ('admin', 'password')
>>> dev = pynos.device.Device(conn=conn, auth=auth)
>>> dev.connection
True
>>> del dev
>>> with pynos.device.Device(conn=conn, auth=auth) as dev:
...     pprint(dev.mac_table)
[{'interface'...'mac_address'...'state'...'type'...'vlan'...}]
>>> dev.connection
False

##License pynos is released under the APACHE 2.0 license. See ./LICENSE for more information.