system: validate monitor uniqueness based on the host route presence #9844
This is a little tricky to get right but that should be it:
If the host route is disabled we allow the same monitor IP to be used
in several gateways. Dpinger uses -B to bind the source address which
should make this work as per the ticket. We still need to make sure
that although the gateway in question disables the host route feature
another gateway may still have it enabled so we also need to fail in
that case. Tested the combinations and looks ok also looking at:
# pluginctl -r host_routes
Would still consider this an experiment.
(cherry picked from commit 1156faee1df99f4d010520ac0f074cb6266864a6)
dnsmasq: remove a too-strict validation
When adding ranges from setaddr.php we do not use the model so
one can input ::1000 etc and then Dnsmasq migration will fail
due to it not setting a constructor. We still validate :: prefix
for constructor use but now take :: prefix verbatim which
doesn't interfere with Dnsmasq service start.
Discussed-with: @monviech
(cherry picked from commit a5773fe71f5703426761b9965bd49e468366de27)
dnsmasq: remove a too-strict validation
When adding ranges from setaddr.php we do not use the model so
one can input ::1000 etc and then Dnsmasq migration will fail
due to it not setting a constructor. We still validate :: prefix
for constructor use but now take :: prefix verbatim which
doesn't interfere with Dnsmasq service start.
Discussed-with: @monviech