����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
#
# (c) 2016 Red Hat Inc.
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
#
from __future__ import absolute_import, division, print_function
__metaclass__ = type
from ansible.utils.display import Display
from ansible_collections.ansible.netcommon.plugins.action.network import (
ActionModule as ActionNetworkModule,
)
display = Display()
class ActionModule(ActionNetworkModule):
def run(self, tmp=None, task_vars=None):
del tmp # tmp no longer has any effect
module_name = self._task.action.split(".")[-1]
self._config_module = True if module_name in ["ios_config", "config"] else False
persistent_connection = self._play_context.connection.split(".")[-1]
warnings = []
if persistent_connection != "network_cli":
return {
"failed": True,
"msg": "Connection type %s is not valid for this module"
% self._play_context.connection,
}
result = super(ActionModule, self).run(task_vars=task_vars)
if warnings:
if "warnings" in result:
result["warnings"].extend(warnings)
else:
result["warnings"] = warnings
return result
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| __pycache__ | Folder | 0755 |
|
|
| __init__.py | File | 0 B | 0644 |
|
| acl_interfaces.py | File | 1.8 KB | 0644 |
|
| acls.py | File | 1.8 KB | 0644 |
|
| banner.py | File | 1.8 KB | 0644 |
|
| bgp.py | File | 1.8 KB | 0644 |
|
| bgp_address_family.py | File | 1.8 KB | 0644 |
|
| bgp_global.py | File | 1.8 KB | 0644 |
|
| command.py | File | 1.8 KB | 0644 |
|
| config.py | File | 1.8 KB | 0644 |
|
| facts.py | File | 1.8 KB | 0644 |
|
| hostname.py | File | 1.8 KB | 0644 |
|
| interfaces.py | File | 1.8 KB | 0644 |
|
| ios.py | File | 1.8 KB | 0644 |
|
| l2_interfaces.py | File | 1.8 KB | 0644 |
|
| l3_interfaces.py | File | 1.8 KB | 0644 |
|
| lacp.py | File | 1.8 KB | 0644 |
|
| lacp_interfaces.py | File | 1.8 KB | 0644 |
|
| lag_interfaces.py | File | 1.8 KB | 0644 |
|
| linkagg.py | File | 1.8 KB | 0644 |
|
| lldp.py | File | 1.8 KB | 0644 |
|
| lldp_global.py | File | 1.8 KB | 0644 |
|
| lldp_interfaces.py | File | 1.8 KB | 0644 |
|
| logging.py | File | 1.8 KB | 0644 |
|
| logging_global.py | File | 1.8 KB | 0644 |
|
| ntp.py | File | 1.8 KB | 0644 |
|
| ntp_global.py | File | 1.8 KB | 0644 |
|
| ospf_interfaces.py | File | 1.8 KB | 0644 |
|
| ospfv2.py | File | 1.8 KB | 0644 |
|
| ospfv3.py | File | 1.8 KB | 0644 |
|
| ping.py | File | 1.8 KB | 0644 |
|
| prefix_lists.py | File | 1.8 KB | 0644 |
|
| route_maps.py | File | 1.8 KB | 0644 |
|
| service.py | File | 1.8 KB | 0644 |
|
| snmp_server.py | File | 1.8 KB | 0644 |
|
| static_routes.py | File | 1.8 KB | 0644 |
|
| system.py | File | 1.8 KB | 0644 |
|
| user.py | File | 1.8 KB | 0644 |
|
| vlans.py | File | 1.8 KB | 0644 |
|
| vrf.py | File | 1.8 KB | 0644 |
|