On Wed, Jun 22, 2011 at 02:18:49PM -0700, Ethan Jackson wrote:
> Commit 400430 "xenserver: Give tap devices iface-ids." copies the
> iface-id from vifs to their related tap device.  It turns out this
> is not sufficient, so this commit copies all relevant external_ids
> over.
> 
> Requested-by: Pankaj Thakkar <thak...@nicira.com>
> Signed-off-by: Ethan Jackson <et...@nicira.com>
> 
> Bug #5954.

Reid already made a lot of useful comments.  I have one more:

> +def update_tap_from_vif(idl, tap_name, vif_name):
> +    ifaces = idl.data["Interface"]
> +    tap = None
> +    vif = None
> +
> +    for i in ifaces:
> +        name = str(ifaces[i].name).strip('"')

This seems needlessly indirect.  Will ifaces[i].as_scalar() do the
same thing?
_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to