vswitch: Datapath IDs are now 16 hex digits.
authorBen Pfaff <blp@nicira.com>
Wed, 16 Jun 2010 23:01:41 +0000 (16:01 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 17 Jun 2010 17:26:13 +0000 (10:26 -0700)
OpenFlow 1.0 datapath IDs are 64 bits long, so the "datapath_id" column
should have 16 hex digits.  The documentation had this right, but the
code didn't implement it correctly.

Reported-by: Arthur van Kleef <arthur.vankleef@os3.nl>
vswitchd/bridge.c

index 9097e6b213c7e274a1a02e811c57ae4ffdec2ac1..f6079928f4a7502a6ab2e62b9ad603bb3671834a 100644 (file)
@@ -719,7 +719,7 @@ bridge_reconfigure(const struct ovsrec_open_vswitch *ovs_cfg)
         dpid = bridge_pick_datapath_id(br, ea, hw_addr_iface);
         ofproto_set_datapath_id(br->ofproto, dpid);
 
-        dpid_string = xasprintf("%012"PRIx64, dpid);
+        dpid_string = xasprintf("%016"PRIx64, dpid);
         ovsrec_bridge_set_datapath_id(br->cfg, dpid_string);
         free(dpid_string);