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:
Nathaniel Case 2016-07-07 13:46:33 -04:00 committed by GitHub
commit 72204ddd3e
4 changed files with 92 additions and 284 deletions

View file

@ -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)