ovs-vsctl: Create bridge interface as type "internal".
authorBen Pfaff <blp@nicira.com>
Thu, 4 Nov 2010 17:53:57 +0000 (10:53 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 4 Nov 2010 20:47:26 +0000 (13:47 -0700)
The bridge device is always an internal interface, so it seems best to
actually mark it as one.  Jesse would like to eventually make the "type"
column mandatory for Interface records, so here's a step in the right
direction.

utilities/ovs-vsctl.c

index f4f5c94..4f346f1 100644 (file)
@@ -1073,6 +1073,7 @@ cmd_add_br(struct vsctl_context *ctx)
 
         iface = ovsrec_interface_insert(ctx->txn);
         ovsrec_interface_set_name(iface, br_name);
+        ovsrec_interface_set_type(iface, "internal");
 
         port = ovsrec_port_insert(ctx->txn);
         ovsrec_port_set_name(port, br_name);