Add a unit test for empty src/dst
This commit is contained in:
@ -3,7 +3,9 @@ test:
|
|||||||
errors:
|
errors:
|
||||||
expected:
|
expected:
|
||||||
- "acl .* term .* source and destination family do not overlap"
|
- "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:
|
prefixlists:
|
||||||
v4only:
|
v4only:
|
||||||
@ -15,6 +17,8 @@ prefixlists:
|
|||||||
- 2001:db8::1
|
- 2001:db8::1
|
||||||
- 2001:db8::/64
|
- 2001:db8::/64
|
||||||
- 2001:db8::/48
|
- 2001:db8::/48
|
||||||
|
empty:
|
||||||
|
members: []
|
||||||
|
|
||||||
acls:
|
acls:
|
||||||
acl01:
|
acl01:
|
||||||
@ -43,6 +47,14 @@ acls:
|
|||||||
source: ::/0
|
source: ::/0
|
||||||
destination: 192.168.0.0/16
|
destination: 192.168.0.0/16
|
||||||
action: permit
|
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"
|
- description: "OK"
|
||||||
source: ::/0
|
source: ::/0
|
||||||
destination: 2001:db8::1
|
destination: 2001:db8::1
|
||||||
|
Reference in New Issue
Block a user