diff --git a/src/tests/p4/mininet/8switch3path.py b/src/tests/p4/mininet/8switch3path.py index 13ac0392f39d0e660b82dce72f6d1f9f78d8f25f..9a41e53fb60514412d8cd1cecf451b132663d8f3 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 2bf7d3eca8727d535cc21e60883b83b86d9251b7..880977a2f62069586efdb398b8b3b5d3ac20dac0 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 1c34e767572789dc667a60b389daa14cfd6ccc48..fb5db98bf5233e905d83b7f9fe06d44a71c3a0fd 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 098b2dca58c985107bd1f0b1a9f940c41c989c30..1dda249d16b3c571676a254f2178f772fb765c81 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 5c80aec1b3244564508956d1311f0b68f3b8b2f5..bba3eaa9a985f3e546f9df2681879faef0a9b83e 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 86769d2df808007471a5d1134b3b92bded0b3ae5..733f02d11ecd4a9de90898b210b2fe9b579447f2 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 b036b7761bdd8e8e0dd5d02cff3f48cf3c9af71a..4221cbe28ba75021d2b7c2de6dbef46a043cc2bb 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 611856c7c2941b8aa04133ba813fcfadda02121b..3c118c98782a4cb5def9a654edbe55186bbf3df7 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>