[ovs-dev] [PATCH] bridge: don't bring up internal ports by default.

Flavio Leitner fbl at redhat.com
Tue Mar 25 17:51:10 UTC 2014


On Tue, Mar 25, 2014 at 12:14:03PM -0500, Kyle Mestery wrote:
> On Tue, Mar 25, 2014 at 9:41 AM, Flavio Leitner <fbl at redhat.com> wrote:
> 
> > It should be an administrator task to bring up devices as they
> > are configured properly.
> >
> > Currently, Fedora is deleting the bridges when the interface is
> > brought down. Therefore, there is no bridge on the next boot and
> > the initscripts can apply the networking configuration properly
> > for a new bridge.
> >
> > However, if the system didn't execute ifdown for some reason, the
> > bridge is left in the ovsdb and since internal ports are brought
> > up by default, there is no way for initscripts to known if the
> > adminitrator has configured it or not already.
> >
> > This patch partially reverts the commit
> > bef071a5fdf8e2dd87677b04b3cf7a8f5094edcb
> >
> > Signed-off-by: Flavio Leitner <fbl at redhat.com>
> > ---
> >  vswitchd/bridge.c | 3 +--
> >  1 file changed, 1 insertion(+), 2 deletions(-)
> >
> > diff --git a/vswitchd/bridge.c b/vswitchd/bridge.c
> > index db85856..b2a81a7 100644
> > --- a/vswitchd/bridge.c
> > +++ b/vswitchd/bridge.c
> > @@ -1446,8 +1446,7 @@ iface_do_create(const struct bridge *br,
> >      VLOG_INFO("bridge %s: added interface %s on port %d",
> >                br->name, iface_cfg->name, *ofp_portp);
> >
> > -    if ((port_cfg->vlan_mode && !strcmp(port_cfg->vlan_mode, "splinter"))
> > -        || iface_is_internal(iface_cfg, br->cfg)) {
> > +    if (port_cfg->vlan_mode && !strcmp(port_cfg->vlan_mode, "splinter")) {
> >          netdev_turn_flags_on(netdev, NETDEV_UP, NULL);
> >      }
> >
> > This looks ok to me, though it does change the behavior of the internal
> ports here. Should there be a NEWS entry for this to alert users?

I am sending v2 fixing NEWS file too.
Thanks!
fbl




More information about the dev mailing list