fix(vpp_device): pci address existence condition 81/34481/3
authorJuraj Linkeš <juraj.linkes@pantheon.tech>
Fri, 12 Nov 2021 13:34:52 +0000 (14:34 +0100)
committerPeter Mikus <pmikus@cisco.com>
Wed, 19 Jan 2022 12:08:34 +0000 (12:08 +0000)
commit9744be3170135285c6d7017134e5ae70e75d9afb
tree3c10e82c11f4e5a02a8df9a58d7b8c6ce0f2cc30
parent54c9554e142d26447163f7ab7539e23d49d2f866
fix(vpp_device): pci address existence condition

The function get_pci_addr could check a different PCI_ADDR in case the
netdev device directory doesn't exit. Move the check so that it always
uses the proper PCI_ADDR and add a failure case when the netdev device
directory doesn't exist.

Change-Id: Ibadfea3fba34509cd3ea8f906ac5962c0f01dd17
Signed-off-by: Juraj Linkeš <juraj.linkes@pantheon.tech>
resources/libraries/bash/function/device.sh