From: Thadeu Lima de Souza Cascardo Date: Mon, 18 Jul 2016 16:10:41 +0000 (-0300) Subject: in-band: don't use system type when opening netdev X-Git-Url: http://git.cascardo.eti.br/?p=cascardo%2Fovs.git;a=commitdiff_plain;h=4cdef2e29e4a51426471c37b9d1abe81af1794dd in-band: don't use system type when opening netdev 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 --- diff --git a/ofproto/in-band.c b/ofproto/in-band.c index e3ee41a4d..f69e94f67 100644 --- a/ofproto/in-band.c +++ b/ofproto/in-band.c @@ -134,7 +134,7 @@ refresh_remote(struct in_band *ib, struct in_band_remote *r) { 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",