Check subnets for re-used pools

This commit is contained in:
Viranch Mehta
2023-04-09 09:59:17 -07:00
parent 96f09cb4e5
commit 75cca9d12f
+1 -1
View File
@@ -248,7 +248,7 @@ class _DynamicMixin(object):
reasons.append(
f'rule {rule_num} undefined pool ' f'"{pool}"'
)
elif pool in pools_seen and geos:
elif pool in pools_seen and (subnets or geos):
reasons.append(
f'rule {rule_num} invalid, target '
f'pool "{pool}" reused'