]> git.proxmox.com Git - mirror_ovs.git/blame - tutorial/ovn/env3/packet2.sh
actions: Add new "ct_clear" action.
[mirror_ovs.git] / tutorial / ovn / env3 / packet2.sh
CommitLineData
9107431f
RB
1#!/bin/bash
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at:
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14#
15
16set -o xtrace
17
18#
19# This trace simulates a packet arriving over a Geneve tunnel from a remote OVN
20# chassis. The fields are as follows:
21#
22# tun_id -
23# The logical datapath (or logical switch) ID. In this case, we only
24# have a single logical switch and its ID is 1.
25#
26# tun_metadata0 -
27# This field holds 2 pieces of metadata. The low 16 bits hold the logical
28# destination port (1 in this case). The upper 16 bits hold the logical
29# source port (3 in this case.
30#
31ovs-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