mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 11:21:25 -07:00
Add junos_vlan platform agnostic module (#25652)
* Add junos_vlan platform agnostic module * junos_vlan implementation * integration test for junos_vlan * Minor fixes * Fix Integration test failure
This commit is contained in:
parent
91e995d691
commit
b69c7f50d0
12 changed files with 409 additions and 4 deletions
|
@ -45,13 +45,17 @@ class ActionModule(ActionBase):
|
|||
|
||||
play_context = copy.deepcopy(self._play_context)
|
||||
play_context.network_os = self._get_network_os(task_vars)
|
||||
# TODO this can be netconf
|
||||
play_context.connection = 'network_cli'
|
||||
|
||||
self.provider = self._load_provider(play_context.network_os)
|
||||
|
||||
if play_context.network_os == 'junos':
|
||||
play_context.connection = 'netconf'
|
||||
play_context.port = self.provider['port'] or self._play_context.port or 830
|
||||
else:
|
||||
play_context.connection = 'network_cli'
|
||||
play_context.port = self.provider['port'] or self._play_context.port or 22
|
||||
|
||||
play_context.remote_addr = self.provider['host'] or self._play_context.remote_addr
|
||||
play_context.port = self.provider['port'] or self._play_context.port or 22
|
||||
play_context.remote_user = self.provider['username'] or self._play_context.connection_user
|
||||
play_context.password = self.provider['password'] or self._play_context.password
|
||||
play_context.private_key_file = self.provider['ssh_keyfile'] or self._play_context.private_key_file
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue