I need clarification when using ‘prompt’ parameter of ios_command module with regards to below command.
Below is the sample script to copy ios image. Please look at line with ‘prompt’ command - i need to give the command with 2 forward slash at start and end (\iosfilename.bin). Only then it works else it doesn’t. This slash is required only for this image copy command and not required for any other command used with ‘prompt’ parameter. Iam trying to understand the significance of these 2 slashes?
ios_command:
commands:
- command: “copy ftp://zebra:username@10.6.1.104/isr4300-universalk9.16.03.07.SPA.bin flash:”
prompt: ‘Destination filename [isr4300-universalk9.16.03.07.SPA.bin]?’
answer: “\r”