From d138c7df9474e769e08e66ead7d1604a0b909d74 Mon Sep 17 00:00:00 2001 From: gpunathilell Date: Wed, 1 May 2024 15:40:27 +0000 Subject: [PATCH] Fix file headers --- .../sonic_platform/dpuctl_hwm.py | 17 +++++++++++++++++ .../sonic_platform/inotify_helper.py | 17 +++++++++++++++++ .../mlnx-platform-api/tests/dpupwr_inputs.py | 17 +++++++++++++++++ .../mlnx-platform-api/tests/test_dpupwr.py | 17 +++++++++++++++++ 4 files changed, 68 insertions(+) diff --git a/platform/mellanox/mlnx-platform-api/sonic_platform/dpuctl_hwm.py b/platform/mellanox/mlnx-platform-api/sonic_platform/dpuctl_hwm.py index 56e34aebe3e8..47903623bf53 100644 --- a/platform/mellanox/mlnx-platform-api/sonic_platform/dpuctl_hwm.py +++ b/platform/mellanox/mlnx-platform-api/sonic_platform/dpuctl_hwm.py @@ -1,3 +1,20 @@ +# +# Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. +# Apache-2.0 +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + """Class Implementation for per DPU functionality""" import os.path import time diff --git a/platform/mellanox/mlnx-platform-api/sonic_platform/inotify_helper.py b/platform/mellanox/mlnx-platform-api/sonic_platform/inotify_helper.py index b42caaea300f..051fa3ba6186 100644 --- a/platform/mellanox/mlnx-platform-api/sonic_platform/inotify_helper.py +++ b/platform/mellanox/mlnx-platform-api/sonic_platform/inotify_helper.py @@ -1,3 +1,20 @@ +# +# Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. +# Apache-2.0 +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + """Helper code for Inotify Implementation for reading file until timeout""" import os import errno diff --git a/platform/mellanox/mlnx-platform-api/tests/dpupwr_inputs.py b/platform/mellanox/mlnx-platform-api/tests/dpupwr_inputs.py index 7bf1ff5243e5..9d2025b57abc 100644 --- a/platform/mellanox/mlnx-platform-api/tests/dpupwr_inputs.py +++ b/platform/mellanox/mlnx-platform-api/tests/dpupwr_inputs.py @@ -1,3 +1,20 @@ +# +# Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. +# Apache-2.0 +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + """Input Data for dpuctl tests""" testData = { 'power_off': ["dpu1: Power off forced=True\nAn error occurred: " diff --git a/platform/mellanox/mlnx-platform-api/tests/test_dpupwr.py b/platform/mellanox/mlnx-platform-api/tests/test_dpupwr.py index 7a1a04e1d651..a811295cbe48 100644 --- a/platform/mellanox/mlnx-platform-api/tests/test_dpupwr.py +++ b/platform/mellanox/mlnx-platform-api/tests/test_dpupwr.py @@ -1,3 +1,20 @@ +# +# Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. +# Apache-2.0 +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + """dpuctl Tests Implementation""" import os import sys