self-contained tap creation in the switchd
authorGiuseppe Lettieri <g.lettieri@iet.unipi.it>
Tue, 18 Sep 2012 20:09:06 +0000 (22:09 +0200)
committerGiuseppe Lettieri <g.lettieri@iet.unipi.it>
Tue, 18 Sep 2012 20:14:56 +0000 (22:14 +0200)
commit5f1a532258428d3c09f834e07b64de4da7644004
treec8cbf09851294a4a630f1a0e011f4f384d507683
parenta9818bc6bd9e5f0c3c7fd8c6fd872e4eab2d3f97
self-contained tap creation in the switchd

This patch incorporates the functionality of pltap-ovs,
vsysc and create_bridge into the vswitch server itself.
Now the server is able to re-recreate any bridge contained
in the database after a restart.
The database must also contain the IP/NETMASK of the
tap device. These are stored as options of the bridge
internal interface.

Now the bridge name is no longer required to be the same
as the tap name. Instead, the tap interface remembers
the "real name" internally. The real name can be retrieved
with

ovs-appctl netdev-pltap/get-tapname

The sliver-ovs utility and the exp-tool/Makefile have
been updated accordingly.

TODO:
check wether we are allwed to:
- read the mac address of the tap;
- read the stats.
Otherwise see if we can do that via Vsys.
14 files changed:
lib/automake.mk
lib/dpif-netdev.c
lib/netdev-linux.c
lib/netdev-pltap.c [new file with mode: 0644]
lib/netdev-provider.h
lib/netdev.c
lib/tunalloc.c
planetlab/automake.mk
planetlab/exp-tool/Makefile
planetlab/pltap-ovs/pltap-ovs.c [deleted file]
planetlab/pltap-ovs/tunalloc.c [deleted file]
planetlab/pltap-ovs/tunalloc.h [deleted file]
planetlab/scripts/sliver-ovs.in
planetlab/vsysc/vsysc.c [deleted file]