diff options
author | Marek Gradzki <mgradzki@cisco.com> | 2017-11-27 07:49:48 +0100 |
---|---|---|
committer | Marek Gradzki <mgradzki@cisco.com> | 2017-11-28 16:13:37 +0100 |
commit | 2c4c5fcaeb2f5bd0b3b710191bdfde8a03abbc93 (patch) | |
tree | 6484f883031ca281f1e8ff4afc292ff8fb2795df /docker/mpls_demo/init | |
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/init')
-rwxr-xr-x | docker/mpls_demo/init/vpp.sh | 19 | ||||
-rw-r--r-- | docker/mpls_demo/init/vpp1.cmd | 7 | ||||
-rw-r--r-- | docker/mpls_demo/init/vpp2.cmd | 7 | ||||
-rw-r--r-- | docker/mpls_demo/init/vpp3.cmd | 11 | ||||
-rw-r--r-- | docker/mpls_demo/init/vpp4.cmd | 11 |
5 files changed, 55 insertions, 0 deletions
diff --git a/docker/mpls_demo/init/vpp.sh b/docker/mpls_demo/init/vpp.sh new file mode 100755 index 000000000..f12cb0a32 --- /dev/null +++ b/docker/mpls_demo/init/vpp.sh @@ -0,0 +1,19 @@ +#!/bin/bash + +# Starts and initializes vpp. +# Then starts honeycomb +# +# $1 - node name +# + +/hc2vpp/vpp/start.sh +echo "Waiting for vpp to start" +sleep 5 + +# Configure veth interfaces +# (not yet fully supported by honeycomb) +echo "Configuring vpp" +vppctl exec /hc2vpp/mpls_demo/init/$1.cmd + +echo "Starting honeycomb" +/hc2vpp/honeycomb/start.sh diff --git a/docker/mpls_demo/init/vpp1.cmd b/docker/mpls_demo/init/vpp1.cmd new file mode 100644 index 000000000..074c0a175 --- /dev/null +++ b/docker/mpls_demo/init/vpp1.cmd @@ -0,0 +1,7 @@ +create host-interface name veth12 +set int state host-veth12 up +set int ip address host-veth12 10.12.1.1/24 + +create host-interface name veth13 +set int state host-veth13 up +set int ip address host-veth13 10.13.1.1/24 diff --git a/docker/mpls_demo/init/vpp2.cmd b/docker/mpls_demo/init/vpp2.cmd new file mode 100644 index 000000000..e9cac61a1 --- /dev/null +++ b/docker/mpls_demo/init/vpp2.cmd @@ -0,0 +1,7 @@ +create host-interface name veth21 +set int state host-veth21 up +set int ip address host-veth21 10.12.1.2/24 + +create host-interface name veth24 +set int state host-veth24 up +set int ip address host-veth24 10.24.1.2/24 diff --git a/docker/mpls_demo/init/vpp3.cmd b/docker/mpls_demo/init/vpp3.cmd new file mode 100644 index 000000000..7e5a6231d --- /dev/null +++ b/docker/mpls_demo/init/vpp3.cmd @@ -0,0 +1,11 @@ +create host-interface name veth31 +set int state host-veth31 up +set int ip address host-veth31 10.13.1.3/24 + +create host-interface name veth341 +set int state host-veth341 up +set int ip address host-veth341 10.34.1.3/24 + +create host-interface name veth342 +set int state host-veth342 up +set int ip address host-veth342 10.34.2.3/24 diff --git a/docker/mpls_demo/init/vpp4.cmd b/docker/mpls_demo/init/vpp4.cmd new file mode 100644 index 000000000..b3a69eec9 --- /dev/null +++ b/docker/mpls_demo/init/vpp4.cmd @@ -0,0 +1,11 @@ +create host-interface name veth42 +set int state host-veth42 up +set int ip address host-veth42 10.24.1.4/24 + +create host-interface name veth431 +set int state host-veth431 up +set int ip address host-veth431 10.34.1.4/24 + +create host-interface name veth432 +set int state host-veth432 up +set int ip address host-veth432 10.34.2.4/24 |