From 014706d30affa0242654a417e2b27def836c5d79 Mon Sep 17 00:00:00 2001 From: gifrerenom <lluis.gifre@cttc.es> Date: Tue, 28 Feb 2023 16:47:37 +0000 Subject: [PATCH] Tools - Mock MW SDN Controller: - Added link identifiers - Added run script --- .../tools/mock_mw_sdn_ctrl/MockMWSdnCtrl.py | 4 ++-- src/tests/tools/mock_mw_sdn_ctrl/run.sh | 16 ++++++++++++++++ 2 files changed, 18 insertions(+), 2 deletions(-) create mode 100755 src/tests/tools/mock_mw_sdn_ctrl/run.sh diff --git a/src/tests/tools/mock_mw_sdn_ctrl/MockMWSdnCtrl.py b/src/tests/tools/mock_mw_sdn_ctrl/MockMWSdnCtrl.py index d3d9de4a2..91542d85b 100644 --- a/src/tests/tools/mock_mw_sdn_ctrl/MockMWSdnCtrl.py +++ b/src/tests/tools/mock_mw_sdn_ctrl/MockMWSdnCtrl.py @@ -53,11 +53,11 @@ NETWORK_NODES = [ ]} ] NETWORK_LINKS = [ - { + { 'link-id' : '172.18.0.1:2--172.18.0.2:2', 'source' : {'source-node': '172.18.0.1', 'source-tp': '2'}, 'destination': {'dest-node' : '172.18.0.2', 'dest-tp' : '2'}, }, - { + { 'link-id' : '172.18.0.3:2--172.18.0.4:2', 'source' : {'source-node': '172.18.0.3', 'source-tp': '2'}, 'destination': {'dest-node' : '172.18.0.4', 'dest-tp' : '2'}, } diff --git a/src/tests/tools/mock_mw_sdn_ctrl/run.sh b/src/tests/tools/mock_mw_sdn_ctrl/run.sh new file mode 100755 index 000000000..415fc1751 --- /dev/null +++ b/src/tests/tools/mock_mw_sdn_ctrl/run.sh @@ -0,0 +1,16 @@ +#!/usr/bin/env bash +# 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. + +python MockMWSdnCtrl.py -- GitLab