diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 64971bb0..7c87762b 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -2,6 +2,26 @@ # Read the Docs configuration file # See https://docs.readthedocs.io/en/stable/config-file/v2.html for details +# SPDX-License-Identifier: MIT +# Copyright (c) 2022 The Authors. + +# Authors: The Mizar Team + +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions:The above copyright +# notice and this permission notice shall be included in all copies or +# substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", +# WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +# TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE +# FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR +# THE USE OR OTHER DEALINGS IN THE SOFTWARE. + # Required version: 2 diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md index 470c9668..484591e1 100644 --- a/CODE_OF_CONDUCT.md +++ b/CODE_OF_CONDUCT.md @@ -1,3 +1,25 @@ + + # Community Code of Conduct Mizar follows the [CNCF Code of Conduct](https://github.com/cncf/foundation/blob/master/code-of-conduct.md). diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 262921bb..5c5854e8 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,3 +1,25 @@ + + Welcome to Mizar! ## Introduction diff --git a/README.md b/README.md index 33149af3..b5903028 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,25 @@ + + # Mizar – High Scale and High Performance Cloud Networking # Mizar is a large scale and high-performance cloud networking interconnect for diff --git a/appspec.yml b/appspec.yml index f4a7bd88..a37baa58 100644 --- a/appspec.yml +++ b/appspec.yml @@ -1,3 +1,23 @@ +# SPDX-License-Identifier: MIT +# Copyright (c) 2022 The Authors. + +# Authors: The Mizar Team + +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions:The above copyright +# notice and this permission notice shall be included in all copies or +# substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", +# WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +# TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE +# FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR +# THE USE OR OTHER DEALINGS IN THE SOFTWARE. + version: 0.0 os: linux files: diff --git a/bootstrap.sh b/bootstrap.sh index 1f3fa944..a445cec0 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -1,5 +1,25 @@ #!/bin/bash +# SPDX-License-Identifier: MIT +# Copyright (c) 2022 The Authors. + +# Authors: The Mizar Team + +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions:The above copyright +# notice and this permission notice shall be included in all copies or +# substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", +# WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +# TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE +# FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR +# THE USE OR OTHER DEALINGS IN THE SOFTWARE. + logout_needed=false function install-dev-packages { diff --git a/cli/mizarapi.py b/cli/mizarapi.py index 41b825d4..fa330452 100644 --- a/cli/mizarapi.py +++ b/cli/mizarapi.py @@ -1,3 +1,23 @@ +# SPDX-License-Identifier: MIT +# Copyright (c) 2022 The Authors. + +# Authors: The Mizar Team + +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions:The above copyright +# notice and this permission notice shall be included in all copies or +# substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", +# WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +# TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE +# FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR +# THE USE OR OTHER DEALINGS IN THE SOFTWARE. + import logging import datetime from kubernetes import client, config diff --git a/cluster.yaml b/cluster.yaml index d5fd0b46..88c901ef 100644 --- a/cluster.yaml +++ b/cluster.yaml @@ -1,3 +1,23 @@ +# SPDX-License-Identifier: MIT +# Copyright (c) 2022 The Authors. + +# Authors: The Mizar Team + +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions:The above copyright +# notice and this permission notice shall be included in all copies or +# substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", +# WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +# TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE +# FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR +# THE USE OR OTHER DEALINGS IN THE SOFTWARE. + # three node (two workers) cluster config kind: Cluster apiVersion: kind.x-k8s.io/v1alpha4 diff --git a/docs/design/dp_network_policy.md b/docs/design/dp_network_policy.md index e5c3903e..5d5ddede 100644 --- a/docs/design/dp_network_policy.md +++ b/docs/design/dp_network_policy.md @@ -1,3 +1,25 @@ + + # Enforcing Kubernetes Network Policy in Mizar diff --git a/docs/design/dp_network_policy_arktos_mizar_int.md b/docs/design/dp_network_policy_arktos_mizar_int.md index f340c5ca..21df384c 100644 --- a/docs/design/dp_network_policy_arktos_mizar_int.md +++ b/docs/design/dp_network_policy_arktos_mizar_int.md @@ -1,3 +1,25 @@ + + # Enforcing Kubernetes Network Policy in an Arktos-Mizar Integrated Environment diff --git a/docs/dev/network-perf-test.md b/docs/dev/network-perf-test.md index ec6ea33f..cda80e70 100644 --- a/docs/dev/network-perf-test.md +++ b/docs/dev/network-perf-test.md @@ -1,3 +1,25 @@ + + # How to test Mizar network performance This document records the considerations of Mizar network performance testing, and the tools used and steps of processes in metric collecting. diff --git a/etc/deploy/deploy.mizar.ci.yaml b/etc/deploy/deploy.mizar.ci.yaml index ef758d57..0c7c24ca 100644 --- a/etc/deploy/deploy.mizar.ci.yaml +++ b/etc/deploy/deploy.mizar.ci.yaml @@ -1,3 +1,23 @@ +# SPDX-License-Identifier: MIT +# Copyright (c) 2022 The Authors. + +# Authors: The Mizar Team + +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions:The above copyright +# notice and this permission notice shall be included in all copies or +# substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", +# WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +# TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE +# FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR +# THE USE OR OTHER DEALINGS IN THE SOFTWARE. + # mizar CRD bouncers.mizar.com apiVersion: apiextensions.k8s.io/v1beta1 kind: CustomResourceDefinition diff --git a/etc/deploy/deploy.mizar.components.direct-api-access.yaml b/etc/deploy/deploy.mizar.components.direct-api-access.yaml index ebcc5dcc..344e773a 100644 --- a/etc/deploy/deploy.mizar.components.direct-api-access.yaml +++ b/etc/deploy/deploy.mizar.components.direct-api-access.yaml @@ -1,3 +1,23 @@ +# SPDX-License-Identifier: MIT +# Copyright (c) 2022 The Authors. + +# Authors: The Mizar Team + +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions:The above copyright +# notice and this permission notice shall be included in all copies or +# substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", +# WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +# TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE +# FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR +# THE USE OR OTHER DEALINGS IN THE SOFTWARE. + --- # mizar CRD bouncers.mizar.com apiVersion: apiextensions.k8s.io/v1beta1 diff --git a/etc/deploy/deploy.mizar.dev.yaml b/etc/deploy/deploy.mizar.dev.yaml index 307126a5..0beb6e5e 100644 --- a/etc/deploy/deploy.mizar.dev.yaml +++ b/etc/deploy/deploy.mizar.dev.yaml @@ -1,3 +1,23 @@ +# SPDX-License-Identifier: MIT +# Copyright (c) 2022 The Authors. + +# Authors: The Mizar Team + +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions:The above copyright +# notice and this permission notice shall be included in all copies or +# substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", +# WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +# TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE +# FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR +# THE USE OR OTHER DEALINGS IN THE SOFTWARE. + # mizar CRD bouncers.mizar.com apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition diff --git a/etc/deploy/deploy.mizar.yaml b/etc/deploy/deploy.mizar.yaml index e2f13b9f..456082f4 100644 --- a/etc/deploy/deploy.mizar.yaml +++ b/etc/deploy/deploy.mizar.yaml @@ -1,3 +1,23 @@ +# SPDX-License-Identifier: MIT +# Copyright (c) 2022 The Authors. + +# Authors: The Mizar Team + +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions:The above copyright +# notice and this permission notice shall be included in all copies or +# substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", +# WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +# TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE +# FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR +# THE USE OR OTHER DEALINGS IN THE SOFTWARE. + # mizar CRD bouncers.mizar.com apiVersion: apiextensions.k8s.io/v1beta1 kind: CustomResourceDefinition diff --git a/kernelupdate.sh b/kernelupdate.sh index 12cde26c..39926a72 100755 --- a/kernelupdate.sh +++ b/kernelupdate.sh @@ -1,5 +1,25 @@ #!/bin/bash +# SPDX-License-Identifier: MIT +# Copyright (c) 2022 The Authors. + +# Authors: The Mizar Team + +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions:The above copyright +# notice and this permission notice shall be included in all copies or +# substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", +# WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +# TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE +# FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR +# THE USE OR OTHER DEALINGS IN THE SOFTWARE. + function update-kernel-for-mizar { kernel_dir="/tmp/linux-5.6-rc2" mkdir -p $kernel_dir diff --git a/mizar/common/maglev_table.py b/mizar/common/maglev_table.py index e2eb3f54..33a54f7e 100644 --- a/mizar/common/maglev_table.py +++ b/mizar/common/maglev_table.py @@ -1,3 +1,23 @@ +# SPDX-License-Identifier: MIT +# Copyright (c) 2022 The Authors. + +# Authors: The Mizar Team + +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions:The above copyright +# notice and this permission notice shall be included in all copies or +# substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", +# WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +# TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE +# FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR +# THE USE OR OTHER DEALINGS IN THE SOFTWARE. + import logging from zlib import crc32, adler32 diff --git a/mizar/daemon/app.py b/mizar/daemon/app.py index e2be251c..fca5359c 100644 --- a/mizar/daemon/app.py +++ b/mizar/daemon/app.py @@ -1,3 +1,22 @@ +# SPDX-License-Identifier: MIT +# Copyright (c) 2022 The Authors. + +# Authors: The Mizar Team + +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions:The above copyright +# notice and this permission notice shall be included in all copies or +# substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", +# WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +# TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE +# FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR +# THE USE OR OTHER DEALINGS IN THE SOFTWARE. import grpc import time diff --git a/mizar/daemon/droplet_service.py b/mizar/daemon/droplet_service.py index 98060cba..ad79b199 100644 --- a/mizar/daemon/droplet_service.py +++ b/mizar/daemon/droplet_service.py @@ -1,3 +1,23 @@ +# SPDX-License-Identifier: MIT +# Copyright (c) 2022 The Authors. + +# Authors: The Mizar Team + +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions:The above copyright +# notice and this permission notice shall be included in all copies or +# substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", +# WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +# TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE +# FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR +# THE USE OR OTHER DEALINGS IN THE SOFTWARE. + import logging import sys import os diff --git a/mizar/daemon/interface_service.py b/mizar/daemon/interface_service.py index db9253dc..682eb571 100644 --- a/mizar/daemon/interface_service.py +++ b/mizar/daemon/interface_service.py @@ -1,3 +1,23 @@ +# SPDX-License-Identifier: MIT +# Copyright (c) 2022 The Authors. + +# Authors: The Mizar Team + +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions:The above copyright +# notice and this permission notice shall be included in all copies or +# substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", +# WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +# TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE +# FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR +# THE USE OR OTHER DEALINGS IN THE SOFTWARE. + import logging import sys import os diff --git a/mizar/obj/tests/test_arktos_net.yaml b/mizar/obj/tests/test_arktos_net.yaml index 0e87903e..dba3bc65 100644 --- a/mizar/obj/tests/test_arktos_net.yaml +++ b/mizar/obj/tests/test_arktos_net.yaml @@ -1,3 +1,23 @@ +# SPDX-License-Identifier: MIT +# Copyright (c) 2022 The Authors. + +# Authors: The Mizar Team + +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions:The above copyright +# notice and this permission notice shall be included in all copies or +# substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", +# WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +# TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE +# FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR +# THE USE OR OTHER DEALINGS IN THE SOFTWARE. + apiVersion: "arktos.futurewei.com/v1" kind: Network metadata: diff --git a/mizar/obj/tests/test_arktos_nginx.yaml b/mizar/obj/tests/test_arktos_nginx.yaml index eaf6cb6f..d8c31fc8 100644 --- a/mizar/obj/tests/test_arktos_nginx.yaml +++ b/mizar/obj/tests/test_arktos_nginx.yaml @@ -1,3 +1,23 @@ +# SPDX-License-Identifier: MIT +# Copyright (c) 2022 The Authors. + +# Authors: The Mizar Team + +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions:The above copyright +# notice and this permission notice shall be included in all copies or +# substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", +# WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +# TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE +# FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR +# THE USE OR OTHER DEALINGS IN THE SOFTWARE. + apiVersion: v1 kind: Pod metadata: diff --git a/mizar/obj/tests/test_namespace_1.yaml b/mizar/obj/tests/test_namespace_1.yaml index 7bba5b01..75d8698f 100644 --- a/mizar/obj/tests/test_namespace_1.yaml +++ b/mizar/obj/tests/test_namespace_1.yaml @@ -1,3 +1,23 @@ +# SPDX-License-Identifier: MIT +# Copyright (c) 2022 The Authors. + +# Authors: The Mizar Team + +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions:The above copyright +# notice and this permission notice shall be included in all copies or +# substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", +# WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +# TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE +# FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR +# THE USE OR OTHER DEALINGS IN THE SOFTWARE. + apiVersion: v1 kind: Namespace metadata: diff --git a/mizar/obj/tests/test_pod_arktos_1.yaml b/mizar/obj/tests/test_pod_arktos_1.yaml index 483b3109..3adf7fc8 100644 --- a/mizar/obj/tests/test_pod_arktos_1.yaml +++ b/mizar/obj/tests/test_pod_arktos_1.yaml @@ -1,3 +1,23 @@ +# SPDX-License-Identifier: MIT +# Copyright (c) 2022 The Authors. + +# Authors: The Mizar Team + +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions:The above copyright +# notice and this permission notice shall be included in all copies or +# substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", +# WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +# TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE +# FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR +# THE USE OR OTHER DEALINGS IN THE SOFTWARE. + apiVersion: v1 kind: Pod metadata: diff --git a/mizar/obj/tests/test_pod_arktos_2.yaml b/mizar/obj/tests/test_pod_arktos_2.yaml index 022efe78..5143a859 100644 --- a/mizar/obj/tests/test_pod_arktos_2.yaml +++ b/mizar/obj/tests/test_pod_arktos_2.yaml @@ -1,3 +1,23 @@ +# SPDX-License-Identifier: MIT +# Copyright (c) 2022 The Authors. + +# Authors: The Mizar Team + +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions:The above copyright +# notice and this permission notice shall be included in all copies or +# substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", +# WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +# TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE +# FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR +# THE USE OR OTHER DEALINGS IN THE SOFTWARE. + apiVersion: v1 kind: Pod metadata: diff --git a/mizar/obj/tests/test_pod_arktos_vpc1.yaml b/mizar/obj/tests/test_pod_arktos_vpc1.yaml index 4f12d709..50f8f7fc 100644 --- a/mizar/obj/tests/test_pod_arktos_vpc1.yaml +++ b/mizar/obj/tests/test_pod_arktos_vpc1.yaml @@ -1,3 +1,23 @@ +# SPDX-License-Identifier: MIT +# Copyright (c) 2022 The Authors. + +# Authors: The Mizar Team + +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions:The above copyright +# notice and this permission notice shall be included in all copies or +# substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", +# WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +# TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE +# FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR +# THE USE OR OTHER DEALINGS IN THE SOFTWARE. + apiVersion: v1 kind: Pod metadata: diff --git a/mizar/obj/tests/test_pod_arktos_vpc2.yaml b/mizar/obj/tests/test_pod_arktos_vpc2.yaml index 5d921e49..0045057d 100644 --- a/mizar/obj/tests/test_pod_arktos_vpc2.yaml +++ b/mizar/obj/tests/test_pod_arktos_vpc2.yaml @@ -1,3 +1,23 @@ +# SPDX-License-Identifier: MIT +# Copyright (c) 2022 The Authors. + +# Authors: The Mizar Team + +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions:The above copyright +# notice and this permission notice shall be included in all copies or +# substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", +# WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +# TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE +# FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR +# THE USE OR OTHER DEALINGS IN THE SOFTWARE. + apiVersion: v1 kind: Pod metadata: diff --git a/mizar/obj/tests/test_seperate_nodes_pod.yaml b/mizar/obj/tests/test_seperate_nodes_pod.yaml index 0d0ddc92..379d512b 100644 --- a/mizar/obj/tests/test_seperate_nodes_pod.yaml +++ b/mizar/obj/tests/test_seperate_nodes_pod.yaml @@ -1,3 +1,23 @@ +# SPDX-License-Identifier: MIT +# Copyright (c) 2022 The Authors. + +# Authors: The Mizar Team + +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions:The above copyright +# notice and this permission notice shall be included in all copies or +# substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", +# WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +# TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE +# FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR +# THE USE OR OTHER DEALINGS IN THE SOFTWARE. + apiVersion: v1 kind: Pod metadata: diff --git a/mizar/tests/helper.py b/mizar/tests/helper.py index 333a7146..3eafaec9 100644 --- a/mizar/tests/helper.py +++ b/mizar/tests/helper.py @@ -1,3 +1,23 @@ +# SPDX-License-Identifier: MIT +# Copyright (c) 2020 The Authors. + +# Authors: The Mizar Team + +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions:The above copyright +# notice and this permission notice shall be included in all copies or +# substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", +# WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +# TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE +# FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR +# THE USE OR OTHER DEALINGS IN THE SOFTWARE. + import logging logging.basicConfig() diff --git a/mizar/tests/test_basic_maglev.py b/mizar/tests/test_basic_maglev.py index f912cb72..336ad75f 100755 --- a/mizar/tests/test_basic_maglev.py +++ b/mizar/tests/test_basic_maglev.py @@ -1,3 +1,23 @@ +# SPDX-License-Identifier: MIT +# Copyright (c) 2020 The Authors. + +# Authors: The Mizar Team + +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions:The above copyright +# notice and this permission notice shall be included in all copies or +# substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", +# WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +# TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE +# FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR +# THE USE OR OTHER DEALINGS IN THE SOFTWARE. + import unittest import logging from mizar.common.maglev_table import MaglevTable diff --git a/mkdocs.yml b/mkdocs.yml index 5c623d90..a64c4073 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -1,3 +1,23 @@ +# SPDX-License-Identifier: MIT +# Copyright (c) 2022 The Authors. + +# Authors: The Mizar Team + +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions:The above copyright +# notice and this permission notice shall be included in all copies or +# substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", +# WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +# TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE +# FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR +# THE USE OR OTHER DEALINGS IN THE SOFTWARE. + site_name: Mizar Project docs_dir: 'docs' site_dir: '.tmp/documentation' diff --git a/replace-containerd.sh b/replace-containerd.sh index 8a151ed1..5f2863e7 100644 --- a/replace-containerd.sh +++ b/replace-containerd.sh @@ -1,5 +1,25 @@ #!/bin/bash +# SPDX-License-Identifier: MIT +# Copyright (c) 2022 The Authors. + +# Authors: The Mizar Team + +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions:The above copyright +# notice and this permission notice shall be included in all copies or +# substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", +# WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +# TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE +# FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR +# THE USE OR OTHER DEALINGS IN THE SOFTWARE. + cd $HOME/go/src/k8s.io/arktos wget -qO- https://github.com/CentaurusInfra/containerd/releases/download/tenant-cni-args/containerd.zip | zcat > /tmp/containerd sudo chmod +x /tmp/containerd diff --git a/setup-machine-arktos.sh b/setup-machine-arktos.sh index 252978ed..100446df 100644 --- a/setup-machine-arktos.sh +++ b/setup-machine-arktos.sh @@ -1,5 +1,25 @@ #!/bin/bash +# SPDX-License-Identifier: MIT +# Copyright (c) 2022 The Authors. + +# Authors: The Mizar Team + +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions:The above copyright +# notice and this permission notice shall be included in all copies or +# substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", +# WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +# TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE +# FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR +# THE USE OR OTHER DEALINGS IN THE SOFTWARE. + #################### echo Setup: Install go \(currently limited to version 1.13.9\) diff --git a/setup.py b/setup.py index 4d9dfe7e..8339d73a 100644 --- a/setup.py +++ b/setup.py @@ -1,3 +1,23 @@ +# SPDX-License-Identifier: MIT +# Copyright (c) 2022 The Authors. + +# Authors: The Mizar Team + +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions:The above copyright +# notice and this permission notice shall be included in all copies or +# substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", +# WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +# TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE +# FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR +# THE USE OR OTHER DEALINGS IN THE SOFTWARE. + from setuptools import setup, find_packages setup( diff --git a/src/dmn/trn_bw_qos_monitor.c b/src/dmn/trn_bw_qos_monitor.c index bd614a78..2b9f93c9 100644 --- a/src/dmn/trn_bw_qos_monitor.c +++ b/src/dmn/trn_bw_qos_monitor.c @@ -1,3 +1,27 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/** + * @file trn_agent_xdp_usr.c + * @author The Mizar Team + * + * @brief User space APIs to program transit agent + * + * @copyright Copyright (c) 2022 The Authors. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 2 of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + * + */ + #include #include #include diff --git a/test/Dockerfile b/test/Dockerfile index 293ac275..57017cf1 100644 --- a/test/Dockerfile +++ b/test/Dockerfile @@ -1,3 +1,23 @@ +# SPDX-License-Identifier: MIT +# Copyright (c) 2022 The Authors. + +# Authors: The Mizar Team + +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions:The above copyright +# notice and this permission notice shall be included in all copies or +# substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", +# WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +# TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE +# FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR +# THE USE OR OTHER DEALINGS IN THE SOFTWARE. + FROM ubuntu:latest RUN apt-get update -y && apt-get install -y \ sudo \ diff --git a/teste2e/DISABLED_test_basic_scaled_endpoint.py b/teste2e/DISABLED_test_basic_scaled_endpoint.py index dcaac0a9..3f0850f5 100644 --- a/teste2e/DISABLED_test_basic_scaled_endpoint.py +++ b/teste2e/DISABLED_test_basic_scaled_endpoint.py @@ -1,3 +1,22 @@ +# SPDX-License-Identifier: MIT +# Copyright (c) 2022 The Authors. + +# Authors: The Mizar Team + +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions:The above copyright +# notice and this permission notice shall be included in all copies or +# substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", +# WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +# TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE +# FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR +# THE USE OR OTHER DEALINGS IN THE SOFTWARE. import unittest from teste2e.common.k8s import * diff --git a/teste2e/common/helper.py b/teste2e/common/helper.py index 85c62603..7e6bc014 100644 --- a/teste2e/common/helper.py +++ b/teste2e/common/helper.py @@ -1,3 +1,23 @@ +# SPDX-License-Identifier: MIT +# Copyright (c) 2022 The Authors. + +# Authors: The Mizar Team + +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions:The above copyright +# notice and this permission notice shall be included in all copies or +# substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", +# WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +# TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE +# FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR +# THE USE OR OTHER DEALINGS IN THE SOFTWARE. + import os import logging import subprocess diff --git a/teste2e/common/k8s.py b/teste2e/common/k8s.py index 6e772d56..46596362 100644 --- a/teste2e/common/k8s.py +++ b/teste2e/common/k8s.py @@ -1,3 +1,23 @@ +# SPDX-License-Identifier: MIT +# Copyright (c) 2022 The Authors. + +# Authors: The Mizar Team + +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions:The above copyright +# notice and this permission notice shall be included in all copies or +# substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", +# WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +# TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE +# FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR +# THE USE OR OTHER DEALINGS IN THE SOFTWARE. + import yaml from teste2e.common.helper import * from cli.mizarapi import * diff --git a/teste2e/common/k8spod.py b/teste2e/common/k8spod.py index 7248ad45..6159d3e0 100644 --- a/teste2e/common/k8spod.py +++ b/teste2e/common/k8spod.py @@ -1,3 +1,23 @@ +# SPDX-License-Identifier: MIT +# Copyright (c) 2022 The Authors. + +# Authors: The Mizar Team + +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions:The above copyright +# notice and this permission notice shall be included in all copies or +# substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", +# WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +# TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE +# FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR +# THE USE OR OTHER DEALINGS IN THE SOFTWARE. + from teste2e.common.helper import * from time import sleep diff --git a/teste2e/common/k8sservice.py b/teste2e/common/k8sservice.py index d1bbb1eb..caeb4e9b 100644 --- a/teste2e/common/k8sservice.py +++ b/teste2e/common/k8sservice.py @@ -1,3 +1,23 @@ +# SPDX-License-Identifier: MIT +# Copyright (c) 2022 The Authors. + +# Authors: The Mizar Team + +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions:The above copyright +# notice and this permission notice shall be included in all copies or +# substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", +# WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +# TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE +# FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR +# THE USE OR OTHER DEALINGS IN THE SOFTWARE. + from teste2e.common.helper import * from time import sleep from mizar.common.constants import * diff --git a/teste2e/scripts/httpd_hostname.py b/teste2e/scripts/httpd_hostname.py index 2c935539..dffd33e4 100644 --- a/teste2e/scripts/httpd_hostname.py +++ b/teste2e/scripts/httpd_hostname.py @@ -1,3 +1,23 @@ +# SPDX-License-Identifier: MIT +# Copyright (c) 2022 The Authors. + +# Authors: The Mizar Team + +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions:The above copyright +# notice and this permission notice shall be included in all copies or +# substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", +# WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +# TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE +# FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR +# THE USE OR OTHER DEALINGS IN THE SOFTWARE. + #!/usr/bin/env python3 import socket from http.server import HTTPServer, BaseHTTPRequestHandler diff --git a/teste2e/scripts/nc_client_hostname.sh b/teste2e/scripts/nc_client_hostname.sh index f6497025..d89c2182 100644 --- a/teste2e/scripts/nc_client_hostname.sh +++ b/teste2e/scripts/nc_client_hostname.sh @@ -1,3 +1,25 @@ +#!/bin/bash + +# SPDX-License-Identifier: MIT +# Copyright (c) 2022 The Authors. + +# Authors: The Mizar Team + +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions:The above copyright +# notice and this permission notice shall be included in all copies or +# substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", +# WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +# TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE +# FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR +# THE USE OR OTHER DEALINGS IN THE SOFTWARE. + IP=$1 PROTOCOL=${2:-tcp} TYPE=${3:-simple} diff --git a/teste2e/scripts/run_servers.sh b/teste2e/scripts/run_servers.sh index d3da5b93..0a17254a 100755 --- a/teste2e/scripts/run_servers.sh +++ b/teste2e/scripts/run_servers.sh @@ -1,5 +1,25 @@ #/bin/bash +# SPDX-License-Identifier: MIT +# Copyright (c) 2022 The Authors. + +# Authors: The Mizar Team + +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions:The above copyright +# notice and this permission notice shall be included in all copies or +# substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", +# WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +# TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE +# FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR +# THE USE OR OTHER DEALINGS IN THE SOFTWARE. + SCRIPTS_DIR='/var/mizar/test/scripts' python3 $SCRIPTS_DIR/httpd_hostname.py & diff --git a/teste2e/scripts/tcp_hostname.py b/teste2e/scripts/tcp_hostname.py index 376e8372..f234f9ef 100644 --- a/teste2e/scripts/tcp_hostname.py +++ b/teste2e/scripts/tcp_hostname.py @@ -1,3 +1,23 @@ +# SPDX-License-Identifier: MIT +# Copyright (c) 2022 The Authors. + +# Authors: The Mizar Team + +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions:The above copyright +# notice and this permission notice shall be included in all copies or +# substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", +# WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +# TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE +# FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR +# THE USE OR OTHER DEALINGS IN THE SOFTWARE. + import socket HOST = '0.0.0.0' diff --git a/teste2e/scripts/udp_hostname.py b/teste2e/scripts/udp_hostname.py index 58b29422..024a086a 100644 --- a/teste2e/scripts/udp_hostname.py +++ b/teste2e/scripts/udp_hostname.py @@ -1,3 +1,23 @@ +# SPDX-License-Identifier: MIT +# Copyright (c) 2022 The Authors. + +# Authors: The Mizar Team + +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions:The above copyright +# notice and this permission notice shall be included in all copies or +# substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", +# WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +# TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE +# FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR +# THE USE OR OTHER DEALINGS IN THE SOFTWARE. + import socket HOST = '0.0.0.0' diff --git a/teste2e/test_basic_simple_endpoint.py b/teste2e/test_basic_simple_endpoint.py index 4e63475c..6833a5b5 100644 --- a/teste2e/test_basic_simple_endpoint.py +++ b/teste2e/test_basic_simple_endpoint.py @@ -1,3 +1,22 @@ +# SPDX-License-Identifier: MIT +# Copyright (c) 2022 The Authors. + +# Authors: The Mizar Team + +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions:The above copyright +# notice and this permission notice shall be included in all copies or +# substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", +# WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +# TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE +# FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR +# THE USE OR OTHER DEALINGS IN THE SOFTWARE. import unittest from teste2e.common.k8s import * diff --git a/teste2e/test_basic_vpc.py b/teste2e/test_basic_vpc.py index c4f31fb1..152a2fca 100644 --- a/teste2e/test_basic_vpc.py +++ b/teste2e/test_basic_vpc.py @@ -1,3 +1,22 @@ +# SPDX-License-Identifier: MIT +# Copyright (c) 2022 The Authors. + +# Authors: The Mizar Team + +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions:The above copyright +# notice and this permission notice shall be included in all copies or +# substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", +# WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +# TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE +# FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR +# THE USE OR OTHER DEALINGS IN THE SOFTWARE. import unittest from teste2e.common.k8s import * diff --git a/tools/exec_docker.sh b/tools/exec_docker.sh index 9dc592b6..f84f8846 100755 --- a/tools/exec_docker.sh +++ b/tools/exec_docker.sh @@ -1,3 +1,23 @@ #!/bin/bash +# SPDX-License-Identifier: MIT +# Copyright (c) 2022 The Authors. + +# Authors: The Mizar Team + +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions:The above copyright +# notice and this permission notice shall be included in all copies or +# substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", +# WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +# TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE +# FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR +# THE USE OR OTHER DEALINGS IN THE SOFTWARE. + sudo docker exec -it $1 /bin/bash \ No newline at end of file diff --git a/tools/print_lic.sh b/tools/print_lic.sh index 5205cc58..d1388db6 100755 --- a/tools/print_lic.sh +++ b/tools/print_lic.sh @@ -1,4 +1,24 @@ #!/bin/bash +# SPDX-License-Identifier: MIT +# Copyright (c) 2022 The Authors. + +# Authors: The Mizar Team + +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions:The above copyright +# notice and this permission notice shall be included in all copies or +# substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", +# WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +# TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE +# FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR +# THE USE OR OTHER DEALINGS IN THE SOFTWARE. + echo "License SPKDX lines:" find src -type f \( -name "Makefile" -or -name "*.c" -or -name "*.h" -or -name "*.x" -or -name "*.mk" \) -printf '%p: ' -exec head -n1 {} \; | grep -v 'extern' diff --git a/tools/ps_docker_ips.sh b/tools/ps_docker_ips.sh index 56815994..ed2f999b 100755 --- a/tools/ps_docker_ips.sh +++ b/tools/ps_docker_ips.sh @@ -1,3 +1,23 @@ #!/bin/bash +# SPDX-License-Identifier: MIT +# Copyright (c) 2022 The Authors. + +# Authors: The Mizar Team + +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions:The above copyright +# notice and this permission notice shall be included in all copies or +# substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", +# WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +# TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE +# FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR +# THE USE OR OTHER DEALINGS IN THE SOFTWARE. + sudo docker ps -q | xargs -n 1 sudo docker inspect --format '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}} {{ .Name }}' | sed 's/ \// /' diff --git a/tools/tcp_client.py b/tools/tcp_client.py index 957cf82b..005276ab 100755 --- a/tools/tcp_client.py +++ b/tools/tcp_client.py @@ -1,5 +1,25 @@ #!/usr/bin/env python3 +# SPDX-License-Identifier: MIT +# Copyright (c) 2022 The Authors. + +# Authors: The Mizar Team + +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions:The above copyright +# notice and this permission notice shall be included in all copies or +# substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", +# WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +# TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE +# FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR +# THE USE OR OTHER DEALINGS IN THE SOFTWARE. + import socket from time import sleep import sys diff --git a/tools/tcp_server.py b/tools/tcp_server.py index 8cc69fcd..6e0eeb3b 100755 --- a/tools/tcp_server.py +++ b/tools/tcp_server.py @@ -1,5 +1,25 @@ #!/usr/bin/env python3 +# SPDX-License-Identifier: MIT +# Copyright (c) 2022 The Authors. + +# Authors: The Mizar Team + +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions:The above copyright +# notice and this permission notice shall be included in all copies or +# substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", +# WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +# TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE +# FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR +# THE USE OR OTHER DEALINGS IN THE SOFTWARE. + import socket import sys from time import sleep