[ovs-dev] [learning v2 12/19] dpif-netdev: Also allow "dummy" netdevs in a dpif-netdev.
Ben Pfaff
blp at nicira.com
Fri Aug 19 15:28:27 PDT 2011
I've always intended this to work, but either I never tested it or the
support rotted.
This will soon be used in some tests that I will add.
---
lib/dpif-netdev.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/lib/dpif-netdev.c b/lib/dpif-netdev.c
index ffcc28a..3b75013 100644
--- a/lib/dpif-netdev.c
+++ b/lib/dpif-netdev.c
@@ -336,7 +336,7 @@ do_add_port(struct dp_netdev *dp, const char *devname, const char *type,
int error;
/* XXX reject devices already in some dp_netdev. */
- if (type[0] == '\0' || !strcmp(type, "system")) {
+ if (type[0] == '\0' || !strcmp(type, "system") || !strcmp(type, "dummy")) {
internal = false;
} else if (!strcmp(type, "internal")) {
internal = true;
--
1.7.4.4
More information about the dev
mailing list