cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2043
Views
10
Helpful
3
Replies

Python pyats [yes/no]: prompt

dkaz
Beginner
Beginner

How can I respond with yes to a [yes/no]: prompt within a pyats python script?

1 Accepted Solution

Accepted Solutions

I was able to figure it out with a Dialog statement pattern and reply=dialog on the device.configure line.

View solution in original post

3 Replies 3

balaji.bandi
VIP Community Legend VIP Community Legend
VIP Community Legend

how about confirmation

 confirmation_prompt=True

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

I was able to figure it out with a Dialog statement pattern and reply=dialog on the device.configure line.

balaji.bandi
VIP Community Legend VIP Community Legend
VIP Community Legend

nice good to know all works

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Recognize Your Peers