QuestionQ35

Device-Level Network Automation

Question Image

Refer to the exhibit. The Python script fails. Which modification allows the script to finish successfully?

Explanation

A variable defined inside set_interfaces() is local to that function. The list must be assigned from the function’s return value in main() before main() can iterate over interfaces.

Community Discussion

No comments yet. Be the first to start the discussion!