2
0
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:
Jarrod Johnson 2023-02-27 10:43:40 -05:00
parent 70d8a1059c
commit 9f7e53701e

View File

@ -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)