fix(tgtest): filter by TG NIC model 97/35997/3
authorVratko Polak <vrpolak@cisco.com>
Wed, 20 Apr 2022 12:27:18 +0000 (14:27 +0200)
committerPeter Mikus <pmikus@cisco.com>
Tue, 26 Apr 2022 07:07:51 +0000 (07:07 +0000)
commit76def9e0a3404b38c9e7fbd58260700207b17639
tree6c861e8f7d64f4d7cc68c32d865a641904da3983
parent4afea6f79c552c271d6b0c5082f9af40e572cd20
fix(tgtest): filter by TG NIC model

The previous path computation code was only correct
for tests with DUT (and TG).
There, we only want to filter by DUT NICs, but not TG NICs
(e.g. to allow testing E810 DUT with MLX TG).

But for tests without DUT (still with TG),
we do indeed want to filter by NICs on TG, so this patch does that.

Change-Id: Ia482c6327af7bca26353ad6e503ae224d90cb3a4
Signed-off-by: Vratko Polak <vrpolak@cisco.com>
resources/libraries/python/NodePath.py