Fix Dell OS network module timeout ()

The dellos action plugins should add the remote address of the switch
provider to the play context. This was fixed in issue  in an
almost identical manner for the eos, ios, iosxr, and vyos action
plugins.

Fixes: 
This commit is contained in:
Mark Goddard 2017-09-14 15:40:50 +01:00 committed by John R Barker
parent 3add156a02
commit ac69fcccdc
3 changed files with 3 additions and 0 deletions
lib/ansible/plugins/action

View file

@ -52,6 +52,7 @@ class ActionModule(_ActionModule):
pc = copy.deepcopy(self._play_context)
pc.connection = 'network_cli'
pc.network_os = 'dellos10'
pc.remote_addr = provider['host'] or self._play_context.remote_addr
pc.port = int(provider['port'] or self._play_context.port or 22)
pc.remote_user = provider['username'] or self._play_context.connection_user
pc.password = provider['password'] or self._play_context.password

View file

@ -48,6 +48,7 @@ class ActionModule(_ActionModule):
pc = copy.deepcopy(self._play_context)
pc.connection = 'network_cli'
pc.network_os = 'dellos6'
pc.remote_addr = provider['host'] or self._play_context.remote_addr
pc.port = int(provider['port'] or self._play_context.port or 22)
pc.remote_user = provider['username'] or self._play_context.connection_user
pc.password = provider['password'] or self._play_context.password

View file

@ -52,6 +52,7 @@ class ActionModule(_ActionModule):
pc = copy.deepcopy(self._play_context)
pc.connection = 'network_cli'
pc.network_os = 'dellos9'
pc.remote_addr = provider['host'] or self._play_context.remote_addr
pc.port = int(provider['port'] or self._play_context.port or 22)
pc.remote_user = provider['username'] or self._play_context.connection_user
pc.password = provider['password'] or self._play_context.password