google / ldpush Goto Github PK
View Code? Open in Web Editor NEWA cross-vendor network device configuration distribution tool
Home Page: http://google.github.io/ldpush
License: Apache License 2.0
A cross-vendor network device configuration distribution tool
Home Page: http://google.github.io/ldpush
License: Apache License 2.0
A cross-vendor configuration distribution tool. This is useful for pushing ACLs or other pieces of configuration to network elements. It can also be used to send commands to a list of devices and gather the results. Install ------- To run this tool you will need to install several modules not part of the Python standard library, all of which should be easily installable via pip, easy_install, or distribution package: pexpect paramiko progressbar gflags Examples -------- Push the configurations in /tmp/foo and /tmp/bar to two devices, 192.168.192.1 and router1.foo.com. Push cannot guess what vendor is in use, but you could change the default vendor flag at the top if you only use one vendor. This example forces the use of the username 'dude' rather than your own. ./push.py --targets 192.168.192.1,router1.foo.com --vendor ios --user dude \ /tmp/foo /tmp/bar Send a 'show version' command to the list of devices. Output will be sprayed to STDOUT. Target names must be resolvable on your machine. ./push.py --targets r1,r2,r3,r4 --vendor ios --command 'show version' Use filenames to determine the name of the target device. The string file name must be resolvable. ./push.py --devices_from_filenames --vendor ios devicefiles/*
What steps will reproduce the problem?
What is the expected output? What do you see instead?
I see this:
cbyrne@ubi ~/ldpush $ ./push.py --targets brcfri01 --vendor ciscoxr --command 'show version' --user cbyrne
Traceback (most recent call last):
File "./push.py", line 319, in
main(sys.argv)
File "./push.py", line 225, in main
pusher = CheckFlags(files, class_path)
File "./push.py", line 209, in CheckFlags
pusher = eval(class_path)
File "", line 1, in
AttributeError: 'module' object has no attribute 'CiscoxrDevice'
cbyrne@ubi ~/ldpush $
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.