binapigen: enhanced vpp version resolution 77/33677/2
authorVladimir Lavor <vlavor@cisco.com>
Tue, 7 Sep 2021 13:21:19 +0000 (15:21 +0200)
committerOndrej Fabry <ofabry@cisco.com>
Wed, 8 Sep 2021 12:27:53 +0000 (12:27 +0000)
commita5739cb7160349f96c428995049ff61411689ea0
tree0d526dd451f783d353589bc7e5471538086c5abb
parentc09ee3241377aae2530a73d48c4e20641d76d0ee
binapigen: enhanced vpp version resolution

While assuming whether the VPP is installed (in order to retrieve a version),
the generator looks directly for the VPP executable instead of the API path.

This allows to get version if generated from any directory.

Signed-off-by: Vladimir Lavor <vlavor@cisco.com>
Change-Id: I147e4fba49c102bf5f1cbcf2784c212479dc15b6
binapigen/vppapi/util.go