From 8a1da516f36f5839f0f61a938ff53a23157879e7 Mon Sep 17 00:00:00 2001 From: Pim van Pelt Date: Wed, 16 Mar 2022 22:43:13 +0000 Subject: [PATCH] Fix tests for upcoming LCP assertion that intermediate interfaces 'xe0.1000' must exist as an LCP in order for Qin* sub-interfaces 'xe0.1000.1234' to be allowed --- unittest/correct-example1.yaml | 1 + unittest/error-subinterface4.yaml | 4 ++++ unittest/error-subinterface6.yaml | 1 - 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/unittest/correct-example1.yaml b/unittest/correct-example1.yaml index 6a09354..67fc435 100644 --- a/unittest/correct-example1.yaml +++ b/unittest/correct-example1.yaml @@ -39,6 +39,7 @@ interfaces: lcp: "bond0" sub-interfaces: 200: + description: "This subint is needed to build the parent LCP bond0.1000 for QinQ subint 202 bond0.1000.1234" encapsulation: dot1q: 1000 201: diff --git a/unittest/error-subinterface4.yaml b/unittest/error-subinterface4.yaml index 89ac13d..c142978 100644 --- a/unittest/error-subinterface4.yaml +++ b/unittest/error-subinterface4.yaml @@ -9,6 +9,10 @@ interfaces: lcp: "e01234" sub-interfaces: 100: + description: "Dot1Q subinterface" + encapsulation: + dot1q: 1234 + 101: description: "QinQ subinterface" addresses: [ 192.0.2.1/24 ] encapsulation: diff --git a/unittest/error-subinterface6.yaml b/unittest/error-subinterface6.yaml index b5c2531..f43158e 100644 --- a/unittest/error-subinterface6.yaml +++ b/unittest/error-subinterface6.yaml @@ -17,4 +17,3 @@ interfaces: encapsulation: ## Missing dot1q or dot1ad inner-dot1q: 100 -