Git Product home page Git Product logo

pyats-plugin-examples's Introduction

pyats-plugin-examples

pyATS is highly pluggable. This repository contains examples of various plugin types, how they can be added to pyATS based on your needs, and executed as part of your script run.

pyats-plugin-examples's People

Contributors

eckelcu avatar simingy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pyats-plugin-examples's Issues

Unicon connect to linux server fails

tb.yaml

devices:
mydev:
os: 'linux'
tacacs:
username: demo
passwords:
linux: password
connections:
defaults:
class: unicon.Unicon
linux:
protocol: ssh
ip: test.rebex.net
type: linux

from pyats.topology import loader
tb = loader.load("tb.yaml")

dev = tb.devices['mydev']
dev.connect()

The run fails to accept the prompt and reports failure

/
$

Traceback (most recent call last):
File "src/unicon/statemachine/statemachine.py", line 701, in unicon.statemachine.statemachine.StateMachine.go_to
File "src/unicon/statemachine/statetransition.py", line 479, in unicon.statemachine.statetransition.AnyStateTransition.do_transitions
File "src/unicon/eal/dialogs.py", line 419, in unicon.eal.dialogs.Dialog.process
File "src/unicon/eal/dialog_processor.py", line 290, in unicon.eal.dialog_processor.SimpleDialogProcessor.process
File "src/unicon/eal/dialog_processor.py", line 251, in unicon.eal.dialog_processor.SimpleDialogProcessor.timeout_handler
unicon.core.errors.TimeoutError: timeout occurred:
timeout value: 60
last_command: 'password\r'
pattern: ['Escape character is .\n', '^.RETURN to get started', 'Are you sure you want to continue connecting \(yes/no\)', '^.(Connection refused|Connection reset by peer|Network is down|closed by remote host)', 'Received disconnect from .:', 'Hit Enter to proceed:', '^(.?)Press Ctrl\+x to Exit the session', '^(.?)Connected.', '^.([Uu]sername|[Ll]ogin): ?$', '^.[Pp]assword( for )?(\S+)?: ?$', '^.[Pp]ermission denied', '^(.?([>\$~%\]]|[^#\\s]#))\s?$']
buffer:"\r\nW\r\ne\r\nl\r\nc\r\no\r\nm\r\ne\r\n \r\nt\r\no\r\n \r\nR\r\ne\r\nb\r\ne\r\nx\r\n \r\nV\r\ni\r\nr\r\nt\r\nu\r\na\r\nl\r\n \r\nS\r\nh\r\ne\r\nl\r\nl\r\n!\r\n\r\nF\r\no\r\nr\r\n \r\na\r\n \r\nl\r\ni\r\ns\r\nt\r\n \r\no\r\nf\r\n \r\ns\r\nu\r\np\r\np\r\no\r\nr\r\nt\r\ne\r\nd\r\n \r\nc\r\no\r\nm\r\nm\r\na\r\nn\r\nd\r\ns\r\n,\r\n \r\nt\r\ny\r\np\r\ne\r\n \r\n'\r\nh\r\ne\r\nl\r\np\r\n'\r\n.\r\n\r\nd\r\ne\r\nm\r\no\r\n@\r\nE\r\nT\r\nN\r\nA\r\n:\r\n/\r\n$\r\n \r\n"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.