A netdev might be already opened with a different type and that can be used
instead. The system type is already the default type that will be used when
there is no netdev opened and the type is not specified.
And as long as the opened netdev supports the required operations, it doesn't
matter its type.
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@redhat.com>
{
netdev_close(r->remote_netdev);
- retval = netdev_open(next_hop_dev, "system", &r->remote_netdev);
+ retval = netdev_open(next_hop_dev, NULL, &r->remote_netdev);
if (retval) {
VLOG_WARN_RL(&rl, "%s: cannot open netdev %s (next hop "
"to controller "IP_FMT"): %s",