xenserver: Fix infinite recursion in get_netdev_by_mac.
authorBen Pfaff <blp@nicira.com>
Fri, 7 Aug 2009 21:46:58 +0000 (14:46 -0700)
committerBen Pfaff <blp@nicira.com>
Fri, 7 Aug 2009 21:47:06 +0000 (14:47 -0700)
Oops.

xenserver/opt_xensource_libexec_interface-reconfigure

index 5f19ff3684463927fca57bb10d2e570b39a35be8..05d6a8b0ebc52ab4588e6447883b29716d5d32bb 100755 (executable)
@@ -267,7 +267,7 @@ def get_netdev_tx_queue_len(device):
 def get_netdev_by_mac(mac):
     maybe = None
     for device in os.listdir("/sys/class/net"):
-        dev_mac = get_netdev_by_mac(device)
+        dev_mac = get_netdev_mac(device)
         if dev_mac and mac.lower() == dev_mac.lower():
             if get_netdev_tx_queue_len(device):
                 return device