Use Primary IP Address in a custom script #7949
Answered
by
candlerb
bogdancordos
asked this question in
Q&A
-
Hi, I am building a simple custom script to run an SSH command using netmiko.
Any suggestions on how can I replace the " input_ip" with a model that will let me choose a device and use its primary IP? Thank you |
Beta Was this translation helpful? Give feedback.
Answered by
candlerb
Nov 29, 2021
Replies: 1 comment
-
Look at ObjectVar. The user can select a Device object, and once your script has a model instance, it can use its |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
bogdancordos
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Look at ObjectVar. The user can select a Device object, and once your script has a model instance, it can use its
primary_ip
attribute.