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/ovn/env5/packet1.sh | 21 -------------- tutorial/ovn/env5/packet2.sh | 20 ------------- tutorial/ovn/env5/setup.sh | 67 -------------------------------------------- 3 files changed, 108 deletions(-) delete mode 100755 tutorial/ovn/env5/packet1.sh delete mode 100755 tutorial/ovn/env5/packet2.sh delete mode 100755 tutorial/ovn/env5/setup.sh (limited to 'tutorial/ovn/env5') 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 -- cgit v1.2.1