From d0c08454d44e02baf2e973d0575485c99a1d2e76 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Thu, 5 Mar 2009 13:07:31 -0800 Subject: [PATCH] vswitchd: Start adding ports at index 1, since index 0 is reserved. Otherwise we get a spurious error message (although we do go on to try the next port, so the message isn't a big deal). --- vswitchd/bridge.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vswitchd/bridge.c b/vswitchd/bridge.c index aa70ad21..69cd7b4f 100644 --- a/vswitchd/bridge.c +++ b/vswitchd/bridge.c @@ -388,7 +388,7 @@ bridge_reconfigure(void) bridge_get_all_ifaces(br, &want_ifaces); svec_diff(&want_ifaces, &cur_ifaces, &add_ifaces, NULL, NULL); - next_port_no = 0; + next_port_no = 1; for (i = 0; i < add_ifaces.n; i++) { const char *if_name = add_ifaces.names[i]; if_up(if_name); -- 2.30.2