diagnostic: add test for IPv6 minimum prefix
This commit is contained in:
parent
ee54f8f8d3
commit
03fe062973
1 changed files with 12 additions and 3 deletions
|
@ -1609,5 +1609,14 @@ mod tests {
|
|||
.iter()
|
||||
.any(|d| d.code == DiagnosticCode::InvalidCidrNotation)
|
||||
);
|
||||
|
||||
// Test edge case: IPv6 minimum prefix
|
||||
let source_ipv6_zero = "ip6 saddr ::/0 accept";
|
||||
let diagnostics_ipv6_zero = analyzer.validate_cidr_notation(source_ipv6_zero);
|
||||
assert!(
|
||||
!diagnostics_ipv6_zero
|
||||
.iter()
|
||||
.any(|d| d.code == DiagnosticCode::InvalidCidrNotation)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue