From 9106d88c5bc75310f3f83b649d833e4a22cb1158 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Thu, 4 Nov 2010 10:53:57 -0700 Subject: [PATCH] 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. --- utilities/ovs-vsctl.c | 1 + 1 file changed, 1 insertion(+) 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); -- 2.45.2