def METHOD_NAME(self) -> List[str]:
    namespaces = []
    self._get_device_from_ls()
    for row in self._ls_devices.splitlines():
        if isinstance(self._node.os, BSD):
            matched_result = self._namespace_pattern_bsd.match(row)
        else:
            matched_result = self._namespace_pattern.match(row)
        if matched_result:
            namespaces.append(matched_result.group("namespace"))
    return namespaces