|
|
|
@ -24,7 +24,7 @@ import json
|
|
|
|
|
|
|
|
|
|
from itertools import chain
|
|
|
|
|
|
|
|
|
|
from ansible.module_utils._text import to_bytes, to_text
|
|
|
|
|
from ansible.module_utils._text import to_text
|
|
|
|
|
from ansible.module_utils.network.common.utils import to_list
|
|
|
|
|
from ansible.plugins.cliconf import CliconfBase, enable_mode
|
|
|
|
|
|
|
|
|
@ -69,8 +69,8 @@ class Cliconf(CliconfBase):
|
|
|
|
|
for cmd in chain([b'config'], to_list(command), [b'end']):
|
|
|
|
|
self.send_command(cmd)
|
|
|
|
|
|
|
|
|
|
def get(self, command, prompt=None, answer=None, sendonly=False):
|
|
|
|
|
return self.send_command(command, prompt=prompt, answer=answer, sendonly=sendonly)
|
|
|
|
|
def get(self, command, prompt=None, answer=None, sendonly=False, check_all=False):
|
|
|
|
|
return self.send_command(command=command, prompt=prompt, answer=answer, sendonly=sendonly, check_all=check_all)
|
|
|
|
|
|
|
|
|
|
def get_capabilities(self):
|
|
|
|
|
result = {}
|
|
|
|
|