Add unit tests for loopbacks; While here, fix a bug in get_by_name(), yaay

This commit is contained in:
Pim van Pelt
2022-03-22 18:02:35 +00:00
parent 36fbbf9b35
commit 5ecd1ef22c
3 changed files with 47 additions and 1 deletions

View File

@ -0,0 +1,12 @@
loopbacks:
loop0:
description: "Loopback, no config"
loop1:
description: "Loopback, both LCP and address"
mtu: 2000
lcp: "loop56789012345"
addresses: [ 192.0.2.1/29, 2001:db8::1/64 ]
loop2:
description: "Loopback, invalid because it has an address but no LCP"
mtu: 2000
addresses: [ 192.0.2.9/29, 2001:db8:1::1/64 ]