From ce3e358587d50a64c355562dee3a45a77ca00c40 Mon Sep 17 00:00:00 2001 From: YuandongXu Date: Tue, 18 Jun 2019 08:14:23 +0800 Subject: [PATCH] Backport/2.8/57183 update lib/ansible/plugins/action/ce.py to fix a bug (#57696) * update lib/ansible/plugins/action/ce.py to fix a bug. (#57183) * update lib/ansible/plugins/action/ce.py (cherry picked from commit 9c3ae4c1f460c4708b432e6c733d8d1cad0760f5) * add a changelog fragment for PR 57696 --- changelogs/fragments/57696-update-ce.py-to-fix-a-bug.yml | 2 ++ lib/ansible/plugins/action/ce.py | 8 +++++++- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 changelogs/fragments/57696-update-ce.py-to-fix-a-bug.yml diff --git a/changelogs/fragments/57696-update-ce.py-to-fix-a-bug.yml b/changelogs/fragments/57696-update-ce.py-to-fix-a-bug.yml new file mode 100644 index 00000000000..d0aad75df1c --- /dev/null +++ b/changelogs/fragments/57696-update-ce.py-to-fix-a-bug.yml @@ -0,0 +1,2 @@ +bugfixes: + - Update lib/ansible/plugins/action/ce.py.Add some modules names that modules use network_cli to connect remote hosts when connection type is 'local' diff --git a/lib/ansible/plugins/action/ce.py b/lib/ansible/plugins/action/ce.py index a6d40cd5201..18a3570d975 100644 --- a/lib/ansible/plugins/action/ce.py +++ b/lib/ansible/plugins/action/ce.py @@ -19,7 +19,13 @@ from ansible.utils.display import Display display = Display() -CLI_SUPPORTED_MODULES = ['ce_config', 'ce_command', 'ce_facts'] +CLI_SUPPORTED_MODULES = ['ce_rollback', 'ce_mlag_interface', 'ce_startup', 'ce_config', + 'ce_command', 'ce_facts', 'ce_evpn_global', 'ce_evpn_bgp_rr', + 'ce_mtu', 'ce_evpn_bgp', 'ce_snmp_location', 'ce_snmp_contact', + 'ce_snmp_traps', 'ce_netstream_global', 'ce_netstream_aging', + 'ce_netstream_export', 'ce_netstream_template', 'ce_ntp_auth', + 'ce_stp', 'ce_vxlan_global', 'ce_vxlan_arp', 'ce_vxlan_gateway', + 'ce_acl_interface'] class ActionModule(ActionNetworkModule):