diff options
author | 2017-11-27 07:49:48 +0100 | |
---|---|---|
committer | 2017-11-28 16:13:37 +0100 | |
commit | 2c4c5fcaeb2f5bd0b3b710191bdfde8a03abbc93 (patch) | |
tree | 6484f883031ca281f1e8ff4afc292ff8fb2795df /docker/mpls_demo/build_topology.sh | |
parent | c125686ff6e70ce3402ad4d1b7215cfe801b7158 (diff) |
MPLS SR configuration examples
Provides examples of MPLS SR config using Honeycomb
for the following topology:
A
/
vpp1 – vpp2 – vpp4
\ // \
–– vpp3 –– B
Each vpp node represents docker container
with honeycomb running.
A and B represent egrees nodes modeled using tap interfaces.
Scripts for building topology and Postman
collection with example requests included.
Change-Id: I96099d9b5b2af50bf48962c869ad5b2474673227
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Diffstat (limited to 'docker/mpls_demo/build_topology.sh')
-rwxr-xr-x | docker/mpls_demo/build_topology.sh | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/docker/mpls_demo/build_topology.sh b/docker/mpls_demo/build_topology.sh new file mode 100755 index 000000000..5764ebf1b --- /dev/null +++ b/docker/mpls_demo/build_topology.sh @@ -0,0 +1,37 @@ +#!/bin/bash +source ../utils.sh + +if [[ $UID != 0 ]]; then + echo "Please run this script with sudo:" + echo "sudo $0 $*" + exit 1 +fi + +# Cleanup +../remove_hc2vpp_containers.sh + +# Create directory for storing network namespaces +mkdir -p /var/run/netns + +# Build topology +# +# vpp1 – vpp2 – vpp4 +# \ // +# –– vpp3 –– +# +create_container vpp1 hc2vpp +create_container vpp2 hc2vpp +create_container vpp3 hc2vpp +create_container vpp4 hc2vpp + +start_container vpp1 +start_container vpp2 +start_container vpp3 +start_container vpp4 + +# Connect containers using veth interfaces +create_link vpp1 veth12 veth21 vpp2 +create_link vpp1 veth13 veth31 vpp3 +create_link vpp2 veth24 veth42 vpp4 +create_link vpp3 veth341 veth431 vpp4 +create_link vpp3 veth342 veth432 vpp4 |