Adding network_cli support in mlnxos (and removing provider) (#33511)

Signed-off-by: Samer Deeb <samerd@mellanox.com>
This commit is contained in:
Samer Deeb
2017-12-06 06:22:15 -08:00
committed by John R Barker
parent e73d3dfe20
commit 48d3cbfc0f
6 changed files with 7 additions and 122 deletions

View File

@@ -46,7 +46,7 @@ class TerminalModule(TerminalBase):
except AnsibleConnectionFailure:
raise AnsibleConnectionFailure('unable to set terminal parameters')
def on_authorize(self, passwd=None):
def on_become(self, passwd=None):
if self._get_prompt().endswith(b'#'):
return
@@ -66,7 +66,7 @@ class TerminalModule(TerminalBase):
raise AnsibleConnectionFailure(
'unable to elevate privilege to enable mode')
def on_deauthorize(self):
def on_unbecome(self):
prompt = self._get_prompt()
if prompt is None:
# if prompt is None most likely the terminal is hung up at a prompt