Skip to content
Snippets Groups Projects
Commit ab78697d authored by Lluis Gifre Renom's avatar Lluis Gifre Renom Committed by Sebastien Merle
Browse files

TE component:

- arranged tests folder
parent a27b511a
No related branches found
No related tags found
No related merge requests found
...@@ -25,7 +25,7 @@ export TFS_REGISTRY_IMAGES=${TFS_REGISTRY_IMAGES:-"http://localhost:32000/tfs/"} ...@@ -25,7 +25,7 @@ export TFS_REGISTRY_IMAGES=${TFS_REGISTRY_IMAGES:-"http://localhost:32000/tfs/"}
# If not already set, set the list of components you want to build images for, and deploy. # If not already set, set the list of components you want to build images for, and deploy.
# By default, only basic components are deployed # By default, only basic components are deployed
export TFS_COMPONENTS=${TFS_COMPONENTS:-"context device monitoring service compute webui te"} export TFS_COMPONENTS=${TFS_COMPONENTS:-"context device monitoring service compute webui"}
# If not already set, set the tag you want to use for your images. # If not already set, set the tag you want to use for your images.
export TFS_IMAGE_TAG=${TFS_IMAGE_TAG:-"dev"} export TFS_IMAGE_TAG=${TFS_IMAGE_TAG:-"dev"}
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
export TFS_REGISTRY_IMAGES="http://localhost:32000/tfs/" export TFS_REGISTRY_IMAGES="http://localhost:32000/tfs/"
# Set the list of components, separated by spaces, you want to build images for, and deploy. # Set the list of components, separated by spaces, you want to build images for, and deploy.
export TFS_COMPONENTS="context device automation monitoring pathcomp service slice compute webui load_generator te" export TFS_COMPONENTS="context device automation monitoring pathcomp service slice compute webui load_generator"
# Set the tag you want to use for your images. # Set the tag you want to use for your images.
export TFS_IMAGE_TAG="dev" export TFS_IMAGE_TAG="dev"
......
# Set the URL of your local Docker registry where the images will be uploaded to.
export TFS_REGISTRY_IMAGE="http://localhost:32000/tfs/"
# Set the list of components, separated by spaces, you want to build images for, and deploy.
# Supported components are:
# context device automation policy service compute monitoring webui
# interdomain slice pathcomp dlt
# dbscanserving opticalattackmitigator opticalattackdetector
# l3_attackmitigator l3_centralizedattackdetector l3_distributedattackdetector
export TFS_COMPONENTS="context device pathcomp service slice webui" # te
# Set the tag you want to use for your images.
export TFS_IMAGE_TAG="dev"
# Set the name of the Kubernetes namespace to deploy to.
export TFS_K8S_NAMESPACE="tfs"
# Set additional manifest files to be applied after the deployment
export TFS_EXTRA_MANIFESTS="manifests/nginx_ingress_http.yaml"
# Set the new Grafana admin password
export TFS_GRAFANA_PASSWORD="admin123+"
# If not already set, disable skip-build flag.
# If TFS_SKIP_BUILD is "YES", the containers are not rebuilt-retagged-repushed and existing ones are used.
export TFS_SKIP_BUILD=${TFS_SKIP_BUILD:-""}
File moved
{ {
"services": [ "services": [
{ {
"service_id": {"context_id": {"context_uuid": {"uuid": "admin"}}, "service_uuid": {"uuid": "2c025055-bf6c-4250-8560-cf62f2d29e72"}}, "service_id": {
"service_type": 4, "context_id": {"context_uuid": {"uuid": "admin"}},
"service_status": {"service_status": 2}, "service_uuid": {"uuid": "2c025055-bf6c-4250-8560-cf62f2d29e72"}
},
"service_type": 4, "service_status": {"service_status": 1},
"service_endpoint_ids": [ "service_endpoint_ids": [
{"device_id": {"device_uuid": {"uuid":"RT1"}}, "endpoint_uuid": {"uuid":"eth-src"}}, {"device_id": {"device_uuid": {"uuid":"RT1"}}, "endpoint_uuid": {"uuid":"eth-src"}},
{"device_id": {"device_uuid": {"uuid":"RT6"}}, "endpoint_uuid": {"uuid":"eth-dst"}} {"device_id": {"device_uuid": {"uuid":"RT6"}}, "endpoint_uuid": {"uuid":"eth-dst"}}
], ],
"service_constraints": [], "service_constraints": [],
"service_config": {"config_rules": [ "service_config": {"config_rules": [
{"action": 1, "custom": {"resource_key": "/lsp[foo]", "resource_value": "{\"src\": {\"device_id\": {\"device_uuid\": {\"uuid\":\"RT1\"}}, \"endpoint_uuid\": {\"uuid\":\"eth-src\"}}, \"dest\": {\"device_id\": {\"device_uuid\": {\"uuid\":\"RT6\"}}, \"endpoint_uuid\": {\"uuid\":\"eth-dst\"}}, \"binding_label\": 1111}"}}, {"action": 1, "custom": {"resource_key": "/lsp-fw", "resource_value": {
{"action": 1, "custom": {"resource_key": "/lsp[bar]", "resource_value": "{\"src\": {\"device_id\": {\"device_uuid\": {\"uuid\":\"RT6\"}}, \"endpoint_uuid\": {\"uuid\":\"eth-dst\"}}, \"dest\": {\"device_id\": {\"device_uuid\": {\"uuid\":\"RT1\"}}, \"endpoint_uuid\": {\"uuid\":\"eth-src\"}}, \"binding_label\": 6666}"}} "symbolic_name": "foo", "binding_label": 1111
}}},
{"action": 1, "custom": {"resource_key": "/lsp-bw", "resource_value": {
"symbolic_name": "bar", "binding_label": 6666
}}}
]} ]}
} }
] ]
} }
\ No newline at end of file
...@@ -4,10 +4,10 @@ set -e ...@@ -4,10 +4,10 @@ set -e
ROOTDIR="$( cd $( dirname $0 ); pwd )" ROOTDIR="$( cd $( dirname $0 ); pwd )"
RUNDIR="$( pwd )" RUNDIR="$( pwd )"
NEGENDIR="${RUNDIR}/netgen" NETGENDIR="${RUNDIR}/netgen"
if [[ ! -f "${NEGENDIR}/exe/netgen" ]]; then if [[ ! -f "${NETGENDIR}/exe/netgen" ]]; then
echo "Failed to find Netgen binary at ${NEGENDIR}/exe/netgen" echo "Failed to find Netgen binary at ${NETGENDIR}/exe/netgen"
exit 1 exit 1
fi fi
...@@ -36,8 +36,8 @@ export RT1_PCE_EXT_IF_IP="$PCE_IP1.$PCE_IP2.$PCE_IP3.11" ...@@ -36,8 +36,8 @@ export RT1_PCE_EXT_IF_IP="$PCE_IP1.$PCE_IP2.$PCE_IP3.11"
export RT6_PCE_INT_IF_IP="$PCE_IP1.$PCE_IP2.$PCE_IP3.12" export RT6_PCE_INT_IF_IP="$PCE_IP1.$PCE_IP2.$PCE_IP3.12"
export RT6_PCE_EXT_IF_IP="$PCE_IP1.$PCE_IP2.$PCE_IP3.13" export RT6_PCE_EXT_IF_IP="$PCE_IP1.$PCE_IP2.$PCE_IP3.13"
cp "${ROOTDIR}/2-6-netgen-config.yml" "${RUNDIR}/config.yml" cp "${ROOTDIR}/netgen-config.yml" "${RUNDIR}/config.yml"
cat "${ROOTDIR}/2-6-netgen-topology.yml.template" | envsubst > "${RUNDIR}/topology.yml" cat "${ROOTDIR}/netgen-topology.yml.template" | envsubst > "${RUNDIR}/topology.yml"
sudo -i bash -c "\ sudo -i bash -c "\
cd ${RUNDIR}/netgen;\ cd ${RUNDIR}/netgen;\
......
...@@ -34,174 +34,165 @@ ...@@ -34,174 +34,165 @@
], ],
"devices": [ "devices": [
{ {
"device_id": {"device_uuid": {"uuid": "SW1"}}, "device_id": {"device_uuid": {"uuid": "SW1"}}, "device_type": "emu-packet-switch",
"device_type": "emu-packet-switch", "device_operational_status": 2, "device_drivers": [0], "device_endpoints": [],
"device_config": {"config_rules": [ "device_config": {"config_rules": [
{"action": 1, "custom": {"resource_key": "_connect/settings", "resource_value": {"action": 1, "custom": {"resource_key": "_connect/settings", "resource_value": {"endpoints": [
"{\"endpoints\": [{\"sample_types\": [], \"type\": \"copper\", \"uuid\": \"df8bb169-2013-4b82-9455-69777f7a01d6\"}, {\"sample_types\": [], \"type\": \"copper\", \"uuid\": \"061119c1-2aa4-48e9-be64-3ddf465fc80a\"}, {\"sample_types\": [], \"type\": \"copper\", \"uuid\": \"495ea3f8-e67f-46a0-84bd-a230a4b7067d\"}]}"}} {"sample_types": [], "type": "copper", "uuid": "df8bb169-2013-4b82-9455-69777f7a01d6"},
]}, {"sample_types": [], "type": "copper", "uuid": "061119c1-2aa4-48e9-be64-3ddf465fc80a"},
"device_operational_status": 1, {"sample_types": [], "type": "copper", "uuid": "495ea3f8-e67f-46a0-84bd-a230a4b7067d"}
"device_drivers": [0], ]}}}
"device_endpoints": [] ]}
}, },
{ {
"device_id": {"device_uuid": {"uuid": "RT1"}}, "device_id": {"device_uuid": {"uuid": "RT1"}}, "device_type": "emu-packet-router",
"device_type": "emu-packet-router", "device_operational_status": 2, "device_drivers": [0], "device_endpoints": [],
"device_config": {"config_rules": [ "device_config": {"config_rules": [
{"action": 1, "custom": {"resource_key": "_connect/mpls_label", "resource_value": "16010"}},
{"action": 1, "custom": {"resource_key": "_connect/pcc_address", "resource_value": "1.1.1.1"}},
{"action": 1, "custom": {"resource_key": "_connect/address", "resource_value": "1.1.1.1"}}, {"action": 1, "custom": {"resource_key": "_connect/address", "resource_value": "1.1.1.1"}},
{"action": 1, "custom": {"resource_key": "_connect/port", "resource_value": "0"}}, {"action": 1, "custom": {"resource_key": "_connect/port", "resource_value": "0"}},
{"action": 1, "custom": {"resource_key": "_connect/settings", "resource_value": {"action": 1, "custom": {"resource_key": "_connect/settings", "resource_value": {"endpoints": [
"{\"endpoints\": [{\"sample_types\": [], \"type\": \"copper\", \"uuid\": \"eth-src\"}, {\"sample_types\": [], \"type\": \"copper\", \"uuid\": \"eth-sw1\"}]}"}} {"sample_types": [], "type": "copper", "uuid": "eth-src"},
]}, {"sample_types": [], "type": "copper", "uuid": "eth-sw1"}
"device_operational_status": 1, ]}}},
"device_drivers": [0], {"action": 1, "custom": {"resource_key": "/te_data/mpls_label", "resource_value": "16010"}},
"device_endpoints": [] {"action": 1, "custom": {"resource_key": "/te_data/pcc_address", "resource_value": "1.1.1.1"}}
]}
}, },
{ {
"device_id": {"device_uuid": {"uuid": "RT2"}}, "device_id": {"device_uuid": {"uuid": "RT2"}}, "device_type": "emu-packet-router",
"device_type": "emu-packet-router", "device_operational_status": 2, "device_drivers": [0], "device_endpoints": [],
"device_config": {"config_rules": [ "device_config": {"config_rules": [
{"action": 1, "custom": {"resource_key": "_connect/mpls_label", "resource_value": "16020"}},
{"action": 1, "custom": {"resource_key": "_connect/pcc_address", "resource_value": "2.2.2.2"}},
{"action": 1, "custom": {"resource_key": "_connect/address", "resource_value": "2.2.2.2"}}, {"action": 1, "custom": {"resource_key": "_connect/address", "resource_value": "2.2.2.2"}},
{"action": 1, "custom": {"resource_key": "_connect/port", "resource_value": "0"}}, {"action": 1, "custom": {"resource_key": "_connect/port", "resource_value": "0"}},
{"action": 1, "custom": {"resource_key": "_connect/settings", "resource_value": {"action": 1, "custom": {"resource_key": "_connect/settings", "resource_value": {"endpoints": [
"{\"endpoints\": [{\"sample_types\": [], \"type\": \"copper\", \"uuid\": \"eth-sw1\"}, {\"sample_types\": [], \"type\": \"copper\", \"uuid\": \"eth-rt4-1\"}, {\"sample_types\": [], \"type\": \"copper\", \"uuid\": \"eth-rt4-2\"}]}"}} {"sample_types": [], "type": "copper", "uuid": "eth-sw1"},
]}, {"sample_types": [], "type": "copper", "uuid": "eth-rt4-1"},
"device_operational_status": 1, {"sample_types": [], "type": "copper", "uuid": "eth-rt4-2"}
"device_drivers": [0], ]}}},
"device_endpoints": [] {"action": 1, "custom": {"resource_key": "/te_data/mpls_label", "resource_value": "16020"}},
{"action": 1, "custom": {"resource_key": "/te_data/pcc_address", "resource_value": "2.2.2.2"}}
]}
}, },
{ {
"device_id": {"device_uuid": {"uuid": "RT3"}}, "device_id": {"device_uuid": {"uuid": "RT3"}}, "device_type": "emu-packet-router",
"device_type": "emu-packet-router", "device_operational_status": 2, "device_drivers": [0], "device_endpoints": [],
"device_config": {"config_rules": [ "device_config": {"config_rules": [
{"action": 1, "custom": {"resource_key": "_connect/mpls_label", "resource_value": "16030"}},
{"action": 1, "custom": {"resource_key": "_connect/pcc_address", "resource_value": "3.3.3.3"}},
{"action": 1, "custom": {"resource_key": "_connect/address", "resource_value": "3.3.3.3"}}, {"action": 1, "custom": {"resource_key": "_connect/address", "resource_value": "3.3.3.3"}},
{"action": 1, "custom": {"resource_key": "_connect/port", "resource_value": "0"}}, {"action": 1, "custom": {"resource_key": "_connect/port", "resource_value": "0"}},
{"action": 1, "custom": {"resource_key": "_connect/settings", "resource_value": {"action": 1, "custom": {"resource_key": "_connect/settings", "resource_value": {"endpoints": [
"{\"endpoints\": [{\"sample_types\": [], \"type\": \"copper\", \"uuid\": \"eth-sw1\"}, {\"sample_types\": [], \"type\": \"copper\", \"uuid\": \"eth-rt5-1\"}, {\"sample_types\": [], \"type\": \"copper\", \"uuid\": \"eth-rt5-2\"}]}"}} {"sample_types": [], "type": "copper", "uuid": "eth-sw1"},
]}, {"sample_types": [], "type": "copper", "uuid": "eth-rt5-1"},
"device_operational_status": 1, {"sample_types": [], "type": "copper", "uuid": "eth-rt5-2"}
"device_drivers": [0], ]}}},
"device_endpoints": [] {"action": 1, "custom": {"resource_key": "/te_data/mpls_label", "resource_value": "16030"}},
{"action": 1, "custom": {"resource_key": "/te_data/pcc_address", "resource_value": "3.3.3.3"}}
]}
}, },
{ {
"device_id": {"device_uuid": {"uuid": "RT4"}}, "device_id": {"device_uuid": {"uuid": "RT4"}}, "device_type": "emu-packet-router",
"device_type": "emu-packet-router", "device_operational_status": 2, "device_drivers": [0], "device_endpoints": [],
"device_config": {"config_rules": [ "device_config": {"config_rules": [
{"action": 1, "custom": {"resource_key": "_connect/mpls_label", "resource_value": "16040"}},
{"action": 1, "custom": {"resource_key": "_connect/pcc_address", "resource_value": "4.4.4.4"}},
{"action": 1, "custom": {"resource_key": "_connect/address", "resource_value": "4.4.4.4"}}, {"action": 1, "custom": {"resource_key": "_connect/address", "resource_value": "4.4.4.4"}},
{"action": 1, "custom": {"resource_key": "_connect/port", "resource_value": "0"}}, {"action": 1, "custom": {"resource_key": "_connect/port", "resource_value": "0"}},
{"action": 1, "custom": {"resource_key": "_connect/settings", "resource_value": {"action": 1, "custom": {"resource_key": "_connect/settings", "resource_value": {"endpoints": [
"{\"endpoints\": [{\"sample_types\": [], \"type\": \"copper\", \"uuid\": \"eth-rt2-1\"}, {\"sample_types\": [], \"type\": \"copper\", \"uuid\": \"eth-rt2-2\"}, {\"sample_types\": [], \"type\": \"copper\", \"uuid\": \"eth-rt5\"}, {\"sample_types\": [], \"type\": \"copper\", \"uuid\": \"eth-rt6\"}]}"}} {"sample_types": [], "type": "copper", "uuid": "eth-rt2-1"},
]}, {"sample_types": [], "type": "copper", "uuid": "eth-rt2-2"},
"device_operational_status": 1, {"sample_types": [], "type": "copper", "uuid": "eth-rt5"},
"device_drivers": [0], {"sample_types": [], "type": "copper", "uuid": "eth-rt6"}
"device_endpoints": [] ]}}},
{"action": 1, "custom": {"resource_key": "/te_data/mpls_label", "resource_value": "16040"}},
{"action": 1, "custom": {"resource_key": "/te_data/pcc_address", "resource_value": "4.4.4.4"}}
]}
}, },
{ {
"device_id": {"device_uuid": {"uuid": "RT5"}}, "device_id": {"device_uuid": {"uuid": "RT5"}}, "device_type": "emu-packet-router",
"device_type": "emu-packet-router", "device_operational_status": 2, "device_drivers": [0], "device_endpoints": [],
"device_config": {"config_rules": [ "device_config": {"config_rules": [
{"action": 1, "custom": {"resource_key": "_connect/mpls_label", "resource_value": "16050"}},
{"action": 1, "custom": {"resource_key": "_connect/pcc_address", "resource_value": "5.5.5.5"}},
{"action": 1, "custom": {"resource_key": "_connect/address", "resource_value": "5.5.5.5"}}, {"action": 1, "custom": {"resource_key": "_connect/address", "resource_value": "5.5.5.5"}},
{"action": 1, "custom": {"resource_key": "_connect/port", "resource_value": "0"}}, {"action": 1, "custom": {"resource_key": "_connect/port", "resource_value": "0"}},
{"action": 1, "custom": {"resource_key": "_connect/settings", "resource_value": {"action": 1, "custom": {"resource_key": "_connect/settings", "resource_value": {"endpoints": [
"{\"endpoints\": [{\"sample_types\": [], \"type\": \"copper\", \"uuid\": \"eth-rt3-1\"}, {\"sample_types\": [], \"type\": \"copper\", \"uuid\": \"eth-rt3-2\"}, {\"sample_types\": [], \"type\": \"copper\", \"uuid\": \"eth-rt4\"}, {\"sample_types\": [], \"type\": \"copper\", \"uuid\": \"eth-rt6\"}]}"}} {"sample_types": [], "type": "copper", "uuid": "eth-rt3-1"},
]}, {"sample_types": [], "type": "copper", "uuid": "eth-rt3-2"},
"device_operational_status": 1, {"sample_types": [], "type": "copper", "uuid": "eth-rt4"},
"device_drivers": [0], {"sample_types": [], "type": "copper", "uuid": "eth-rt6"}
"device_endpoints": [] ]}}},
{"action": 1, "custom": {"resource_key": "/te_data/mpls_label", "resource_value": "16050"}},
{"action": 1, "custom": {"resource_key": "/te_data/pcc_address", "resource_value": "5.5.5.5"}}
]}
}, },
{ {
"device_id": {"device_uuid": {"uuid": "RT6"}}, "device_id": {"device_uuid": {"uuid": "RT6"}}, "device_type": "emu-packet-router",
"device_type": "emu-packet-router", "device_operational_status": 2, "device_drivers": [0], "device_endpoints": [],
"device_config": {"config_rules": [ "device_config": {"config_rules": [
{"action": 1, "custom": {"resource_key": "_connect/mpls_label", "resource_value": "16060"}},
{"action": 1, "custom": {"resource_key": "_connect/pcc_address", "resource_value": "6.6.6.6"}},
{"action": 1, "custom": {"resource_key": "_connect/address", "resource_value": "6.6.6.6"}}, {"action": 1, "custom": {"resource_key": "_connect/address", "resource_value": "6.6.6.6"}},
{"action": 1, "custom": {"resource_key": "_connect/port", "resource_value": "0"}}, {"action": 1, "custom": {"resource_key": "_connect/port", "resource_value": "0"}},
{"action": 1, "custom": {"resource_key": "_connect/settings", "resource_value": {"action": 1, "custom": {"resource_key": "_connect/settings", "resource_value": {"endpoints": [
"{\"endpoints\": [{\"sample_types\": [], \"type\": \"copper\", \"uuid\": \"eth-rt4\"}, {\"sample_types\": [], \"type\": \"copper\", \"uuid\": \"eth-rt5\"}, {\"sample_types\": [], \"type\": \"copper\", \"uuid\": \"eth-dst\"}]}"}} {"sample_types": [], "type": "copper", "uuid": "eth-rt4"},
]}, {"sample_types": [], "type": "copper", "uuid": "eth-rt5"},
"device_operational_status": 1, {"sample_types": [], "type": "copper", "uuid": "eth-dst"}
"device_drivers": [0], ]}}},
"device_endpoints": [] {"action": 1, "custom": {"resource_key": "/te_data/mpls_label", "resource_value": "16060"}},
{"action": 1, "custom": {"resource_key": "/te_data/pcc_address", "resource_value": "6.6.6.6"}}
]}
} }
], ],
"links": [ "links": [
{ {
"link_id": {"link_uuid": {"uuid": "RT1/SW1"}}, "link_id": {"link_uuid": {"uuid": "RT1/SW1"}}, "link_endpoint_ids": [
"link_endpoint_ids": [
{"device_id": {"device_uuid": {"uuid": "RT1"}}, "endpoint_uuid": {"uuid": "eth-sw1"}}, {"device_id": {"device_uuid": {"uuid": "RT1"}}, "endpoint_uuid": {"uuid": "eth-sw1"}},
{"device_id": {"device_uuid": {"uuid": "SW1"}}, "endpoint_uuid": {"uuid": "df8bb169-2013-4b82-9455-69777f7a01d6"}} {"device_id": {"device_uuid": {"uuid": "SW1"}}, "endpoint_uuid": {"uuid": "df8bb169-2013-4b82-9455-69777f7a01d6"}}
] ]
}, },
{ {
"link_id": {"link_uuid": {"uuid": "RT2/SW1"}}, "link_id": {"link_uuid": {"uuid": "RT2/SW1"}}, "link_endpoint_ids": [
"link_endpoint_ids": [
{"device_id": {"device_uuid": {"uuid": "RT2"}}, "endpoint_uuid": {"uuid": "eth-sw1"}}, {"device_id": {"device_uuid": {"uuid": "RT2"}}, "endpoint_uuid": {"uuid": "eth-sw1"}},
{"device_id": {"device_uuid": {"uuid": "SW1"}}, "endpoint_uuid": {"uuid": "061119c1-2aa4-48e9-be64-3ddf465fc80a"}} {"device_id": {"device_uuid": {"uuid": "SW1"}}, "endpoint_uuid": {"uuid": "061119c1-2aa4-48e9-be64-3ddf465fc80a"}}
] ]
}, },
{ {
"link_id": {"link_uuid": {"uuid": "RT3/SW1"}}, "link_id": {"link_uuid": {"uuid": "RT3/SW1"}}, "link_endpoint_ids": [
"link_endpoint_ids": [
{"device_id": {"device_uuid": {"uuid": "RT3"}}, "endpoint_uuid": {"uuid": "eth-sw1"}}, {"device_id": {"device_uuid": {"uuid": "RT3"}}, "endpoint_uuid": {"uuid": "eth-sw1"}},
{"device_id": {"device_uuid": {"uuid": "SW1"}}, "endpoint_uuid": {"uuid": "495ea3f8-e67f-46a0-84bd-a230a4b7067d"}} {"device_id": {"device_uuid": {"uuid": "SW1"}}, "endpoint_uuid": {"uuid": "495ea3f8-e67f-46a0-84bd-a230a4b7067d"}}
] ]
}, },
{ {
"link_id": {"link_uuid": {"uuid": "RT2/RT4/1"}}, "link_id": {"link_uuid": {"uuid": "RT2/RT4/1"}}, "link_endpoint_ids": [
"link_endpoint_ids": [
{"device_id": {"device_uuid": {"uuid": "RT2"}}, "endpoint_uuid": {"uuid": "eth-rt4-1"}}, {"device_id": {"device_uuid": {"uuid": "RT2"}}, "endpoint_uuid": {"uuid": "eth-rt4-1"}},
{"device_id": {"device_uuid": {"uuid": "RT4"}}, "endpoint_uuid": {"uuid": "eth-rt2-1"}} {"device_id": {"device_uuid": {"uuid": "RT4"}}, "endpoint_uuid": {"uuid": "eth-rt2-1"}}
] ]
}, },
{ {
"link_id": {"link_uuid": {"uuid": "RT2/RT4/2"}}, "link_id": {"link_uuid": {"uuid": "RT2/RT4/2"}}, "link_endpoint_ids": [
"link_endpoint_ids": [
{"device_id": {"device_uuid": {"uuid": "RT2"}}, "endpoint_uuid": {"uuid": "eth-rt4-2"}}, {"device_id": {"device_uuid": {"uuid": "RT2"}}, "endpoint_uuid": {"uuid": "eth-rt4-2"}},
{"device_id": {"device_uuid": {"uuid": "RT4"}}, "endpoint_uuid": {"uuid": "eth-rt2-2"}} {"device_id": {"device_uuid": {"uuid": "RT4"}}, "endpoint_uuid": {"uuid": "eth-rt2-2"}}
] ]
}, },
{ {
"link_id": {"link_uuid": {"uuid": "RT3/RT5/1"}}, "link_id": {"link_uuid": {"uuid": "RT3/RT5/1"}}, "link_endpoint_ids": [
"link_endpoint_ids": [
{"device_id": {"device_uuid": {"uuid": "RT3"}}, "endpoint_uuid": {"uuid": "eth-rt5-1"}}, {"device_id": {"device_uuid": {"uuid": "RT3"}}, "endpoint_uuid": {"uuid": "eth-rt5-1"}},
{"device_id": {"device_uuid": {"uuid": "RT5"}}, "endpoint_uuid": {"uuid": "eth-rt3-1"}} {"device_id": {"device_uuid": {"uuid": "RT5"}}, "endpoint_uuid": {"uuid": "eth-rt3-1"}}
] ]
}, },
{ {
"link_id": {"link_uuid": {"uuid": "RT3/RT5/2"}}, "link_id": {"link_uuid": {"uuid": "RT3/RT5/2"}}, "link_endpoint_ids": [
"link_endpoint_ids": [
{"device_id": {"device_uuid": {"uuid": "RT3"}}, "endpoint_uuid": {"uuid": "eth-rt5-2"}}, {"device_id": {"device_uuid": {"uuid": "RT3"}}, "endpoint_uuid": {"uuid": "eth-rt5-2"}},
{"device_id": {"device_uuid": {"uuid": "RT5"}}, "endpoint_uuid": {"uuid": "eth-rt3-2"}} {"device_id": {"device_uuid": {"uuid": "RT5"}}, "endpoint_uuid": {"uuid": "eth-rt3-2"}}
] ]
}, },
{ {
"link_id": {"link_uuid": {"uuid": "RT4/RT5"}}, "link_id": {"link_uuid": {"uuid": "RT4/RT5"}}, "link_endpoint_ids": [
"link_endpoint_ids": [
{"device_id": {"device_uuid": {"uuid": "RT4"}}, "endpoint_uuid": {"uuid": "eth-rt5"}}, {"device_id": {"device_uuid": {"uuid": "RT4"}}, "endpoint_uuid": {"uuid": "eth-rt5"}},
{"device_id": {"device_uuid": {"uuid": "RT5"}}, "endpoint_uuid": {"uuid": "eth-rt4"}} {"device_id": {"device_uuid": {"uuid": "RT5"}}, "endpoint_uuid": {"uuid": "eth-rt4"}}
] ]
}, },
{ {
"link_id": {"link_uuid": {"uuid": "RT4/RT6"}}, "link_id": {"link_uuid": {"uuid": "RT4/RT6"}}, "link_endpoint_ids": [
"link_endpoint_ids": [
{"device_id": {"device_uuid": {"uuid": "RT4"}}, "endpoint_uuid": {"uuid": "eth-rt6"}}, {"device_id": {"device_uuid": {"uuid": "RT4"}}, "endpoint_uuid": {"uuid": "eth-rt6"}},
{"device_id": {"device_uuid": {"uuid": "RT6"}}, "endpoint_uuid": {"uuid": "eth-rt4"}} {"device_id": {"device_uuid": {"uuid": "RT6"}}, "endpoint_uuid": {"uuid": "eth-rt4"}}
] ]
}, },
{ {
"link_id": {"link_uuid": {"uuid": "RT5/RT6"}}, "link_id": {"link_uuid": {"uuid": "RT5/RT6"}}, "link_endpoint_ids": [
"link_endpoint_ids": [
{"device_id": {"device_uuid": {"uuid": "RT5"}}, "endpoint_uuid": {"uuid": "eth-rt6"}}, {"device_id": {"device_uuid": {"uuid": "RT5"}}, "endpoint_uuid": {"uuid": "eth-rt6"}},
{"device_id": {"device_uuid": {"uuid": "RT6"}}, "endpoint_uuid": {"uuid": "eth-rt5"}} {"device_id": {"device_uuid": {"uuid": "RT6"}}, "endpoint_uuid": {"uuid": "eth-rt5"}}
] ]
......
...@@ -78,12 +78,12 @@ ...@@ -78,12 +78,12 @@
### Run the Test-Bed ### Run the Test-Bed
First load the [teraflow configuration file](./2-6-teraflow-topology.json) using the webui. First load the [teraflow configuration file](~/tfs-ctrl/src/te/tests/topology-descriptors.json) using the webui.
The first time the configuration is loaded may partialy fail because it tries to load the topology before the devices and links, but a second load should work. The first time the configuration is loaded may partialy fail because it tries to load the topology before the devices and links, but a second load should work.
In first console: In first console:
$ cd ~/testbed $ cd ~/testbed
$ ../tfs-ctrl/tutorial/2-6-te-demo-start-testbed.sh $ ../tfs-ctrl/src/te/tests/start-testbed.sh
Then in second console: Then in second console:
$ sudo -i $ sudo -i
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment