Add a unit test for empty src/dst

This commit is contained in:
Pim van Pelt
2023-01-16 14:30:56 +00:00
parent a282a5358a
commit 5824af9666

View File

@ -3,7 +3,9 @@ test:
errors:
expected:
- "acl .* term .* source and destination family do not overlap"
count: 6
- "acl .* term .* family any has no source"
- "acl .* term .* family any has no destination"
count: 8
---
prefixlists:
v4only:
@ -15,6 +17,8 @@ prefixlists:
- 2001:db8::1
- 2001:db8::/64
- 2001:db8::/48
empty:
members: []
acls:
acl01:
@ -43,6 +47,14 @@ acls:
source: ::/0
destination: 192.168.0.0/16
action: permit
- description: "Error, can never match an empty prefixlist"
source: empty
destination: 192.0.2.1
action: permit
- description: "Error, can never match an empty prefixlist"
source: 2001:db8::1
destination: empty
action: permit
- description: "OK"
source: ::/0
destination: 2001:db8::1