From d693c41c721054c24531e2c216755cb1b41c9812 Mon Sep 17 00:00:00 2001 From: Pim van Pelt Date: Sun, 13 Mar 2022 19:19:39 +0000 Subject: [PATCH] Add four simple loopback examples (with and without LCP or address) --- unittest/correct-loopback.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 unittest/correct-loopback.yaml diff --git a/unittest/correct-loopback.yaml b/unittest/correct-loopback.yaml new file mode 100644 index 0000000..be780cc --- /dev/null +++ b/unittest/correct-loopback.yaml @@ -0,0 +1,24 @@ +test: + description: "A few correct examples of well formed loopbacks" + errors: + count: 0 +--- +loopbacks: + loop0: + description: "Loopback instance loop0 with both address and LCP" + lcp: "lo0" + mtu: 9216 + addresses: [ 192.0.2.1/29 ] + + loop10: + description: "Loopback instance loop10, with address, but no LCP" + mtu: 9216 + addresses: [ 192.0.2.1/29 ] + + loop20: + description: "Loopback instance loop20, with LCP, but no address" + mtu: 9216 + lcp: "loop20" + + loop1234: + description: "Loopback instance loop1234"