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