summaryrefslogtreecommitdiff
path: root/plugins/modules/vyos_static_route.py
diff options
context:
space:
mode:
authorGomathiselviS <gomathiselvi@gmail.com>2020-07-24 16:16:03 -0400
committerGitHub <noreply@github.com>2020-07-24 20:16:03 +0000
commitfbb82a0875dacc8200d3f663c3286104d0a1afbf (patch)
treeae507874333cff6aea4e71e4032959e1168eb036 /plugins/modules/vyos_static_route.py
parenta387c0878535f6af1d19800ff5bb2d60fa2f4e8a (diff)
downloadvyos.vyos-fbb82a0875dacc8200d3f663c3286104d0a1afbf.tar.gz
vyos.vyos-fbb82a0875dacc8200d3f663c3286104d0a1afbf.zip
[vyos] Fix sanity issues (#58)
[vyos] Fix sanity issues 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.py27
1 files changed, 27 insertions, 0 deletions
diff --git a/plugins/modules/vyos_static_route.py b/plugins/modules/vyos_static_route.py
index 67f9954..44d8f6b 100644
--- a/plugins/modules/vyos_static_route.py
+++ b/plugins/modules/vyos_static_route.py
@@ -60,6 +60,33 @@ options:
aggregate:
description: List of static route definitions
type: list
+ elements: dict
+ suboptions:
+ prefix:
+ description:
+ - Network prefix of the static route. C(mask) param should be ignored if C(prefix)
+ is provided with C(mask) value C(prefix/mask).
+ required: True
+ type: str
+ mask:
+ description:
+ - Network prefix mask of the static route.
+ type: str
+ next_hop:
+ description:
+ - Next hop IP of the static route.
+ type: str
+ admin_distance:
+ description:
+ - Admin distance of the static route.
+ type: int
+ state:
+ description:
+ - State of the static route configuration.
+ choices:
+ - present
+ - absent
+ type: str
state:
description:
- State of the static route configuration.