mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-26 03:19:48 +00:00
Choose more accurate description of ambiguous switch situation
Technically, it need not be an aggregation, but link between switches generically covers it.
This commit is contained in:
parent
f46fc9f7de
commit
b7a786dc83
@ -320,11 +320,11 @@ def _map_switch_backend(args):
|
||||
if onode:
|
||||
errstr = 'Mac address {2} may match either {0} or {1} according to net.*switch* attributes.'.format(nodename, onode, mac)
|
||||
if onummacs > 2 or nummacs > 2:
|
||||
errstr += ' ({0} may match a switch trunk)'.format(nodename if nummacs > onummacs else onode)
|
||||
errstr += ' ({0} may match a link between switches)'.format(nodename if nummacs > onummacs else onode)
|
||||
else:
|
||||
errstr = 'Mac address {1} may match either {0} or a node previously reported as ambiguous according to net.*switch* attributes.'.format(nodename, mac)
|
||||
if nummacs > 2:
|
||||
errstr += ' ({0} may match a switch trunk)'.format(nodename)
|
||||
errstr += ' ({0} may match a link between switches)'.format(nodename)
|
||||
log.log({'error': errstr})
|
||||
|
||||
_nodesbymac[mac] = (None, None)
|
||||
|
Loading…
Reference in New Issue
Block a user