Author: gs Date: Wed Apr 20 11:44:33 2011 New Revision: 63834 URL: http://svn.opensuse.org/viewcvs/yast?rev=63834&view=rev Log: get list of netcards Modified: trunk/fcoe-client/src/complex.ycp Modified: trunk/fcoe-client/src/complex.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/fcoe-client/src/complex.ycp?rev=63834&r1=63833&r2=63834&view=diff ============================================================================== --- trunk/fcoe-client/src/complex.ycp (original) +++ trunk/fcoe-client/src/complex.ycp Wed Apr 20 11:44:33 2011 @@ -39,6 +39,7 @@ include "fcoe-client/helps.ycp"; +include "fcoe-client/dialogs.ycp"; /** * Return a modification status @@ -89,6 +90,19 @@ void InitInterfacesDialog (string id) { y2milestone( "Init interfaces dialog" ); + + list <map> netcards = (list<map>)SCR::Read(.probe.netcard); + y2milestone( "Detected netcards: %1", netcards ); + + list <term> table_items = []; + integer row = 0; + foreach ( map card, netcards, { + table_items = add( table_items, `item(`id(row), card["dev_name"]:"", card["device"]:"" ) ); + row = row + 1; + }); + + UI::ChangeWidget( `id(`interfaces), `Items, table_items ); + } void InitConfigurationDialog (string id) { -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org