diff options
author | GomathiselviS <gomathiselvi@gmail.com> | 2020-07-24 16:16:03 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-24 20:16:03 +0000 |
commit | fbb82a0875dacc8200d3f663c3286104d0a1afbf (patch) | |
tree | ae507874333cff6aea4e71e4032959e1168eb036 /plugins/modules/vyos_linkagg.py | |
parent | a387c0878535f6af1d19800ff5bb2d60fa2f4e8a (diff) | |
download | vyos.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_linkagg.py')
-rw-r--r-- | plugins/modules/vyos_linkagg.py | 41 |
1 files changed, 38 insertions, 3 deletions
diff --git a/plugins/modules/vyos_linkagg.py b/plugins/modules/vyos_linkagg.py index 4e63e2f3..766a584d 100644 --- a/plugins/modules/vyos_linkagg.py +++ b/plugins/modules/vyos_linkagg.py @@ -42,11 +42,11 @@ options: name: description: - Name of the link aggregation group. - required: true type: str mode: description: - Mode of the link aggregation group. + default: "802.3ad" choices: - 802.3ad - active-backup @@ -55,15 +55,50 @@ options: - transmit-load-balance - adaptive-load-balance - xor-hash - - on + - "on" type: str members: description: - List of members of the link aggregation group. type: list + elements: str aggregate: description: List of link aggregation definitions. type: list + elements: dict + suboptions: + name: + description: + - Name of the link aggregation group. + required: true + type: str + mode: + description: + - Mode of the link aggregation group. + choices: + - 802.3ad + - active-backup + - broadcast + - round-robin + - transmit-load-balance + - adaptive-load-balance + - xor-hash + - "on" + type: str + members: + description: + - List of members of the link aggregation group. + type: list + elements: str + state: + description: + - State of the link aggregation group. + choices: + - present + - absent + - up + - down + type: str state: description: - State of the link aggregation group. @@ -276,7 +311,7 @@ def main(): ], default="802.3ad", ), - members=dict(type="list"), + members=dict(type="list", elements="str"), state=dict( default="present", choices=["present", "absent", "up", "down"] ), |