Commit 19d18e6b authored by kesnar's avatar kesnar
Browse files

fix: p4 device cleanup

parent ff20fd05
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -81,8 +81,8 @@ class P4Driver(_Driver):
        self.__endpoint = None
        self.__endpoint = None
        self.__settings = settings
        self.__settings = settings
        self.__id = None
        self.__id = None
        self.__name = DRIVER_NAME
        self.__name = None
        self._name = self.__name
        self._name = DRIVER_NAME
        self.__vendor = P4_VAL_DEF_VENDOR
        self.__vendor = P4_VAL_DEF_VENDOR
        self.__hw_version = P4_VAL_DEF_HW_VER
        self.__hw_version = P4_VAL_DEF_HW_VER
        self.__sw_version = P4_VAL_DEF_SW_VER
        self.__sw_version = P4_VAL_DEF_SW_VER
+1 −1
Original line number Original line Diff line number Diff line
@@ -57,7 +57,7 @@ def test_scenario_cleanup(
        device_id = device['device_id']
        device_id = device['device_id']
        device_uuid = device_id['device_uuid']['uuid']
        device_uuid = device_id['device_uuid']['uuid']
        LOGGER.info('Deleting Device {:s}'.format(device_uuid))
        LOGGER.info('Deleting Device {:s}'.format(device_uuid))
        device_client.DeleteDevice(DeviceId(**device_id))
        context_client.RemoveDevice(DeviceId(**device_id))


    response = context_client.ListDevices(Empty())
    response = context_client.ListDevices(Empty())
    assert len(response.devices) == 0
    assert len(response.devices) == 0