From ce1b99a5f8cde6dc4e67a05d7b711c7e88c6810f Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Thu, 19 Jan 2017 14:11:48 -0500 Subject: doc: Remove tutorials/ovn-basics. The only thing worse than a lack of documentation is incorrect or out-of-date documentation. Over time, this document has not kept up with the pace of OVN and is no longer a good current resource. For a sandbox based tutorial like this, I'd like to start over using ovn-trace as the basis. An even more important type of tutorial would be something along the lines of: http://blog.spinhirne.com/p/blog-series.html That blog series was fantastic and has been the primary tutorial reference I have been sending people to since it was written. Signed-off-by: Russell Bryant Acked-by: Ben Pfaff --- tutorial/automake.mk | 33 +-------------- tutorial/ovn/env1/add-security-ip-ports.sh | 25 ----------- tutorial/ovn/env1/add-third-port.sh | 21 ---------- tutorial/ovn/env1/add-unknown-ports.sh | 25 ----------- tutorial/ovn/env1/packet1.sh | 19 --------- tutorial/ovn/env1/packet2.sh | 19 --------- tutorial/ovn/env1/packet3.sh | 19 --------- tutorial/ovn/env1/packet4.sh | 19 --------- tutorial/ovn/env1/setup.sh | 46 -------------------- tutorial/ovn/env2/packet1.sh | 18 -------- tutorial/ovn/env2/packet2.sh | 18 -------- tutorial/ovn/env2/setup.sh | 36 ---------------- tutorial/ovn/env3/packet1.sh | 19 --------- tutorial/ovn/env3/packet2.sh | 31 -------------- tutorial/ovn/env3/setup.sh | 44 -------------------- tutorial/ovn/env4/packet1.sh | 21 ---------- tutorial/ovn/env4/packet2.sh | 21 ---------- tutorial/ovn/env4/packet3.sh | 20 --------- tutorial/ovn/env4/packet4.sh | 20 --------- tutorial/ovn/env4/setup.sh | 50 ---------------------- tutorial/ovn/env5/packet1.sh | 21 ---------- tutorial/ovn/env5/packet2.sh | 20 --------- tutorial/ovn/env5/setup.sh | 67 ------------------------------ tutorial/ovn/env6/add-acls.sh | 21 ---------- tutorial/ovn/env6/setup.sh | 46 -------------------- tutorial/ovn/env7/add-container-ports.sh | 60 -------------------------- tutorial/ovn/env7/packet1.sh | 19 --------- tutorial/ovn/env7/packet2.sh | 19 --------- tutorial/ovn/env7/setup.sh | 36 ---------------- tutorial/ovn/env8/packet1.sh | 21 ---------- tutorial/ovn/env8/packet2.sh | 20 --------- tutorial/ovn/env8/setup.sh | 47 --------------------- 32 files changed, 1 insertion(+), 920 deletions(-) delete mode 100755 tutorial/ovn/env1/add-security-ip-ports.sh delete mode 100755 tutorial/ovn/env1/add-third-port.sh delete mode 100755 tutorial/ovn/env1/add-unknown-ports.sh delete mode 100755 tutorial/ovn/env1/packet1.sh delete mode 100755 tutorial/ovn/env1/packet2.sh delete mode 100755 tutorial/ovn/env1/packet3.sh delete mode 100755 tutorial/ovn/env1/packet4.sh delete mode 100755 tutorial/ovn/env1/setup.sh delete mode 100755 tutorial/ovn/env2/packet1.sh delete mode 100755 tutorial/ovn/env2/packet2.sh delete mode 100755 tutorial/ovn/env2/setup.sh delete mode 100755 tutorial/ovn/env3/packet1.sh delete mode 100755 tutorial/ovn/env3/packet2.sh delete mode 100755 tutorial/ovn/env3/setup.sh delete mode 100755 tutorial/ovn/env4/packet1.sh delete mode 100755 tutorial/ovn/env4/packet2.sh delete mode 100755 tutorial/ovn/env4/packet3.sh delete mode 100755 tutorial/ovn/env4/packet4.sh delete mode 100755 tutorial/ovn/env4/setup.sh delete mode 100755 tutorial/ovn/env5/packet1.sh delete mode 100755 tutorial/ovn/env5/packet2.sh delete mode 100755 tutorial/ovn/env5/setup.sh delete mode 100755 tutorial/ovn/env6/add-acls.sh delete mode 100755 tutorial/ovn/env6/setup.sh delete mode 100755 tutorial/ovn/env7/add-container-ports.sh delete mode 100755 tutorial/ovn/env7/packet1.sh delete mode 100755 tutorial/ovn/env7/packet2.sh delete mode 100755 tutorial/ovn/env7/setup.sh delete mode 100755 tutorial/ovn/env8/packet1.sh delete mode 100755 tutorial/ovn/env8/packet2.sh delete mode 100755 tutorial/ovn/env8/setup.sh (limited to 'tutorial') diff --git a/tutorial/automake.mk b/tutorial/automake.mk index 5509062ea..9dea3b5c4 100644 --- a/tutorial/automake.mk +++ b/tutorial/automake.mk @@ -5,37 +5,6 @@ EXTRA_DIST += \ tutorial/t-stage1 \ tutorial/t-stage2 \ tutorial/t-stage3 \ - tutorial/t-stage4 \ - tutorial/ovn/env1/setup.sh \ - tutorial/ovn/env1/packet1.sh \ - tutorial/ovn/env1/packet2.sh \ - tutorial/ovn/env1/packet3.sh \ - tutorial/ovn/env1/packet4.sh \ - tutorial/ovn/env1/add-third-port.sh \ - tutorial/ovn/env1/add-unknown-ports.sh \ - tutorial/ovn/env1/add-security-ip-ports.sh \ - tutorial/ovn/env2/setup.sh \ - tutorial/ovn/env2/packet1.sh \ - tutorial/ovn/env2/packet2.sh \ - tutorial/ovn/env3/setup.sh \ - tutorial/ovn/env3/packet1.sh \ - tutorial/ovn/env3/packet2.sh \ - tutorial/ovn/env4/setup.sh \ - tutorial/ovn/env4/packet1.sh \ - tutorial/ovn/env4/packet2.sh \ - tutorial/ovn/env4/packet3.sh \ - tutorial/ovn/env4/packet4.sh \ - tutorial/ovn/env5/setup.sh \ - tutorial/ovn/env5/packet1.sh \ - tutorial/ovn/env5/packet2.sh \ - tutorial/ovn/env6/setup.sh \ - tutorial/ovn/env6/add-acls.sh \ - tutorial/ovn/env7/add-container-ports.sh \ - tutorial/ovn/env7/packet1.sh \ - tutorial/ovn/env7/packet2.sh \ - tutorial/ovn/env7/setup.sh \ - tutorial/ovn/env8/packet1.sh \ - tutorial/ovn/env8/packet2.sh \ - tutorial/ovn/env8/setup.sh + tutorial/t-stage4 sandbox: all cd $(srcdir)/tutorial && MAKE=$(MAKE) ./ovs-sandbox -b $(abs_builddir) $(SANDBOXFLAGS) diff --git a/tutorial/ovn/env1/add-security-ip-ports.sh b/tutorial/ovn/env1/add-security-ip-ports.sh deleted file mode 100755 index 5be152849..000000000 --- a/tutorial/ovn/env1/add-security-ip-ports.sh +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/bash -# -# 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. -# - -set -o xtrace - -ovn-nbctl lsp-add sw0 sw0-port6 -ovn-nbctl lsp-add sw0 sw0-port7 -ovn-nbctl lsp-set-addresses sw0-port6 "00:00:00:00:00:06" -ovn-nbctl lsp-set-addresses sw0-port7 "00:00:00:00:00:07" -ovn-nbctl lsp-set-port-security sw0-port6 00:00:00:00:00:06 192.168.1.10/24 -ovn-nbctl lsp-set-port-security sw0-port7 00:00:00:00:00:07 192.168.1.20/24 -ovs-vsctl add-port br-int lport6 -- set Interface lport6 external_ids:iface-id=sw0-port6 -ovs-vsctl add-port br-int lport7 -- set Interface lport7 external_ids:iface-id=sw0-port7 diff --git a/tutorial/ovn/env1/add-third-port.sh b/tutorial/ovn/env1/add-third-port.sh deleted file mode 100755 index 06c496923..000000000 --- a/tutorial/ovn/env1/add-third-port.sh +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/bash -# -# 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. -# - -set -o xtrace - -ovn-nbctl lsp-add sw0 sw0-port3 -ovn-nbctl lsp-set-addresses sw0-port3 00:00:00:00:00:03 -ovn-nbctl lsp-set-port-security sw0-port3 00:00:00:00:00:03 -ovs-vsctl add-port br-int lport3 -- set Interface lport3 external_ids:iface-id=sw0-port3 diff --git a/tutorial/ovn/env1/add-unknown-ports.sh b/tutorial/ovn/env1/add-unknown-ports.sh deleted file mode 100755 index be161d25d..000000000 --- a/tutorial/ovn/env1/add-unknown-ports.sh +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/bash -# -# 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. -# - -set -o xtrace - -ovn-nbctl lsp-add sw0 sw0-port4 -ovn-nbctl lsp-add sw0 sw0-port5 -ovn-nbctl lsp-set-addresses sw0-port4 unknown -ovn-nbctl lsp-set-addresses sw0-port5 unknown -ovn-nbctl lsp-set-port-security sw0-port4 00:00:00:00:00:04 00:00:00:00:00:05 -ovn-nbctl lsp-set-port-security sw0-port5 00:00:00:00:00:04 00:00:00:00:00:05 -ovs-vsctl add-port br-int lport4 -- set Interface lport4 external_ids:iface-id=sw0-port4 -ovs-vsctl add-port br-int lport5 -- set Interface lport5 external_ids:iface-id=sw0-port5 diff --git a/tutorial/ovn/env1/packet1.sh b/tutorial/ovn/env1/packet1.sh deleted file mode 100755 index 35ab04b75..000000000 --- a/tutorial/ovn/env1/packet1.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/bash -# -# 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. -# - -set -o xtrace - -# Trace a packet from sw0-port1 to sw0-port2. -ovs-appctl ofproto/trace br-int in_port=1,dl_src=00:00:00:00:00:01,dl_dst=00:00:00:00:00:02 -generate diff --git a/tutorial/ovn/env1/packet2.sh b/tutorial/ovn/env1/packet2.sh deleted file mode 100755 index bb5c5dce8..000000000 --- a/tutorial/ovn/env1/packet2.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/bash -# -# 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. -# - -set -o xtrace - -# Trace a broadcast packet from sw0-port1 -ovs-appctl ofproto/trace br-int in_port=1,dl_src=00:00:00:00:00:01,dl_dst=ff:ff:ff:ff:ff:ff -generate diff --git a/tutorial/ovn/env1/packet3.sh b/tutorial/ovn/env1/packet3.sh deleted file mode 100755 index b26680157..000000000 --- a/tutorial/ovn/env1/packet3.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/bash -# -# 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. -# - -set -o xtrace - -# Trace a packet from sw0-port1 to sw0-port4, sw0-port5 which address is set as unknown. -ovs-appctl ofproto/trace br-int in_port=1,dl_src=00:00:00:00:00:01,dl_dst=00:00:00:00:00:04 -generate diff --git a/tutorial/ovn/env1/packet4.sh b/tutorial/ovn/env1/packet4.sh deleted file mode 100755 index 2fa45305e..000000000 --- a/tutorial/ovn/env1/packet4.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/bash -# -# 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. -# - -set -o xtrace - -# Trace a packet from sw0-port6 to sw0-port7. -ovs-appctl ofproto/trace br-int in_port=6,dl_type=0x0800,dl_src=00:00:00:00:00:06,dl_dst=00:00:00:00:00:07,nw_src=192.168.1.10,nw_dst=192.168.1.20 -generate diff --git a/tutorial/ovn/env1/setup.sh b/tutorial/ovn/env1/setup.sh deleted file mode 100755 index a9c6f39a7..000000000 --- a/tutorial/ovn/env1/setup.sh +++ /dev/null @@ -1,46 +0,0 @@ -#!/bin/bash -# -# 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. -# - -# -# See "Simple two-port setup" in Documentation/tutorial/ovn-basics.rst. -# - -set -o xtrace - -# Create a logical switch named "sw0" -ovn-nbctl ls-add sw0 - -# Create two logical ports on "sw0". -ovn-nbctl lsp-add sw0 sw0-port1 -ovn-nbctl lsp-add sw0 sw0-port2 - -# Set a MAC address for each of the two logical ports. -ovn-nbctl lsp-set-addresses sw0-port1 00:00:00:00:00:01 -ovn-nbctl lsp-set-addresses sw0-port2 00:00:00:00:00:02 - -# Set up port security for the two logical ports. This ensures that -# the logical port mac address we have configured is the only allowed -# source and destination mac address for these ports. -ovn-nbctl lsp-set-port-security sw0-port1 00:00:00:00:00:01 -ovn-nbctl lsp-set-port-security sw0-port2 00:00:00:00:00:02 - -# Create ports on the local OVS bridge, br-int. When ovn-controller -# sees these ports show up with an "iface-id" that matches the OVN -# logical port names, it associates these local ports with the OVN -# logical ports. ovn-controller will then set up the flows necessary -# for these ports to be able to communicate each other as defined by -# the OVN logical topology. -ovs-vsctl add-port br-int lport1 -- set Interface lport1 external_ids:iface-id=sw0-port1 -ovs-vsctl add-port br-int lport2 -- set Interface lport2 external_ids:iface-id=sw0-port2 diff --git a/tutorial/ovn/env2/packet1.sh b/tutorial/ovn/env2/packet1.sh deleted file mode 100755 index f1ca3bfb2..000000000 --- a/tutorial/ovn/env2/packet1.sh +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/bash -# -# 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. -# - -set -o xtrace - -ovs-appctl ofproto/trace br-int in_port=1,dl_src=00:00:00:00:00:01,dl_dst=00:00:00:00:00:02 -generate diff --git a/tutorial/ovn/env2/packet2.sh b/tutorial/ovn/env2/packet2.sh deleted file mode 100755 index c8be34557..000000000 --- a/tutorial/ovn/env2/packet2.sh +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/bash -# -# 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. -# - -set -o xtrace - -ovs-appctl ofproto/trace br-int in_port=1,dl_src=00:00:00:00:00:01,dl_dst=00:00:00:00:00:03 -generate diff --git a/tutorial/ovn/env2/setup.sh b/tutorial/ovn/env2/setup.sh deleted file mode 100755 index 008caa1d1..000000000 --- a/tutorial/ovn/env2/setup.sh +++ /dev/null @@ -1,36 +0,0 @@ -#!/bin/bash -# -# 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. -# - -set -o xtrace - -ovn-nbctl ls-add sw0 -ovn-nbctl ls-add sw1 -ovn-nbctl lsp-add sw0 sw0-port1 -ovn-nbctl lsp-add sw0 sw0-port2 -ovn-nbctl lsp-add sw1 sw1-port1 -ovn-nbctl lsp-add sw1 sw1-port2 -ovn-nbctl lsp-set-addresses sw0-port1 00:00:00:00:00:01 -ovn-nbctl lsp-set-addresses sw0-port2 00:00:00:00:00:02 -ovn-nbctl lsp-set-addresses sw1-port1 00:00:00:00:00:03 -ovn-nbctl lsp-set-addresses sw1-port2 00:00:00:00:00:04 -ovn-nbctl lsp-set-port-security sw0-port1 00:00:00:00:00:01 -ovn-nbctl lsp-set-port-security sw0-port2 00:00:00:00:00:02 -ovn-nbctl lsp-set-port-security sw1-port1 00:00:00:00:00:03 -ovn-nbctl lsp-set-port-security sw1-port2 00:00:00:00:00:04 - -ovs-vsctl add-port br-int lport1 -- set Interface lport1 external_ids:iface-id=sw0-port1 -ovs-vsctl add-port br-int lport2 -- set Interface lport2 external_ids:iface-id=sw0-port2 -ovs-vsctl add-port br-int lport3 -- set Interface lport3 external_ids:iface-id=sw1-port1 -ovs-vsctl add-port br-int lport4 -- set Interface lport4 external_ids:iface-id=sw1-port2 diff --git a/tutorial/ovn/env3/packet1.sh b/tutorial/ovn/env3/packet1.sh deleted file mode 100755 index 6d26e587d..000000000 --- a/tutorial/ovn/env3/packet1.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/bash -# -# 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. -# - -set -o xtrace - -# Trace a packet from sw0-port1 to sw0-port3. -ovs-appctl ofproto/trace br-int in_port=1,dl_src=00:00:00:00:00:01,dl_dst=00:00:00:00:00:03 -generate diff --git a/tutorial/ovn/env3/packet2.sh b/tutorial/ovn/env3/packet2.sh deleted file mode 100755 index 0de461f52..000000000 --- a/tutorial/ovn/env3/packet2.sh +++ /dev/null @@ -1,31 +0,0 @@ -#!/bin/bash -# -# 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. -# - -set -o xtrace - -# -# This trace simulates a packet arriving over a Geneve tunnel from a remote OVN -# chassis. The fields are as follows: -# -# tun_id - -# The logical datapath (or logical switch) ID. In this case, we only -# have a single logical switch and its ID is 1. -# -# tun_metadata0 - -# This field holds 2 pieces of metadata. The low 16 bits hold the logical -# destination port (1 in this case). The upper 16 bits hold the logical -# source port (3 in this case. -# -ovs-appctl ofproto/trace br-int in_port=3,dl_src=00:00:00:00:00:03,dl_dst=00:00:00:00:00:01,tun_id=1,tun_metadata0=$[1 + $[3 << 16]] -generate diff --git a/tutorial/ovn/env3/setup.sh b/tutorial/ovn/env3/setup.sh deleted file mode 100755 index d67b1c83c..000000000 --- a/tutorial/ovn/env3/setup.sh +++ /dev/null @@ -1,44 +0,0 @@ -#!/bin/bash -# -# 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. -# - -set -o xtrace - -ovn-nbctl ls-add sw0 - -ovn-nbctl lsp-add sw0 sw0-port1 -ovn-nbctl lsp-add sw0 sw0-port2 -ovn-nbctl lsp-add sw0 sw0-port3 -ovn-nbctl lsp-add sw0 sw0-port4 - -ovn-nbctl lsp-set-addresses sw0-port1 00:00:00:00:00:01 -ovn-nbctl lsp-set-addresses sw0-port2 00:00:00:00:00:02 -ovn-nbctl lsp-set-addresses sw0-port3 00:00:00:00:00:03 -ovn-nbctl lsp-set-addresses sw0-port4 00:00:00:00:00:04 - -ovn-nbctl lsp-set-port-security sw0-port1 00:00:00:00:00:01 -ovn-nbctl lsp-set-port-security sw0-port2 00:00:00:00:00:02 -ovn-nbctl lsp-set-port-security sw0-port3 00:00:00:00:00:03 -ovn-nbctl lsp-set-port-security sw0-port4 00:00:00:00:00:04 - -# Bind sw0-port1 and sw0-port2 to the local chassis -ovs-vsctl add-port br-int lport1 -- set Interface lport1 external_ids:iface-id=sw0-port1 -ovs-vsctl add-port br-int lport2 -- set Interface lport2 external_ids:iface-id=sw0-port2 - -# Create a fake remote chassis. -ovn-sbctl chassis-add fakechassis geneve 127.0.0.1 - -# Bind sw0-port3 and sw0-port4 to the fake remote chassis. -ovn-sbctl lsp-bind sw0-port3 fakechassis -ovn-sbctl lsp-bind sw0-port4 fakechassis diff --git a/tutorial/ovn/env4/packet1.sh b/tutorial/ovn/env4/packet1.sh deleted file mode 100755 index 7b23738af..000000000 --- a/tutorial/ovn/env4/packet1.sh +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/bash -# -# 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. -# - -set -o xtrace - -# input from local vif, lport1 (ofport 2) -# destination MAC is lport2 -# expect to go out via localnet port (ofport 3) and lport2 (ofport 4) -ovs-appctl ofproto/trace br-int in_port=2,dl_src=00:00:00:00:00:01,dl_dst=00:00:00:00:00:02 -generate diff --git a/tutorial/ovn/env4/packet2.sh b/tutorial/ovn/env4/packet2.sh deleted file mode 100755 index 134056e88..000000000 --- a/tutorial/ovn/env4/packet2.sh +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/bash -# -# 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. -# - -set -o xtrace - -# input from local vif, lport1 (ofport 2) -# destination MAC is on remote chassis -# expect to go out via localnet port (ofport 3) -ovs-appctl ofproto/trace br-int in_port=2,dl_src=00:00:00:00:00:01,dl_dst=00:00:00:00:00:03 -generate diff --git a/tutorial/ovn/env4/packet3.sh b/tutorial/ovn/env4/packet3.sh deleted file mode 100755 index f90f2fc4d..000000000 --- a/tutorial/ovn/env4/packet3.sh +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/bash -# -# 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. -# - -set -o xtrace - -# input from local vif, lport1 (ofport 2) -# expect to go out via localnet port (ofport 3) and lport2 (ofport 4) -ovs-appctl ofproto/trace br-int in_port=2,dl_src=00:00:00:00:00:01,dl_dst=ff:ff:ff:ff:ff:ff -generate diff --git a/tutorial/ovn/env4/packet4.sh b/tutorial/ovn/env4/packet4.sh deleted file mode 100755 index be805bc72..000000000 --- a/tutorial/ovn/env4/packet4.sh +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/bash -# -# 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. -# - -set -o xtrace - -# We use the LOCAL port of br-eth1 to simulate the port connected to network. -# expect to arrive on lport1 (ofport 2) and lport2 (ofport 4) -ovs-appctl ofproto/trace br-eth1 in_port=LOCAL,dl_src=00:00:00:00:00:03,dl_dst=ff:ff:ff:ff:ff:ff -generate diff --git a/tutorial/ovn/env4/setup.sh b/tutorial/ovn/env4/setup.sh deleted file mode 100755 index 03950f0a1..000000000 --- a/tutorial/ovn/env4/setup.sh +++ /dev/null @@ -1,50 +0,0 @@ -#!/bin/bash -# -# 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. -# - -# This script simulates 2 chassis connected to a physical switch, -# which we call "physnet1". We have two logical ports, one on each hypervisor, -# that OVN will connect to physnet1. -# -# The way to accomplish this in OVN is to create a logical switch for each -# logical port. In addition to the normal logical port, each logical switch -# has a special "localnet" port, which represents the connection to physnet1. -# -# In this setup we see the view of this environment from one of the hypervisors. - -set -o xtrace - -ovs-vsctl add-br br-eth1 -ovs-vsctl set open . external-ids:ovn-bridge-mappings=physnet1:br-eth1 - -ovn-sbctl chassis-add fakechassis geneve 127.0.0.1 - -for n in 1 2 3 4; do - ovn-nbctl ls-add provnet1-$n - - ovn-nbctl lsp-add provnet1-$n provnet1-$n-port1 - ovn-nbctl lsp-set-addresses provnet1-$n-port1 00:00:00:00:00:0$n - ovn-nbctl lsp-set-port-security provnet1-$n-port1 00:00:00:00:00:0$n - - ovn-nbctl lsp-add provnet1-$n provnet1-$n-physnet1 - ovn-nbctl lsp-set-addresses provnet1-$n-physnet1 unknown - ovn-nbctl lsp-set-type provnet1-$n-physnet1 localnet - ovn-nbctl lsp-set-options provnet1-$n-physnet1 network_name=physnet1 -done - -ovs-vsctl add-port br-int lport1 -- set Interface lport1 external_ids:iface-id=provnet1-1-port1 -ovs-vsctl add-port br-int lport2 -- set Interface lport2 external_ids:iface-id=provnet1-2-port1 - -ovn-sbctl lsp-bind provnet1-3-port1 fakechassis -ovn-sbctl lsp-bind provnet1-4-port1 fakechassis diff --git a/tutorial/ovn/env5/packet1.sh b/tutorial/ovn/env5/packet1.sh deleted file mode 100755 index 64025c425..000000000 --- a/tutorial/ovn/env5/packet1.sh +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/bash -# -# 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. -# - -set -o xtrace - -# input from local vif, lport5 (ofport 6) -# destination MAC is lport6 -# expect to go out via localnet port (ofport 7) and lport6 (ofport 8) -ovs-appctl ofproto/trace br-int in_port=6,dl_src=00:00:00:00:00:05,dl_dst=00:00:00:00:00:06 -generate diff --git a/tutorial/ovn/env5/packet2.sh b/tutorial/ovn/env5/packet2.sh deleted file mode 100755 index 7ac5dd62c..000000000 --- a/tutorial/ovn/env5/packet2.sh +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/bash -# -# 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. -# - -set -o xtrace - -# We use the LOCAL port of br-eth1 to simulate the port connected to network. -# expect to arrive on lport5 (ofport 6) and lport6 (ofport 8) -ovs-appctl ofproto/trace br-eth1 in_port=LOCAL,dl_src=00:00:00:00:00:07,dl_dst=ff:ff:ff:ff:ff:ff,dl_vlan=101 -generate diff --git a/tutorial/ovn/env5/setup.sh b/tutorial/ovn/env5/setup.sh deleted file mode 100755 index b5eee6ae4..000000000 --- a/tutorial/ovn/env5/setup.sh +++ /dev/null @@ -1,67 +0,0 @@ -#!/bin/bash -# -# 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. -# - -# This script simulates 2 chassis connected to a physical switch, -# which we call "physnet1". We have two logical ports, one on each hypervisor, -# that OVN will connect to physnet1. -# -# The way to accomplish this in OVN is to create a logical switch for each -# logical port. In addition to the normal logical port, each logical switch -# has a special "localnet" port, which represents the connection to physnet1. -# -# In this setup we see the view of this environment from one of the hypervisors. - -set -o xtrace - -ovs-vsctl add-br br-eth1 -ovs-vsctl set open . external-ids:ovn-bridge-mappings=physnet1:br-eth1 - -ovn-sbctl chassis-add fakechassis geneve 127.0.0.1 - -for n in 1 2 3 4 5 6 7 8; do - if [ $n -gt 4 ] ; then - ls_name="provnet1-$n-101" - lsp_name="$ls_name-port1" - else - ls_name="provnet1-$n" - fi - ovn-nbctl ls-add $ls_name - - lsp_name="$ls_name-port1" - ovn-nbctl lsp-add $ls_name $lsp_name - ovn-nbctl lsp-set-addresses $lsp_name 00:00:00:00:00:0$n - ovn-nbctl lsp-set-port-security $lsp_name 00:00:00:00:00:0$n - - if [ $n -gt 4 ] ; then - lsp_name="provnet1-$n-physnet1-101" - ovn-nbctl lsp-add $ls_name $lsp_name "" 101 - else - lsp_name="provnet1-$n-physnet1" - ovn-nbctl lsp-add $ls_name $lsp_name - fi - ovn-nbctl lsp-set-addresses $lsp_name unknown - ovn-nbctl lsp-set-type $lsp_name localnet - ovn-nbctl lsp-set-options $lsp_name network_name=physnet1 -done - -ovs-vsctl add-port br-int lport1 -- set Interface lport1 external_ids:iface-id=provnet1-1-port1 -ovs-vsctl add-port br-int lport2 -- set Interface lport2 external_ids:iface-id=provnet1-2-port1 -ovs-vsctl add-port br-int lport5 -- set Interface lport5 external_ids:iface-id=provnet1-5-101-port1 -ovs-vsctl add-port br-int lport6 -- set Interface lport6 external_ids:iface-id=provnet1-6-101-port1 - -ovn-sbctl lsp-bind provnet1-3-port1 fakechassis -ovn-sbctl lsp-bind provnet1-4-port1 fakechassis -ovn-sbctl lsp-bind provnet1-7-101-port1 fakechassis -ovn-sbctl lsp-bind provnet1-8-101-port1 fakechassis diff --git a/tutorial/ovn/env6/add-acls.sh b/tutorial/ovn/env6/add-acls.sh deleted file mode 100755 index 74cf17b2e..000000000 --- a/tutorial/ovn/env6/add-acls.sh +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/bash -# -# 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. -# - -set -o xtrace - -ovn-nbctl acl-add sw0 from-lport 1002 "inport == \"sw0-port1\" && ip" allow-related -ovn-nbctl acl-add sw0 to-lport 1002 "outport == \"sw0-port1\" && ip && icmp" allow-related -ovn-nbctl acl-add sw0 to-lport 1002 "outport == \"sw0-port1\" && ip && tcp && tcp.dst == 22" allow-related -ovn-nbctl acl-add sw0 to-lport 1001 "outport == \"sw0-port1\" && ip" drop diff --git a/tutorial/ovn/env6/setup.sh b/tutorial/ovn/env6/setup.sh deleted file mode 100755 index a9c6f39a7..000000000 --- a/tutorial/ovn/env6/setup.sh +++ /dev/null @@ -1,46 +0,0 @@ -#!/bin/bash -# -# 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. -# - -# -# See "Simple two-port setup" in Documentation/tutorial/ovn-basics.rst. -# - -set -o xtrace - -# Create a logical switch named "sw0" -ovn-nbctl ls-add sw0 - -# Create two logical ports on "sw0". -ovn-nbctl lsp-add sw0 sw0-port1 -ovn-nbctl lsp-add sw0 sw0-port2 - -# Set a MAC address for each of the two logical ports. -ovn-nbctl lsp-set-addresses sw0-port1 00:00:00:00:00:01 -ovn-nbctl lsp-set-addresses sw0-port2 00:00:00:00:00:02 - -# Set up port security for the two logical ports. This ensures that -# the logical port mac address we have configured is the only allowed -# source and destination mac address for these ports. -ovn-nbctl lsp-set-port-security sw0-port1 00:00:00:00:00:01 -ovn-nbctl lsp-set-port-security sw0-port2 00:00:00:00:00:02 - -# Create ports on the local OVS bridge, br-int. When ovn-controller -# sees these ports show up with an "iface-id" that matches the OVN -# logical port names, it associates these local ports with the OVN -# logical ports. ovn-controller will then set up the flows necessary -# for these ports to be able to communicate each other as defined by -# the OVN logical topology. -ovs-vsctl add-port br-int lport1 -- set Interface lport1 external_ids:iface-id=sw0-port1 -ovs-vsctl add-port br-int lport2 -- set Interface lport2 external_ids:iface-id=sw0-port2 diff --git a/tutorial/ovn/env7/add-container-ports.sh b/tutorial/ovn/env7/add-container-ports.sh deleted file mode 100755 index fc9b001f9..000000000 --- a/tutorial/ovn/env7/add-container-ports.sh +++ /dev/null @@ -1,60 +0,0 @@ -#!/bin/bash -# -# 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. -# - -set -o xtrace - -# create a logical switch -ovn-nbctl ls-add csw0 - -# create a container port with parent set to sw0-port1 -ovn-nbctl lsp-add csw0 csw0-cport1 sw0-port1 42 -ovn-nbctl lsp-set-addresses csw0-cport1 00:00:00:00:01:01 -ovn-nbctl lsp-set-port-security csw0-cport1 00:00:00:00:01:01 - -# create another container port with parent set to sw0-port1 -ovn-nbctl lsp-add csw0 csw0-cport2 sw0-port2 43 -ovn-nbctl lsp-set-addresses csw0-cport2 00:00:00:00:01:02 -ovn-nbctl lsp-set-port-security csw0-cport2 00:00:00:00:01:02 - - -# Make lport1 as a patch port, other end connected to br-vmport1 -ovs-vsctl set interface lport1 type=patch -ovs-vsctl set interface lport1 options:peer=patch-lport1 - -ovs-vsctl set interface lport2 type=patch -ovs-vsctl set interface lport2 options:peer=patch-lport2 - - -# This represents ovs bridge inside a VM attached to lport1 -ovs-vsctl add-br br-vmport1 - -# create a patch port with peer set to lport1. -ovs-vsctl add-port br-vmport1 patch-lport1 -ovs-vsctl set interface patch-lport1 type=patch -ovs-vsctl set interface patch-lport1 options:peer=lport1 - -# create a container port on br-vmport1. Any traffic sent on this -# port will reach to the br-int of the host via the patch port -ovs-vsctl add-port br-vmport1 cport1 -ovs-vsctl set port cport1 tag=42 - -# This represents ovs bridge inside a VM attached to lport2 -ovs-vsctl add-br br-vmport2 -ovs-vsctl add-port br-vmport2 patch-lport2 -ovs-vsctl set interface patch-lport2 type=patch -ovs-vsctl set interface patch-lport2 options:peer=lport2 - -ovs-vsctl add-port br-vmport2 cport2 -ovs-vsctl set port cport2 tag=43 diff --git a/tutorial/ovn/env7/packet1.sh b/tutorial/ovn/env7/packet1.sh deleted file mode 100755 index 660566b96..000000000 --- a/tutorial/ovn/env7/packet1.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/bash -# -# 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. -# - -set -o xtrace - -# Trace a packet from csw0-port1 to csw0-port2. -ovs-appctl ofproto/trace br-vmport1 in_port=3,dl_src=00:00:00:0:01:01,dl_dst=00:00:00:00:01:02 -generate diff --git a/tutorial/ovn/env7/packet2.sh b/tutorial/ovn/env7/packet2.sh deleted file mode 100755 index 244fbbd47..000000000 --- a/tutorial/ovn/env7/packet2.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/bash -# -# 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. -# - -set -o xtrace - -# Trace a packet from csw0-port2 to csw0-port1. -ovs-appctl ofproto/trace br-vmport2 in_port=3,dl_src=00:00:00:0:01:02,dl_dst=00:00:00:00:01:01 -generate diff --git a/tutorial/ovn/env7/setup.sh b/tutorial/ovn/env7/setup.sh deleted file mode 100755 index 39acf3a6e..000000000 --- a/tutorial/ovn/env7/setup.sh +++ /dev/null @@ -1,36 +0,0 @@ -#!/bin/bash -# -# 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. -# - -set -o xtrace - -# Create a logical switch named "sw0" -ovn-nbctl ls-add sw0 - -# Create two logical ports on "sw0". -ovn-nbctl lsp-add sw0 sw0-port1 -ovn-nbctl lsp-add sw0 sw0-port2 -ovn-nbctl lsp-add sw0 sw0-port3 - -ovn-nbctl lsp-set-addresses sw0-port1 00:00:00:00:00:01 -ovn-nbctl lsp-set-addresses sw0-port2 00:00:00:00:00:02 -ovn-nbctl lsp-set-addresses sw0-port3 00:00:00:00:00:03 - -ovn-nbctl lsp-set-port-security sw0-port1 00:00:00:00:00:01 -ovn-nbctl lsp-set-port-security sw0-port2 00:00:00:00:00:02 -ovn-nbctl lsp-set-port-security sw0-port3 00:00:00:00:00:03 - -ovs-vsctl add-port br-int lport1 -- set Interface lport1 external_ids:iface-id=sw0-port1 -ovs-vsctl add-port br-int lport2 -- set Interface lport2 external_ids:iface-id=sw0-port2 -ovs-vsctl add-port br-int lport3 -- set Interface lport3 external_ids:iface-id=sw0-port3 diff --git a/tutorial/ovn/env8/packet1.sh b/tutorial/ovn/env8/packet1.sh deleted file mode 100755 index 13a49d0d1..000000000 --- a/tutorial/ovn/env8/packet1.sh +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/bash -# -# 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. -# - -set -o xtrace - -# input from local vif, lport1 (ofport 1) -# The destination MAC is not assigned to any host. -# expect to go out via l2gateway port (ofport 3) -ovs-appctl ofproto/trace br-int in_port=1,dl_src=00:00:00:00:00:01,dl_dst=00:00:00:00:00:03 -generate diff --git a/tutorial/ovn/env8/packet2.sh b/tutorial/ovn/env8/packet2.sh deleted file mode 100755 index a4a7f8c74..000000000 --- a/tutorial/ovn/env8/packet2.sh +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/bash -# -# 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. -# - -set -o xtrace - -# We use the LOCAL port of br-eth1 to simulate the port connected to network. -# expect to arrive on lport1 (ofport 1) and lport2 (ofport 2) -ovs-appctl ofproto/trace br-eth1 in_port=LOCAL,dl_src=00:00:00:00:00:03,dl_dst=ff:ff:ff:ff:ff:ff -generate diff --git a/tutorial/ovn/env8/setup.sh b/tutorial/ovn/env8/setup.sh deleted file mode 100755 index 2bb05ff84..000000000 --- a/tutorial/ovn/env8/setup.sh +++ /dev/null @@ -1,47 +0,0 @@ -#!/bin/bash -# -# 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. -# - -# This script simulates 2 chassis connected to a physical switch, -# which we call "physnet1". We have two logical ports, one on each hypervisor, -# that OVN will connect to physnet1. -# -# The way to accomplish this in OVN is to create a logical switch for each -# logical port. In addition to the normal logical port, each logical switch -# has a special "localnet" port, which represents the connection to physnet1. -# -# In this setup we see the view of this environment from one of the hypervisors. - -set -o xtrace - -ovn-nbctl ls-add sw0 - -ovn-nbctl lsp-add sw0 sw0-port1 -ovn-nbctl lsp-set-addresses sw0-port1 00:00:00:00:00:01 -ovn-nbctl lsp-set-port-security sw0-port1 00:00:00:00:00:01 -ovs-vsctl add-port br-int lport1 -- set Interface lport1 external_ids:iface-id=sw0-port1 - -ovn-nbctl lsp-add sw0 sw0-port2 -ovn-nbctl lsp-set-addresses sw0-port2 00:00:00:00:00:02 -ovn-nbctl lsp-set-port-security sw0-port2 00:00:00:00:00:02 -ovs-vsctl add-port br-int lport2 -- set Interface lport2 external_ids:iface-id=sw0-port2 - -ovn-nbctl lsp-add sw0 sw0-port3 -ovn-nbctl lsp-set-addresses sw0-port3 unknown -ovn-nbctl lsp-set-type sw0-port3 l2gateway -# The chassis UUID is hard-coded in tutorial/ovs-sandbox. -ovn-nbctl lsp-set-options sw0-port3 l2gateway-chassis=56b18105-5706-46ef-80c4-ff20979ab068 network_name=physnet1 - -ovs-vsctl --may-exist add-br br-eth1 -ovs-vsctl set open . external-ids:ovn-bridge-mappings=physnet1:br-eth1 -- cgit v1.2.1