diff options
| author | Ben Pfaff <blp@nicira.com> | 2011-08-18 11:17:29 -0700 |
|---|---|---|
| committer | Ben Pfaff <blp@nicira.com> | 2011-09-13 11:46:09 -0700 |
| commit | 26ce31583b1654a3acaaf6de8e9567e327fbc104 (patch) | |
| tree | bcf290a81ba544e957a47ad19e5be9cba9add2db /lib | |
| parent | 8b3b8dd1a5a1a8ba3b7e62798ff70cb8f9fc7659 (diff) | |
| download | openvswitch-26ce31583b1654a3acaaf6de8e9567e327fbc104.tar.gz | |
dpif-netdev: Also allow "dummy" netdevs in a dpif-netdev.
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.
Diffstat (limited to 'lib')
| -rw-r--r-- | 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 b48be8617..359c80b7f 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; |
