Skip to content

Commit

Permalink
Fix file headers
Browse files Browse the repository at this point in the history
  • Loading branch information
gpunathilell committed May 1, 2024
1 parent 8ef9836 commit d138c7d
Show file tree
Hide file tree
Showing 4 changed files with 68 additions and 0 deletions.
17 changes: 17 additions & 0 deletions platform/mellanox/mlnx-platform-api/sonic_platform/dpuctl_hwm.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
17 changes: 17 additions & 0 deletions platform/mellanox/mlnx-platform-api/tests/dpupwr_inputs.py
Original file line number Diff line number Diff line change
@@ -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: "
Expand Down
17 changes: 17 additions & 0 deletions platform/mellanox/mlnx-platform-api/tests/test_dpupwr.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit d138c7d

Please sign in to comment.