mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 14:25:26 +00:00
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.
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user