Skip to content

Interface configuration mode #172

Answered by carlmontanari
seimnseimn asked this question in Q&A
Discussion options

You must be logged in to vote

hey @seimnseimn

what you've outlined here is what I would do (run the commands in the interface then "quit"). scrapli doesn't really care about/understand the config/structure of the router/switch/thing so its up to you to decide how to handle things. if you were worried about the interface not existing you could always do some show command then conditionally run your config based on that output.

you could probably get nutty with adding privilege levels and stuff but I dont think id advise that for interfaces or anything like that.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@seimnseimn
Comment options

Answer selected by seimnseimn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants