summaryrefslogtreecommitdiff
path: root/plugins/modules/vyos_static_route.py
diff options
context:
space:
mode:
authorRohit <rohitthakur2590@outlook.com>2020-06-01 13:05:52 +0530
committerGitHub <noreply@github.com>2020-06-01 07:35:52 +0000
commit06235439435396c852535c2569542939bf65ef43 (patch)
treeff9facb3636f13b205bea0d14c7b0c9b12e3f18a /plugins/modules/vyos_static_route.py
parent24a6864db07e5f61cdd952a528d4fd6c147d8db4 (diff)
downloadvyos.vyos-06235439435396c852535c2569542939bf65ef43.tar.gz
vyos.vyos-06235439435396c852535c2569542939bf65ef43.zip
[VyOS: ]all modules updated with FQCN and new doc changes (#33)
[VyOS: ]all modules updated with FQCN and new doc changes Reviewed-by: https://github.com/apps/ansible-zuul
Diffstat (limited to 'plugins/modules/vyos_static_route.py')
-rw-r--r--plugins/modules/vyos_static_route.py33
1 files changed, 15 insertions, 18 deletions
diff --git a/plugins/modules/vyos_static_route.py b/plugins/modules/vyos_static_route.py
index af9a1e3f..78594672 100644
--- a/plugins/modules/vyos_static_route.py
+++ b/plugins/modules/vyos_static_route.py
@@ -19,19 +19,15 @@
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
#
-ANSIBLE_METADATA = {
- "metadata_version": "1.1",
- "status": ["deprecated"],
- "supported_by": "network",
-}
-
-DOCUMENTATION = """module: vyos_static_route
+DOCUMENTATION = """
+module: vyos_static_route
author: Trishna Guha (@trishnaguha)
-short_description: Manage static IP routes on Vyatta VyOS network devices
+short_description: (deprecated) Manage static IP routes on Vyatta VyOS network devices
description:
- This module provides declarative management of static IP routes on Vyatta VyOS network
devices.
+version_added: 1.0.0
deprecated:
removed_in: '2.13'
alternative: vyos_static_routes
@@ -70,39 +66,40 @@ options:
type: str
extends_documentation_fragment:
- vyos.vyos.vyos
+
"""
EXAMPLES = """
- name: configure static route
- vyos_static_route:
+ vyos.vyos.vyos_static_route:
prefix: 192.168.2.0
mask: 24
next_hop: 10.0.0.1
- name: configure static route prefix/mask
- vyos_static_route:
+ vyos.vyos.vyos_static_route:
prefix: 192.168.2.0/16
next_hop: 10.0.0.1
- name: remove configuration
- vyos_static_route:
+ vyos.vyos.vyos_static_route:
prefix: 192.168.2.0
mask: 16
next_hop: 10.0.0.1
state: absent
- name: configure aggregates of static routes
- vyos_static_route:
+ vyos.vyos.vyos_static_route:
aggregate:
- - { prefix: 192.168.2.0, mask: 24, next_hop: 10.0.0.1 }
- - { prefix: 192.168.3.0, mask: 16, next_hop: 10.0.2.1 }
- - { prefix: 192.168.3.0/16, next_hop: 10.0.2.1 }
+ - {prefix: 192.168.2.0, mask: 24, next_hop: 10.0.0.1}
+ - {prefix: 192.168.3.0, mask: 16, next_hop: 10.0.2.1}
+ - {prefix: 192.168.3.0/16, next_hop: 10.0.2.1}
- name: Remove static route collections
- vyos_static_route:
+ vyos.vyos.vyos_static_route:
aggregate:
- - { prefix: 172.24.1.0/24, next_hop: 192.168.42.64 }
- - { prefix: 172.24.3.0/24, next_hop: 192.168.42.64 }
+ - {prefix: 172.24.1.0/24, next_hop: 192.168.42.64}
+ - {prefix: 172.24.3.0/24, next_hop: 192.168.42.64}
state: absent
"""