summaryrefslogtreecommitdiff
path: root/tests/tunnel.at
diff options
context:
space:
mode:
authorJesse Gross <jesse@nicira.com>2014-06-05 19:07:32 -0700
committerJesse Gross <jesse@nicira.com>2014-06-20 15:19:35 -0700
commitc1fc1411d204c59608bf9fe36a65bd221b10cbb2 (patch)
treeefafb29b0bf6dbc98dd0e8da168ba1fc78b962cb /tests/tunnel.at
parent1d2a1b5f5252e4c6ce8bbf8d91ca27aba52496e6 (diff)
downloadopenvswitch-c1fc1411d204c59608bf9fe36a65bd221b10cbb2.tar.gz
datapath: Add support for Geneve tunneling.
This adds support for Geneve - Generic Network Virtualization Encapsulation. The protocol is documented at http://tools.ietf.org/html/draft-gross-geneve-00 The kernel implementation is completely agnostic to the options that are in use and can handle newly defined options without further work. It does this by simply matching on a byte array of options and allowing userspace to setup flows on this array. Userspace currently implements only support for basic version of Geneve. It can work with the base header (including the VNI) and is capable of parsing options but does not currently support any particular option definitions. Over time, the intention is to allow options to be matched through OpenFlow without requiring explicit support in OVS userspace. Signed-off-by: Jesse Gross <jesse@nicira.com> Acked-by: Thomas Graf <tgraf@suug.ch> Acked-by: Pravin B Shelar <pshelar@nicira.com>
Diffstat (limited to 'tests/tunnel.at')
-rw-r--r--tests/tunnel.at12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/tunnel.at b/tests/tunnel.at
index aa16d587b..2ae8179db 100644
--- a/tests/tunnel.at
+++ b/tests/tunnel.at
@@ -310,6 +310,18 @@ Datapath actions: drop
OVS_VSWITCHD_STOP
AT_CLEANUP
+AT_SETUP([tunnel - Geneve])
+OVS_VSWITCHD_START([add-port br0 p1 -- set Interface p1 type=geneve \
+ options:remote_ip=1.1.1.1 ofport_request=1 options:dst_port=5000])
+
+AT_CHECK([ovs-appctl dpif/show | tail -n +3], [0], [dnl
+ br0 65534/100: (dummy)
+ p1 1/5000: (geneve: dst_port=5000, remote_ip=1.1.1.1)
+])
+
+OVS_VSWITCHD_STOP
+AT_CLEANUP
+
AT_SETUP([tunnel - VXLAN])
OVS_VSWITCHD_START([add-port br0 p1 -- set Interface p1 type=vxlan \
options:remote_ip=1.1.1.1 ofport_request=1])