From 97cdb6af5cda66bd15426dd3438a00901dbc5271 Mon Sep 17 00:00:00 2001 From: Lior Avramov <73036155+liorghub@users.noreply.github.com> Date: Tue, 2 May 2023 10:35:16 +0300 Subject: [PATCH] [Mellanox] Add copyright header to ECMP calculator files (#14825) - Why I did it Add NVIDIA Copyright header to NVIDIA files added lately - How I did it Add NVIDIA Copyright header for the relevant files - How to verify it N/A (only commented text was added). --- .../ecmp_calculator/ecmp_calc.py | 16 ++++++++++++++++ .../ecmp_calculator/ecmp_calc_sdk.py | 16 ++++++++++++++++ .../ecmp_calculator/packet_scheme.py | 16 ++++++++++++++++ .../mellanox/docker-syncd-mlnx/lib/port_utils.py | 16 ++++++++++++++++ 4 files changed, 64 insertions(+) diff --git a/platform/mellanox/docker-syncd-mlnx/ecmp_calculator/ecmp_calc.py b/platform/mellanox/docker-syncd-mlnx/ecmp_calculator/ecmp_calc.py index 2fbcef8699..28b0800238 100755 --- a/platform/mellanox/docker-syncd-mlnx/ecmp_calculator/ecmp_calc.py +++ b/platform/mellanox/docker-syncd-mlnx/ecmp_calculator/ecmp_calc.py @@ -1,4 +1,20 @@ #!/usr/bin/env python3 +# +# Copyright (c) 2022-2023 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. +# import json, jsonschema import argparse diff --git a/platform/mellanox/docker-syncd-mlnx/ecmp_calculator/ecmp_calc_sdk.py b/platform/mellanox/docker-syncd-mlnx/ecmp_calculator/ecmp_calc_sdk.py index 564b2ffb02..4df1d08dca 100755 --- a/platform/mellanox/docker-syncd-mlnx/ecmp_calculator/ecmp_calc_sdk.py +++ b/platform/mellanox/docker-syncd-mlnx/ecmp_calculator/ecmp_calc_sdk.py @@ -1,4 +1,20 @@ #!/usr/bin/env python3 +# +# Copyright (c) 2022-2023 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. +# from python_sdk_api.sx_api import * from port_utils import sx_check_rc, SWITCH_ID diff --git a/platform/mellanox/docker-syncd-mlnx/ecmp_calculator/packet_scheme.py b/platform/mellanox/docker-syncd-mlnx/ecmp_calculator/packet_scheme.py index 922669f42a..f7f83e8fd5 100755 --- a/platform/mellanox/docker-syncd-mlnx/ecmp_calculator/packet_scheme.py +++ b/platform/mellanox/docker-syncd-mlnx/ecmp_calculator/packet_scheme.py @@ -1,4 +1,20 @@ #!/usr/bin/env python3 +# +# Copyright (c) 2022-2023 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. +# PACKET_SCHEME = { "type" : "object", diff --git a/platform/mellanox/docker-syncd-mlnx/lib/port_utils.py b/platform/mellanox/docker-syncd-mlnx/lib/port_utils.py index f00d22d542..6dad836e19 100755 --- a/platform/mellanox/docker-syncd-mlnx/lib/port_utils.py +++ b/platform/mellanox/docker-syncd-mlnx/lib/port_utils.py @@ -1,4 +1,20 @@ #!/usr/bin/env python3 +# +# Copyright (c) 2022-2023 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. +# from python_sdk_api.sx_api import * import inspect