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. “1.2.3.0/24”) is defined.
Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
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" %
self.op.network, 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