mirror of
https://github.com/xcat2/confluent.git
synced 2025-02-09 23:34:54 +00:00
Avoid latching onto USB nic in a vswitch as 'the nic'
In esxi, some builds may have USB nic brought up in a vswitch. Detect and avoid that scenario.
This commit is contained in:
parent
70d8a1059c
commit
9f7e53701e
@ -33,6 +33,8 @@ for info in vswinfo.split('\n'):
|
||||
upinfo = uplinkmatch.match(info)
|
||||
if upinfo:
|
||||
vmnic = upinfo.group(1)
|
||||
if vmnic and 'vusb0' not in vmnic:
|
||||
break
|
||||
try:
|
||||
with open('/tmp/confluentident/cnflnt.jsn') as identin:
|
||||
identcfg = json.load(identin)
|
||||
|
Loading…
x
Reference in New Issue
Block a user