diff --git a/lib/ansible/module_utils/asa.py b/lib/ansible/module_utils/asa.py index 49755af322..d39b762a92 100644 --- a/lib/ansible/module_utils/asa.py +++ b/lib/ansible/module_utils/asa.py @@ -85,19 +85,4 @@ class Cli(CliBase): if params.get('include_defaults'): cmd += ' all' return self.execute(cmd) - - def load_config(self, commands, **kwargs): - raise NotImplementedError - - def replace_config(self, commands, **kwargs): - raise NotImplementedError - - def commit_config(self, **kwargs): - raise NotImplementedError - - def abort_config(self, **kwargs): - raise NotImplementedError - - def save_config(self): - raise NotImplementedError Cli = register_transport('cli', default=True)(Cli) diff --git a/lib/ansible/module_utils/shell.py b/lib/ansible/module_utils/shell.py index 68e99e787f..7ba3a7ddf3 100644 --- a/lib/ansible/module_utils/shell.py +++ b/lib/ansible/module_utils/shell.py @@ -231,6 +231,8 @@ class CliBase(object): def authorize(self, params, **kwargs): pass + ### Command methods ### + def execute(self, commands, **kwargs): try: return self.shell.send(commands) @@ -240,3 +242,14 @@ class CliBase(object): def run_commands(self, commands, **kwargs): return self.execute(to_list(commands)) + + ### Config methods ### + + def load_config(self, commands, **kwargs): + raise NotImplementedError + + def replace_config(self, commands, **kwargs): + raise NotImplementedError + + def save_config(self): + raise NotImplementedError