xenserver: Fix comment in interface-reconfigure.
authorBen Pfaff <blp@nicira.com>
Mon, 22 Feb 2010 20:37:20 +0000 (12:37 -0800)
committerBen Pfaff <blp@nicira.com>
Tue, 23 Feb 2010 17:51:33 +0000 (09:51 -0800)
This comment was accurate, but didn't actually say what the function did.

Signed-off-by: Ben Pfaff <blp@nicira.com>
xenserver/opt_xensource_libexec_InterfaceReconfigureVswitch.py

index 59bce6f..ef3ed09 100644 (file)
@@ -89,8 +89,9 @@ def pif_currently_in_use(pif):
 
 def pif_datapath(pif):
     """Return the datapath PIF associated with PIF.
-For a non-VLAN PIF, the datapath name is the bridge name.
-For a VLAN PIF, the datapath name is the bridge name for the PIF's VLAN slave.
+A non-VLAN PIF is its own datapath PIF, except that a bridgeless PIF has
+no datapath PIF at all.
+A VLAN PIF's datapath PIF is its VLAN slave's datapath PIF.
 """
     if pif_is_vlan(pif):
         return pif_datapath(pif_get_vlan_slave(pif))