Commit 7d774b7f authored by kesnar's avatar kesnar Committed by kesnar
Browse files

feat: helper scripts for session 1

parent 94accb10
Loading
Loading
Loading
Loading
+16 −0
Original line number Diff line number Diff line
# 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
+5 −0
Original line number Diff line number Diff line
#!/bin/bash

# get container id
CONTAINER=`docker ps | grep mininet | cut -f1 -d" "`
docker cp ping2.py $CONTAINER:/root
+1 −1
Original line number Diff line number Diff line
@@ -50,7 +50,7 @@ kpi_id = KpiId()
enabled = False

### Define the path to the Unix socket
socket_path = "/home/nuc8/tfs-develop/ngsdn-tutorial/tmp/sock"
socket_path = "/home/teraflow/ngsdn-tutorial/tmp/sock"
#socket_path = "./tmp/sock"
if os.path.exists(socket_path):
    os.remove(socket_path)
+16 −0
Original line number Diff line number Diff line
# 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
+5 −0
Original line number Diff line number Diff line
#!/bin/bash

# get container id
CONTAINER=`docker ps | grep mininet | cut -f1 -d" "`
docker cp ping2.py $CONTAINER:/root
Loading