dummy: Make --enable-dummy=override replace all dpifs, netdevs by dummies.
authorBen Pfaff <blp@nicira.com>
Thu, 19 Jan 2012 18:24:46 +0000 (10:24 -0800)
committerBen Pfaff <blp@nicira.com>
Thu, 19 Jan 2012 18:24:46 +0000 (10:24 -0800)
commit0cbfe35d74ab5f585033844b6513273aa16cca11
tree9268d33f6fe403f02d9be2fc3a372b0fa2d28e0f
parenta647150f01cf09eddc6d28bfec88b1bb8bab30df
dummy: Make --enable-dummy=override replace all dpifs, netdevs by dummies.

Plain "--enable-dummy" just creates new dummy dpif and netdev classes.
This commit makes "--enable-dummy=override" go a step farther and actually
delete and replace all the existing dpif and netdev classes by copies of
the dummy class.

This is useful for testing in an environment where changing the classes in
Bridge or Interface records is challenging.

Requested-by: Andrew Lambeth <wal@nicira.com>
Tested-by: Andrew Lambeth <wal@nicira.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
lib/dpif-netdev.c
lib/dummy.c
lib/dummy.h
lib/netdev-dummy.c
vswitchd/ovs-vswitchd.c