X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=vswitchd%2Fbridge.c;h=27d40a87519f252d3ac4f5525bf94195f9af77b8;hb=acf60855126bcfa79ea22d7846af5f2efe26cd30;hp=3356a049673c363caaa142607f26dc45cefe57a8;hpb=4213f19da9926e8a6b4569010f152f399d0ad8cc;p=sliver-openvswitch.git diff --git a/vswitchd/bridge.c b/vswitchd/bridge.c index 3356a0496..27d40a875 100644 --- a/vswitchd/bridge.c +++ b/vswitchd/bridge.c @@ -3145,11 +3145,14 @@ static const char * iface_get_type(const struct ovsrec_interface *iface, const struct ovsrec_bridge *br) { - /* The local port always has type "internal". Other ports take their type - * from the database and default to "system" if none is specified. */ - return (!strcmp(iface->name, br->name) ? "internal" - : iface->type[0] ? iface->type - : "system"); + /* The local port always has type "internal" unless the bridge is of + * type "dummy". Other ports take their type from the database and + * default to "system" if none is specified. */ + if (!strcmp(iface->name, br->name)) { + return !strcmp(br->datapath_type, "dummy") ? "dummy" : "internal"; + } else { + return iface->type[0] ? iface->type : "system"; + } } static void