Allow bondethernet members list to be empty, and omitted from the YAML config

This commit is contained in:
Pim van Pelt
2022-04-05 16:08:51 +00:00
parent 41bce7131c
commit 8971c325c0
5 changed files with 22 additions and 3 deletions

View File

@ -34,7 +34,7 @@ loopback:
---
bondethernet:
description: str(exclude='\'"',len=64,required=False)
interfaces: list(str(matches='.*GigabitEthernet[0-9]+/[0-9]+/[0-9]+'))
interfaces: list(str(matches='.*GigabitEthernet[0-9]+/[0-9]+/[0-9]+'),required=False)
mode: enum('round-robin','active-backup','broadcast','lacp','xor',required=False)
load-balance: enum('l2','l23','l34',required=False)
---