Commit 070b780d authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

Change network error text

This error is thrown if a network name already exists, not if the
network itself (e.g. “”) is defined.
Signed-off-by: default avatarMichael Hanselmann <>
Reviewed-by: default avatarGuido Trotter <>
parent 503574ec
......@@ -15865,8 +15865,8 @@ class LUNetworkAdd(LogicalUnit):
uuid = self.cfg.LookupNetwork(self.op.network_name)
if uuid:
raise errors.OpPrereqError("Network '%s' already defined" %, errors.ECODE_EXISTS)
raise errors.OpPrereqError(("Network with name '%s' already exists" %
self.op.network_name), errors.ECODE_EXISTS)
# Check tag validity
for tag in self.op.tags:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment