Commit 0e3e7470 authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

Merge branch 'feat/351-update-copyright-headers-for-r6' into 'develop'

Resolve "Update copyright headers for R6"

See merge request !407
parents 352844ae 676bf279
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
// Copyright 2022-2025 ETSI OSG/SDG TeraFlowSDN (TFS) (https://tfs.etsi.org/)
// Copyright 2022-2025 ETSI SDG TeraFlowSDN (TFS) (https://tfs.etsi.org/)
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
+1 −1
Original line number Diff line number Diff line
// Copyright 2022-2025 ETSI OSG/SDG TeraFlowSDN (TFS) (https://tfs.etsi.org/)
// Copyright 2022-2025 ETSI SDG TeraFlowSDN (TFS) (https://tfs.etsi.org/)
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
+27 −1
Original line number Diff line number Diff line
@@ -94,7 +94,9 @@ def skip_file(file_path : str) -> bool:
        if file_path.endswith('references_probes_libraries.txt'): return True
        return False
    if '/nbi/service/ietf_network/bindings/' in file_path: return True
    if '/nbi/service/ietf_network_slice/bindings/' in file_path: return True
    if '/nbi/service/ietf_network_slice/bindings/' in file_path:
        if file_path.endswith('.py'): return False
        return True
    if '/nbi/service/ietf_l3vpn/yang/' in file_path: return True
    if '/nbi/service/ietf_network/yang/' in file_path: return True
    if '/tests/tools/mock_qkd_nodes/yang/' in file_path: return True
@@ -120,6 +122,30 @@ def process_file(
    file_path : str, file_no_header : TextIOWrapper, file_skipped : TextIOWrapper, file_updated : TextIOWrapper
) -> None:
    if skip_file(file_path):
        # silent skips
        if file_path.startswith('./.git'): return
        if file_path.startswith('./libyang'): return
        if file_path.startswith('./tmp'): return
        if file_path.startswith('./hackfest/kafka/kafka_2.13-2.8.0/'): return
        if file_path.startswith('./hackfest/tapi/server/tapi_server/'): return
        if '/__pycache__/' in file_path: return
        if '/nbi/service/ietf_network/bindings/' in file_path: return
        if '/target/classes/' in file_path: return
        if '/target/generated-classes/' in file_path: return
        if '/target/generated-sources/' in file_path: return
        if '/target/test-classes/' in file_path: return
        if '/git/openconfig/public/' in file_path: return
        if file_path.endswith('.class'): return
        if file_path.endswith('.csv'): return
        if file_path.endswith('.jar'): return
        if file_path.endswith('.json'): return
        if file_path.endswith('.pyc'): return
        if file_path.endswith('.png'): return
        if file_path.endswith('.zip'): return
        if file_path.endswith('_pb2.py'): return
        if file_path.endswith('_grpc.py'): return

        # verbose skip
        file_skipped.write(file_path + '\n')
        return

+1 −1
Original line number Diff line number Diff line
# Copyright 2022-2024 ETSI SDG TeraFlowSDN (TFS) (https://tfs.etsi.org/)
# Copyright 2022-2025 ETSI SDG TeraFlowSDN (TFS) (https://tfs.etsi.org/)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
+1 −1
Original line number Diff line number Diff line
# Copyright 2022-2024 ETSI SDG TeraFlowSDN (TFS) (https://tfs.etsi.org/)
# Copyright 2022-2025 ETSI SDG TeraFlowSDN (TFS) (https://tfs.etsi.org/)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Loading