Netmiko - 在配置模式下确认

问题描述

我刚开始使用 netmiko,但在使用一个脚本时遇到了问题。该脚本应该删除一个用户并创建另一个用户。我遇到的问题是在配置模式下确认我不知道如何处理。

R1(config)#no username admin
This operation will remove all username related configurations with same name.Do you want to continue? [confirm]

谢谢。

解决方法

您将使用期望字符串。

user = await User.findById(id)