From dac6b9534a8a81c90bdd6446197277d83f8fcd55 Mon Sep 17 00:00:00 2001
From: gifrerenom <lluis.gifre@cttc.es>
Date: Fri, 23 Jun 2023 10:09:39 +0000
Subject: [PATCH] Added copyright headers to relevant files

---
 src/tests/p4/mininet/8switch3path.py             |  1 +
 src/tests/p4/probe/monitoring_kpis.py            | 14 ++++++++++++++
 src/tests/p4/probe/probe-tfs/Cargo.toml          | 14 ++++++++++++++
 src/tests/p4/probe/probe-tfs/build.rs            | 14 ++++++++++++++
 .../p4/probe/probe-tfs/connect_to_mininet.sh     | 16 +++++++++++++++-
 src/tests/p4/probe/probe-tfs/deploy.sh           | 16 +++++++++++++++-
 src/tests/p4/probe/probe-tfs/src/agent.rs        | 14 ++++++++++++++
 src/tests/p4/probe/probe-tfs/src/ping.rs         | 14 ++++++++++++++
 8 files changed, 101 insertions(+), 2 deletions(-)

diff --git a/src/tests/p4/mininet/8switch3path.py b/src/tests/p4/mininet/8switch3path.py
index 13ac0392f..9a41e53fb 100755
--- a/src/tests/p4/mininet/8switch3path.py
+++ b/src/tests/p4/mininet/8switch3path.py
@@ -1,5 +1,6 @@
 #!/usr/bin/python
 
+#  Copyright 2022-2023 ETSI TeraFlowSDN - TFS OSG (https://tfs.etsi.org/)
 #  Copyright 2019-present Open Networking Foundation
 #
 #  Licensed under the Apache License, Version 2.0 (the "License");
diff --git a/src/tests/p4/probe/monitoring_kpis.py b/src/tests/p4/probe/monitoring_kpis.py
index 2bf7d3eca..880977a2f 100644
--- a/src/tests/p4/probe/monitoring_kpis.py
+++ b/src/tests/p4/probe/monitoring_kpis.py
@@ -1,3 +1,17 @@
+# Copyright 2022-2023 ETSI TeraFlowSDN - TFS OSG (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.
+# 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.
+
 # File to monitor the latest *n* samples from the KPI ID *id*
 # and updates it every *i* seconds
 #
diff --git a/src/tests/p4/probe/probe-tfs/Cargo.toml b/src/tests/p4/probe/probe-tfs/Cargo.toml
index 1c34e7675..fb5db98bf 100644
--- a/src/tests/p4/probe/probe-tfs/Cargo.toml
+++ b/src/tests/p4/probe/probe-tfs/Cargo.toml
@@ -1,3 +1,17 @@
+# Copyright 2022-2023 ETSI TeraFlowSDN - TFS OSG (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.
+# 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.
+
 [package]
 name = "rust-tfs"
 version = "0.1.0"
diff --git a/src/tests/p4/probe/probe-tfs/build.rs b/src/tests/p4/probe/probe-tfs/build.rs
index 098b2dca5..1dda249d1 100644
--- a/src/tests/p4/probe/probe-tfs/build.rs
+++ b/src/tests/p4/probe/probe-tfs/build.rs
@@ -1,4 +1,18 @@
 /**
+ * Copyright 2022-2023 ETSI TeraFlowSDN - TFS OSG (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.
+ * 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.
+ *
  * Build script that generates Rust code for the protobuffers.
  *
  * Author: Carlos Natalino <carlos.natalino@chalmers.se>
diff --git a/src/tests/p4/probe/probe-tfs/connect_to_mininet.sh b/src/tests/p4/probe/probe-tfs/connect_to_mininet.sh
index 5c80aec1b..bba3eaa9a 100755
--- a/src/tests/p4/probe/probe-tfs/connect_to_mininet.sh
+++ b/src/tests/p4/probe/probe-tfs/connect_to_mininet.sh
@@ -1,2 +1,16 @@
+# Copyright 2022-2023 ETSI TeraFlowSDN - TFS OSG (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.
+# 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.
+
 CONTAINER=`docker ps | grep mininet | cut -f1 -d" "`
-docker exec -it $CONTAINER /bin/bash
\ No newline at end of file
+docker exec -it $CONTAINER /bin/bash
diff --git a/src/tests/p4/probe/probe-tfs/deploy.sh b/src/tests/p4/probe/probe-tfs/deploy.sh
index 86769d2df..733f02d11 100755
--- a/src/tests/p4/probe/probe-tfs/deploy.sh
+++ b/src/tests/p4/probe/probe-tfs/deploy.sh
@@ -1,3 +1,17 @@
+# Copyright 2022-2023 ETSI TeraFlowSDN - TFS OSG (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.
+# 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.
+
 # build the software
 # uncomment the line below if you want to build it
 # cargo build --release --target=x86_64-unknown-linux-musl
@@ -20,4 +34,4 @@ echo "MONITORINGSERVICE_SERVICE_PORT_GRPC=${MONITORINGSERVICE_SERVICE_PORT_GRPC}
 CONTAINER=`docker ps | grep mininet | cut -f1 -d" "`
 docker cp target/x86_64-unknown-linux-musl/release/tfsping $CONTAINER:/root
 docker cp target/x86_64-unknown-linux-musl/release/tfsagent $CONTAINER:/root
-docker cp .env $CONTAINER:/root
\ No newline at end of file
+docker cp .env $CONTAINER:/root
diff --git a/src/tests/p4/probe/probe-tfs/src/agent.rs b/src/tests/p4/probe/probe-tfs/src/agent.rs
index b036b7761..4221cbe28 100644
--- a/src/tests/p4/probe/probe-tfs/src/agent.rs
+++ b/src/tests/p4/probe/probe-tfs/src/agent.rs
@@ -1,4 +1,18 @@
 /**
+ * Copyright 2022-2023 ETSI TeraFlowSDN - TFS OSG (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.
+ * 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.
+ *
  * Program that starts the ping probe and reports it to the Unix socket.
  *
  * Author: Carlos Natalino <carlos.natalino@chalmers.se>
diff --git a/src/tests/p4/probe/probe-tfs/src/ping.rs b/src/tests/p4/probe/probe-tfs/src/ping.rs
index 611856c7c..3c118c987 100644
--- a/src/tests/p4/probe/probe-tfs/src/ping.rs
+++ b/src/tests/p4/probe/probe-tfs/src/ping.rs
@@ -1,4 +1,18 @@
 /**
+ * Copyright 2022-2023 ETSI TeraFlowSDN - TFS OSG (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.
+ * 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.
+ *
  * Program that starts the ping probe and reports it to the Unix socket.
  *
  * Author: Carlos Natalino <carlos.natalino@chalmers.se>
-- 
GitLab