diff --git a/src/device/service/drivers/p4/p4_driver.py b/src/device/service/drivers/p4/p4_driver.py index 49e6ed246b79c73d736d9fb91a6d4778cb08c90d..9577b9dad436929d9d9ee1804bcac47cf5c26f91 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 diff --git a/src/tests/p4/setup.sh b/src/tests/p4/setup.sh index 78e7f7372d911623cd541495ab15ad3cd548c3ef..a98ad31ab159217c209d5077b258fd398d5113cd 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