From 0ceda58c0697cb3c1ad8b85dc21d105049f92129 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Fri, 7 Aug 2009 14:46:58 -0700 Subject: [PATCH] xenserver: Fix infinite recursion in get_netdev_by_mac. Oops. --- xenserver/opt_xensource_libexec_interface-reconfigure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xenserver/opt_xensource_libexec_interface-reconfigure b/xenserver/opt_xensource_libexec_interface-reconfigure index 5f19ff36..05d6a8b0 100755 --- a/xenserver/opt_xensource_libexec_interface-reconfigure +++ b/xenserver/opt_xensource_libexec_interface-reconfigure @@ -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 -- 2.30.2