mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-26 06:31:23 -07:00
Net mod ios (#16426)
* Update IOS with new NetworkModule * Remove redundant EOS code * `authorize` can get rolled into NetCli * Fix up IOS to where EOS is. * Update IOSXR for NetworkModule * collections is unnecessary
This commit is contained in:
parent
9a6b8ab271
commit
72204ddd3e
4 changed files with 92 additions and 284 deletions
|
@ -237,6 +237,10 @@ class NetCli(object):
|
|||
self._connected = False
|
||||
self.shell.close()
|
||||
|
||||
def authorize(self, params, **kwargs):
|
||||
passwd = params['auth_pass']
|
||||
self.execute(Command('enable', prompt=self.NET_PASSWD_RE, response=passwd))
|
||||
|
||||
def execute(self, commands, **kwargs):
|
||||
try:
|
||||
return self.shell.send(commands)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue