From 9f7e53701e2e52750a695d5ec85c67a36f675e5d Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Mon, 27 Feb 2023 10:43:40 -0500 Subject: [PATCH] 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. --- confluent_osdeploy/esxi7/profiles/hypervisor/scripts/makeksnet | 2 ++ 1 file changed, 2 insertions(+) diff --git a/confluent_osdeploy/esxi7/profiles/hypervisor/scripts/makeksnet b/confluent_osdeploy/esxi7/profiles/hypervisor/scripts/makeksnet index 7d46a53e..eeb72ef7 100644 --- a/confluent_osdeploy/esxi7/profiles/hypervisor/scripts/makeksnet +++ b/confluent_osdeploy/esxi7/profiles/hypervisor/scripts/makeksnet @@ -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)