From: Ben Pfaff Date: Thu, 4 Nov 2010 17:53:57 +0000 (-0700) Subject: ovs-vsctl: Create bridge interface as type "internal". X-Git-Tag: v1.1.0~932 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=9106d88c5bc75310f3f83b649d833e4a22cb1158;p=sliver-openvswitch.git ovs-vsctl: Create bridge interface as type "internal". 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. --- diff --git a/utilities/ovs-vsctl.c b/utilities/ovs-vsctl.c index f4f5c94fc..4f346f14f 100644 --- a/utilities/ovs-vsctl.c +++ b/utilities/ovs-vsctl.c @@ -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);