From 1e7227a52af9fef0d025058d369cfed96bc513a0 Mon Sep 17 00:00:00 2001 From: Pim van Pelt Date: Tue, 22 Mar 2022 15:38:43 +0000 Subject: [PATCH] Allow for bridgedomains without any member interfaces --- schema.yaml | 2 +- unittest/yaml/correct-bridgedomain.yaml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/schema.yaml b/schema.yaml index 93ede25..6fae23d 100644 --- a/schema.yaml +++ b/schema.yaml @@ -15,7 +15,7 @@ bridgedomain: mtu: int(min=128,max=9216,required=False) lcp: str(max=15,matches='[a-z]+[a-z0-9-]{,7}',required=False) addresses: list(ip_interface(),min=1,max=6,required=False) - interfaces: list(str()) + interfaces: list(str(),required=False) --- loopback: description: str(exclude='\'"',len=64,required=False) diff --git a/unittest/yaml/correct-bridgedomain.yaml b/unittest/yaml/correct-bridgedomain.yaml index 081b121..4a4d5f5 100644 --- a/unittest/yaml/correct-bridgedomain.yaml +++ b/unittest/yaml/correct-bridgedomain.yaml @@ -56,3 +56,5 @@ bridgedomains: mtu: 9000 interfaces: [ GigabitEthernet4/0/0, GigabitEthernet4/0/1 ] lcp: "bvi12" + bd13: + description: "Bridge Domain 13, it is OK to have no member interfaces"