From a00c931c1b9b8136dbfd687b3d0c2f9ff3773fa8 Mon Sep 17 00:00:00 2001 From: linggao Date: Tue, 16 Jun 2015 16:57:35 -0400 Subject: [PATCH] added message to mention snmp is not supported for switchdiscover --- xCAT-server/lib/xcat/plugins/switchdiscover.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/switchdiscover.pm b/xCAT-server/lib/xcat/plugins/switchdiscover.pm index 3d168724a..4a945e05c 100644 --- a/xCAT-server/lib/xcat/plugins/switchdiscover.pm +++ b/xCAT-server/lib/xcat/plugins/switchdiscover.pm @@ -798,12 +798,12 @@ sub nmap_scan { sub snmp_scan { my $request = shift; - send_msg($request, 0, "Discovering switches using snmp..."); + send_msg($request, 0, "Discovering switches using snmp is not supported yet."); my $switches = { "AABBCCDDEEFA" =>{name=>"switch1", vendor=>"ibm", ip=>"10.1.2.3"}, "112233445566" =>{name=>"switch2", vendor=>"cisco", ip=>"11.4.5.6"} }; - return $switches + return 1; } #--------------------------------------------------------------------------------