netdev-tunnel: put remote_port into the DB
authorGiuseppe Lettieri <g.lettieri@iet.unipi.it>
Tue, 1 May 2012 06:40:33 +0000 (08:40 +0200)
committerGiuseppe Lettieri <g.lettieri@iet.unipi.it>
Tue, 1 May 2012 06:40:33 +0000 (08:40 +0200)
commit7ba8845531122646237e37249baf5fcfd061bc0e
tree9a27c90d2b8f83a2b883bdd7b1007c3ba8cab852
parent399c91552a13a5215bb1ed79917ee61ecd107f6b
netdev-tunnel: put remote_port into the DB

We put the remote_port for each tunnel into the DB, so that it shows in
the output of 'ovs-vsctl show' and persists across local restarts.
Accordingly, a tunnel is now created thusly (we show only one side):

ovs-vsctl add-port br0 tun0 -- set interface tun0 type=tunnel
ovs-appctl netdev-tunnel/get-port tun0

Then, when the remote port is known:

ovs-vsctl set interface tun0 options:remote_ip=... \
options:remote_port=...

(The remote_ip and the remote_port can also be set independently)
lib/netdev-tunnel.c