From 0c00182421feb00a63a76555844dba5b72639b8e Mon Sep 17 00:00:00 2001 From: Alex Stancu Date: Wed, 13 Nov 2019 15:05:10 +0200 Subject: [PATCH] Add License information in every source file or script. Signed-off-by: Alex Stancu Change-Id: Iee9b882b79bba62232f998a0cfea0932872c2ccf --- ntsimulator/docker-build.sh | 1 - ntsimulator/inc/utils/utils.h | 22 ++++++++++++++++------ ntsimulator/scripts/clean.sh | 16 ++++++++++++++++ ntsimulator/scripts/docker_stats.sh | 16 ++++++++++++++++ ntsimulator/scripts/model-install.sh.in | 16 ++++++++++++++++ ntsimulator/scripts/model-uninstall.sh | 16 ++++++++++++++++ ntsimulator/scripts/model-uninstall.sh.in | 16 ++++++++++++++++ ntsimulator/scripts/nts_start.sh | 1 - ntsimulator/scripts/tls/enable_ssh_key.sh | 18 ++++++++++++++++++ ntsimulator/scripts/tls/enable_tls.sh | 17 +++++++++++++++++ .../src/ntsimulator-manager/ntsimulator-manager.c | 22 ++++++++++++++++------ .../src/ntsimulator-manager/simulator-operations.c | 22 ++++++++++++++++------ .../src/ntsimulator-manager/simulator-operations.h | 22 ++++++++++++++++------ .../src/o-ran-notifications/o-ran-notifications.c | 22 ++++++++++++++++------ ntsimulator/src/utils/utils.c | 22 ++++++++++++++++------ ntsimulator/src/ves-messages/heartbeat.c | 22 ++++++++++++++++------ ntsimulator/src/ves-messages/heartbeat.h | 22 ++++++++++++++++------ ntsimulator/yang/auto-load-yangs.sh | 16 ++++++++++++++++ ntsimulator/yang/sysrepo-configuration-load.sh | 16 ++++++++++++++++ 19 files changed, 275 insertions(+), 50 deletions(-) delete mode 100755 ntsimulator/docker-build.sh delete mode 100755 ntsimulator/scripts/nts_start.sh diff --git a/ntsimulator/docker-build.sh b/ntsimulator/docker-build.sh deleted file mode 100755 index 3c5adef..0000000 --- a/ntsimulator/docker-build.sh +++ /dev/null @@ -1 +0,0 @@ -docker build -t ntsimautogen -f deploy/Dockerfile . diff --git a/ntsimulator/inc/utils/utils.h b/ntsimulator/inc/utils/utils.h index ceee130..c049c66 100644 --- a/ntsimulator/inc/utils/utils.h +++ b/ntsimulator/inc/utils/utils.h @@ -1,9 +1,19 @@ -/* - * utils.h - * - * Created on: Feb 19, 2019 - * Author: parallels - */ +/************************************************************************* +* +* Copyright 2019 highstreet technologies GmbH and others +* +* 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. +***************************************************************************/ #ifndef EXAMPLES_NTSIMULATOR_UTILS_H_ #define EXAMPLES_NTSIMULATOR_UTILS_H_ diff --git a/ntsimulator/scripts/clean.sh b/ntsimulator/scripts/clean.sh index cc4daf7..7e9735b 100755 --- a/ntsimulator/scripts/clean.sh +++ b/ntsimulator/scripts/clean.sh @@ -1,4 +1,20 @@ #/bin/bash +################################################################################ +# +# Copyright 2019 highstreet technologies GmbH and others +# +# 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. +################################################################################ echo "Cleaning up..." diff --git a/ntsimulator/scripts/docker_stats.sh b/ntsimulator/scripts/docker_stats.sh index 05d6309..fbf15ab 100755 --- a/ntsimulator/scripts/docker_stats.sh +++ b/ntsimulator/scripts/docker_stats.sh @@ -1,4 +1,20 @@ #!/bin/bash +################################################################################ +# +# Copyright 2019 highstreet technologies GmbH and others +# +# 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. +################################################################################ # This script is used to complete the output of the docker stats command. # The docker stats command does not compute the total amount of resources (RAM or CPU) diff --git a/ntsimulator/scripts/model-install.sh.in b/ntsimulator/scripts/model-install.sh.in index 316923e..4ab9cf0 100755 --- a/ntsimulator/scripts/model-install.sh.in +++ b/ntsimulator/scripts/model-install.sh.in @@ -1,4 +1,20 @@ #!/bin/bash +################################################################################ +# +# Copyright 2019 highstreet technologies GmbH and others +# +# 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. +################################################################################ set -eu -o pipefail diff --git a/ntsimulator/scripts/model-uninstall.sh b/ntsimulator/scripts/model-uninstall.sh index 3284ac6..8ed27e7 100644 --- a/ntsimulator/scripts/model-uninstall.sh +++ b/ntsimulator/scripts/model-uninstall.sh @@ -1,4 +1,20 @@ #!/bin/bash +################################################################################ +# +# Copyright 2019 highstreet technologies GmbH and others +# +# 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. +################################################################################ sleep 3 diff --git a/ntsimulator/scripts/model-uninstall.sh.in b/ntsimulator/scripts/model-uninstall.sh.in index a347271..993ddce 100644 --- a/ntsimulator/scripts/model-uninstall.sh.in +++ b/ntsimulator/scripts/model-uninstall.sh.in @@ -1,4 +1,20 @@ #!/bin/bash +################################################################################ +# +# Copyright 2019 highstreet technologies GmbH and others +# +# 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. +################################################################################ sleep 5 diff --git a/ntsimulator/scripts/nts_start.sh b/ntsimulator/scripts/nts_start.sh deleted file mode 100755 index c92ee90..0000000 --- a/ntsimulator/scripts/nts_start.sh +++ /dev/null @@ -1 +0,0 @@ -docker run -itd --name NTS_Manager -p 127.0.0.1:8300:830/tcp -e BUILD_TYPE=manager -e NTS_IP="127.0.0.1" -e NETCONF_BASE=40000 -v /var/run/docker.sock:/var/run/docker.sock -v $(pwd):/opt/dev/scripts -v /usr/bin/docker:/usr/bin/docker --label "NTS-manager" ntsimulator diff --git a/ntsimulator/scripts/tls/enable_ssh_key.sh b/ntsimulator/scripts/tls/enable_ssh_key.sh index 4a3d43a..9bfbbd6 100755 --- a/ntsimulator/scripts/tls/enable_ssh_key.sh +++ b/ntsimulator/scripts/tls/enable_ssh_key.sh @@ -1,4 +1,22 @@ #! /bin/bash +################################################################################ +# +# Copyright 2019 highstreet technologies GmbH and others +# +# 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. + +################################################################################ +# Script to enable SSH publicKey authentication in the localhost NETCONF server sleep 5 diff --git a/ntsimulator/scripts/tls/enable_tls.sh b/ntsimulator/scripts/tls/enable_tls.sh index fc846e1..3d21471 100755 --- a/ntsimulator/scripts/tls/enable_tls.sh +++ b/ntsimulator/scripts/tls/enable_tls.sh @@ -1,4 +1,21 @@ #! /bin/bash +################################################################################ +# +# Copyright 2019 highstreet technologies GmbH and others +# +# 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. + +################################################################################ sleep 10 diff --git a/ntsimulator/src/ntsimulator-manager/ntsimulator-manager.c b/ntsimulator/src/ntsimulator-manager/ntsimulator-manager.c index 1e95497..b5555c4 100644 --- a/ntsimulator/src/ntsimulator-manager/ntsimulator-manager.c +++ b/ntsimulator/src/ntsimulator-manager/ntsimulator-manager.c @@ -1,9 +1,19 @@ -/* - * core-model.c - * - * Created on: Feb 19, 2019 - * Author: parallels - */ +/************************************************************************* +* +* Copyright 2019 highstreet technologies GmbH and others +* +* 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. +***************************************************************************/ #include diff --git a/ntsimulator/src/ntsimulator-manager/simulator-operations.c b/ntsimulator/src/ntsimulator-manager/simulator-operations.c index 29f8147..8520d2b 100644 --- a/ntsimulator/src/ntsimulator-manager/simulator-operations.c +++ b/ntsimulator/src/ntsimulator-manager/simulator-operations.c @@ -1,9 +1,19 @@ -/* - * simulator-operations.c - * - * Created on: Mar 9, 2019 - * Author: parallels - */ +/************************************************************************* +* +* Copyright 2019 highstreet technologies GmbH and others +* +* 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. +***************************************************************************/ #include "simulator-operations.h" #include "sysrepo.h" diff --git a/ntsimulator/src/ntsimulator-manager/simulator-operations.h b/ntsimulator/src/ntsimulator-manager/simulator-operations.h index f61784e..4914423 100644 --- a/ntsimulator/src/ntsimulator-manager/simulator-operations.h +++ b/ntsimulator/src/ntsimulator-manager/simulator-operations.h @@ -1,9 +1,19 @@ -/* - * simulator-operations.h - * - * Created on: Mar 9, 2019 - * Author: parallels - */ +/************************************************************************* +* +* Copyright 2019 highstreet technologies GmbH and others +* +* 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. +***************************************************************************/ #ifndef SRC_NTSIMULATOR_MANAGER_SIMULATOR_OPERATIONS_H_ #define SRC_NTSIMULATOR_MANAGER_SIMULATOR_OPERATIONS_H_ diff --git a/ntsimulator/src/o-ran-notifications/o-ran-notifications.c b/ntsimulator/src/o-ran-notifications/o-ran-notifications.c index 747bec9..ae6e0c6 100644 --- a/ntsimulator/src/o-ran-notifications/o-ran-notifications.c +++ b/ntsimulator/src/o-ran-notifications/o-ran-notifications.c @@ -1,9 +1,19 @@ -/* - * o-ran-notifications.c - * - * Created on: Oct 23, 2019 - * Author: parallels - */ +/************************************************************************* +* +* Copyright 2019 highstreet technologies GmbH and others +* +* 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. +***************************************************************************/ #include #include diff --git a/ntsimulator/src/utils/utils.c b/ntsimulator/src/utils/utils.c index c41e432..af40454 100644 --- a/ntsimulator/src/utils/utils.c +++ b/ntsimulator/src/utils/utils.c @@ -1,9 +1,19 @@ -/* - * utils.c - * - * Created on: Feb 19, 2019 - * Author: parallels - */ +/************************************************************************* +* +* Copyright 2019 highstreet technologies GmbH and others +* +* 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. +***************************************************************************/ #include "utils.h" diff --git a/ntsimulator/src/ves-messages/heartbeat.c b/ntsimulator/src/ves-messages/heartbeat.c index fce544c..a5785e5 100644 --- a/ntsimulator/src/ves-messages/heartbeat.c +++ b/ntsimulator/src/ves-messages/heartbeat.c @@ -1,9 +1,19 @@ -/* - * heartbeat.c - * - * Created on: Oct 24, 2019 - * Author: parallels - */ +/************************************************************************* +* +* Copyright 2019 highstreet technologies GmbH and others +* +* 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. +***************************************************************************/ #include #include diff --git a/ntsimulator/src/ves-messages/heartbeat.h b/ntsimulator/src/ves-messages/heartbeat.h index 570e0dc..6750112 100644 --- a/ntsimulator/src/ves-messages/heartbeat.h +++ b/ntsimulator/src/ves-messages/heartbeat.h @@ -1,9 +1,19 @@ -/* - * heartbeat.h - * - * Created on: Oct 24, 2019 - * Author: parallels - */ +/************************************************************************* +* +* Copyright 2019 highstreet technologies GmbH and others +* +* 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. +***************************************************************************/ #ifndef SRC_VES_MESSAGES_HEARTBEAT_H_ #define SRC_VES_MESSAGES_HEARTBEAT_H_ diff --git a/ntsimulator/yang/auto-load-yangs.sh b/ntsimulator/yang/auto-load-yangs.sh index 1bf2594..3c4f409 100755 --- a/ntsimulator/yang/auto-load-yangs.sh +++ b/ntsimulator/yang/auto-load-yangs.sh @@ -1,4 +1,20 @@ #!/bin/bash +################################################################################ +# +# Copyright 2019 highstreet technologies GmbH and others +# +# 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. +################################################################################ echo "Installing YANG models..." diff --git a/ntsimulator/yang/sysrepo-configuration-load.sh b/ntsimulator/yang/sysrepo-configuration-load.sh index d9d88df..ed210ff 100755 --- a/ntsimulator/yang/sysrepo-configuration-load.sh +++ b/ntsimulator/yang/sysrepo-configuration-load.sh @@ -1,4 +1,20 @@ #!/bin/bash +################################################################################ +# +# Copyright 2019 highstreet technologies GmbH and others +# +# 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. +################################################################################ sleep 20 -- 2.16.6