From fbb82a0875dacc8200d3f663c3286104d0a1afbf Mon Sep 17 00:00:00 2001 From: GomathiselviS Date: Fri, 24 Jul 2020 16:16:03 -0400 Subject: [vyos] Fix sanity issues (#58) [vyos] Fix sanity issues Reviewed-by: https://github.com/apps/ansible-zuul --- plugins/modules/vyos_linkagg.py | 41 ++++++++++++++++++++++++++++++++++++++--- 1 file changed, 38 insertions(+), 3 deletions(-) (limited to 'plugins/modules/vyos_linkagg.py') diff --git a/plugins/modules/vyos_linkagg.py b/plugins/modules/vyos_linkagg.py index 4e63e2f..766a584 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"] ), -- cgit v1.2.3