From f21595f2e6ca6e92d1de3ade9c1582296192a9e7 Mon Sep 17 00:00:00 2001 From: pfamelis Date: Mon, 8 May 2023 14:37:05 +0300 Subject: [PATCH 1/2] fix: p4_driver now has _name variable --- src/device/service/drivers/p4/p4_driver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/device/service/drivers/p4/p4_driver.py b/src/device/service/drivers/p4/p4_driver.py index 49e6ed246..9577b9dad 100644 --- a/src/device/service/drivers/p4/p4_driver.py +++ b/src/device/service/drivers/p4/p4_driver.py @@ -81,7 +81,7 @@ class P4Driver(_Driver): self.__endpoint = None self.__settings = settings self.__id = None - self.__name = None + self.__name = DRIVER_NAME self.__vendor = P4_VAL_DEF_VENDOR self.__hw_version = P4_VAL_DEF_HW_VER self.__sw_version = P4_VAL_DEF_SW_VER -- GitLab From df89f810a82a26619175a3a3fbf52ed316be9353 Mon Sep 17 00:00:00 2001 From: pfamelis Date: Mon, 8 May 2023 15:15:50 +0300 Subject: [PATCH 2/2] fix: add container selection in setup script --- src/tests/p4/setup.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tests/p4/setup.sh b/src/tests/p4/setup.sh index 78e7f7372..a98ad31ab 100755 --- a/src/tests/p4/setup.sh +++ b/src/tests/p4/setup.sh @@ -16,7 +16,7 @@ export POD_NAME=$(kubectl get pods -n=tfs | grep device | awk '{print $1}') -kubectl exec ${POD_NAME} -n=tfs -- mkdir /root/p4 +kubectl exec ${POD_NAME} -n=tfs -c=server -- mkdir /root/p4 -kubectl cp src/tests/p4/p4/p4info.txt tfs/${POD_NAME}:/root/p4 -kubectl cp src/tests/p4/p4/bmv2.json tfs/${POD_NAME}:/root/p4 +kubectl cp src/tests/p4/p4/p4info.txt tfs/${POD_NAME}:/root/p4 -c=server +kubectl cp src/tests/p4/p4/bmv2.json tfs/${POD_NAME}:/root/p4 -c=server -- GitLab