summaryrefslogtreecommitdiff
path: root/lib/ansible/modules/network/layer3/_net_l3_interface.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ansible/modules/network/layer3/_net_l3_interface.py')
-rw-r--r--lib/ansible/modules/network/layer3/_net_l3_interface.py85
1 files changed, 0 insertions, 85 deletions
diff --git a/lib/ansible/modules/network/layer3/_net_l3_interface.py b/lib/ansible/modules/network/layer3/_net_l3_interface.py
deleted file mode 100644
index 8c13e8a7f2..0000000000
--- a/lib/ansible/modules/network/layer3/_net_l3_interface.py
+++ /dev/null
@@ -1,85 +0,0 @@
-#!/usr/bin/python
-# -*- coding: utf-8 -*-
-
-# (c) 2017, Ansible by Red Hat, inc
-# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
-
-from __future__ import absolute_import, division, print_function
-__metaclass__ = type
-
-
-ANSIBLE_METADATA = {'metadata_version': '1.1',
- 'status': ['deprecated'],
- 'supported_by': 'network'}
-
-
-DOCUMENTATION = """
----
-module: net_l3_interface
-version_added: "2.4"
-author: "Ricardo Carrillo Cruz (@rcarrillocruz)"
-short_description: Manage L3 interfaces on network devices
-description:
- - This module provides declarative management of L3 interfaces
- on network devices.
-deprecated:
- removed_in: "2.13"
- alternative: Use platform-specific "[netos]_l3_interfaces" module
- why: Updated modules released with more functionality
-extends_documentation_fragment: network_agnostic
-options:
- name:
- description:
- - Name of the L3 interface.
- ipv4:
- description:
- - IPv4 of the L3 interface.
- ipv6:
- description:
- - IPv6 of the L3 interface.
- aggregate:
- description: List of L3 interfaces definitions
- purge:
- description:
- - Purge L3 interfaces not defined in the I(aggregate) parameter.
- default: no
- state:
- description:
- - State of the L3 interface configuration.
- default: present
- choices: ['present', 'absent']
-"""
-
-EXAMPLES = """
-- name: Set eth0 IPv4 address
- net_l3_interface:
- name: eth0
- ipv4: 192.168.0.1/24
-
-- name: Remove eth0 IPv4 address
- net_l3_interface:
- name: eth0
- state: absent
-
-- name: Set IP addresses on aggregate
- net_l3_interface:
- aggregate:
- - { name: eth1, ipv4: 192.168.2.10/24 }
- - { name: eth2, ipv4: 192.168.3.10/24, ipv6: "fd5d:12c9:2201:1::1/64" }
-
-- name: Remove IP addresses on aggregate
- net_l3_interface:
- aggregate:
- - { name: eth1, ipv4: 192.168.2.10/24 }
- - { name: eth2, ipv4: 192.168.3.10/24, ipv6: "fd5d:12c9:2201:1::1/64" }
- 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:
- - set interfaces ethernet eth0 address '192.168.0.1/24'
-"""