Make clearer that 'is not allowed' actually means that the address conflicts with another

This commit is contained in:
Pim van Pelt
2022-03-14 00:17:33 +00:00
parent b6ab172986
commit a5a58c1261
5 changed files with 9 additions and 9 deletions

View File

@ -56,7 +56,7 @@ def validate_bridgedomains(yaml):
if 'addresses' in iface:
for a in iface['addresses']:
if not address.is_allowed(yaml, ifname, iface['addresses'], a):
msgs.append("bridgedomain %s IP address %s is not allowed" % (ifname, a))
msgs.append("bridgedomain %s IP address %s conflicts with another" % (ifname, a))
result = False
if 'interfaces' in iface: