|
|
|
@ -56,6 +56,7 @@ dellos10_argument_spec = {
|
|
|
|
|
'provider': dict(type='dict'),
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def check_args(module, warnings):
|
|
|
|
|
provider = module.params['provider'] or {}
|
|
|
|
|
for key in dellos10_argument_spec:
|
|
|
|
@ -106,6 +107,7 @@ def run_commands(module, commands, check_rc=True):
|
|
|
|
|
responses.append(out)
|
|
|
|
|
return responses
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def load_config(module, commands):
|
|
|
|
|
rc, out, err = exec_command(module, 'configure terminal')
|
|
|
|
|
if rc != 0:
|
|
|
|
@ -122,6 +124,7 @@ def load_config(module, commands):
|
|
|
|
|
|
|
|
|
|
exec_command(module, 'end')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def get_sublevel_config(running_config, module):
|
|
|
|
|
contents = list()
|
|
|
|
|
current_config_contents = list()
|
|
|
|
@ -141,4 +144,3 @@ def get_sublevel_config(running_config, module):
|
|
|
|
|
sublevel_config = '\n'.join(current_config_contents)
|
|
|
|
|
|
|
|
|
|
return sublevel_config
|
|
|
|
|
|
|
|
|
|