[yast-commit] r41085 - in /trunk/iscsi-client: VERSION package/yast2-iscsi-client.changes src/widgets.ycp
Author: mzugec Date: Tue Sep 25 14:55:46 2007 New Revision: 41085 URL: http://svn.opensuse.org/viewcvs/yast?rev=41085&view=rev Log: possible to use portal hostname instead of IP Modified: trunk/iscsi-client/VERSION trunk/iscsi-client/package/yast2-iscsi-client.changes trunk/iscsi-client/src/widgets.ycp Modified: trunk/iscsi-client/VERSION URL: http://svn.opensuse.org/viewcvs/yast/trunk/iscsi-client/VERSION?rev=41085&r1=41084&r2=41085&view=diff ============================================================================== --- trunk/iscsi-client/VERSION (original) +++ trunk/iscsi-client/VERSION Tue Sep 25 14:55:46 2007 @@ -1 +1 @@ -2.15.2 +2.16.0 Modified: trunk/iscsi-client/package/yast2-iscsi-client.changes URL: http://svn.opensuse.org/viewcvs/yast/trunk/iscsi-client/package/yast2-iscsi-client.changes?rev=41085&r1=41084&r2=41085&view=diff ============================================================================== --- trunk/iscsi-client/package/yast2-iscsi-client.changes (original) +++ trunk/iscsi-client/package/yast2-iscsi-client.changes Tue Sep 25 14:55:46 2007 @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Tue Sep 25 14:54:57 CEST 2007 - mzugec@suse.cz + +- possible to use portal hostname instead of IP +- 2.16.0 + +------------------------------------------------------------------- Fri Jul 27 17:11:42 CEST 2007 - mzugec@suse.cz - support for iSNS (fate #302083) Modified: trunk/iscsi-client/src/widgets.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/iscsi-client/src/widgets.ycp?rev=41085&r1=41084&r2=41085&view=diff ============================================================================== --- trunk/iscsi-client/src/widgets.ycp (original) +++ trunk/iscsi-client/src/widgets.ycp Tue Sep 25 14:55:46 2007 @@ -379,10 +379,18 @@ // validate IP address if (!IscsiClient::useISNS()) { - if (size(ip)==0) { - Popup::Error(_("Insert the IP address.")); - UI::SetFocus(`hostname); - return false; + if (!IP::Check4(ip)) { + map<string, any> output = (map<string, any>)SCR::Execute(.target.bash_output, sformat("host -4 %1|tr -d '\n'", ip)); + list<string> out=splitstring(output["stdout"]:"", " "); + ip=out[size(out)-1]:""; + y2internal("%1", out); + if (output["exit"]:-1==0){ + + } else { + Popup::Error(output["stdout"]:""); + UI::SetFocus(`hostname); + return false; + } } // validate port number if (size(port)==0) { -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
mzugec@svn.opensuse.org