This reverts commit
d2fa6c676a13e86acc7f17261b2d87484f625d45.
When doing a restart, the routing table will open ports as system, which
prevents internal ports to be opened with the right type. That causes failures
in creating the ports.
We should revisit this patch after finding a proper fix on the routing table
layer.
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@redhat.com>
Acked-by: Daniele Di Proietto <diproiettod@vmware.com>
if (!netdev) {
struct netdev_registered_class *rc;
- type = type && type[0] ? type : "system";
- rc = netdev_lookup_class(type);
+ rc = netdev_lookup_class(type && type[0] ? type : "system");
if (rc && ovs_refcount_try_ref_rcu(&rc->refcnt)) {
netdev = rc->class->alloc();
if (netdev) {
name, type);
error = EAFNOSUPPORT;
}
- } else if (type && strcmp(type, netdev_get_type(netdev))) {
- VLOG_WARN("trying to create netdev %s of different type %s,"
- " already is %s\n",
- name, type, netdev_get_type(netdev));
- error = EEXIST;
} else {
error = 0;
}