Author: gs Date: Thu May 12 11:12:19 2011 New Revision: 63965 URL: http://svn.opensuse.org/viewcvs/yast?rev=63965&view=rev Log: info about data modified added Modified: trunk/fcoe-client/src/FcoeClient.ycp trunk/fcoe-client/src/complex.ycp Modified: trunk/fcoe-client/src/FcoeClient.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/fcoe-client/src/FcoeClient.ycp?rev=63965&r1=63964&r2=63965&view=diff ============================================================================== --- trunk/fcoe-client/src/FcoeClient.ycp (original) +++ trunk/fcoe-client/src/FcoeClient.ycp Thu May 12 11:12:19 2011 @@ -337,13 +337,12 @@ string DCBCapable( string netcard ) { string ret = "no"; - + + // 'lldpad' must be started to be able to use 'dcbtool' + // -> is started in ServiceStatus() ( called in Read() before DetectNetworkCards() ) string command = sformat( "LANG=POSIX dcbtool gc %1 dcb", netcard ); y2milestone( "Executing command: %1", command ); - // TODO: lldpad must be started to be able to use dcbtool - // -> started in CheckServices() -> Read() - // ACHTUNG: Reihenfolge !!!# map output = (map)SCR::Execute( .target.bash_output, command ); y2milestone( "Output: %1", output); string status = ""; @@ -470,6 +469,10 @@ } // +// dev_name device FCoE VLAN DCB capable FCoE enable VLAN data modified +// eth3 Ethernet card ... eth3.200 yes/no yes/no 200 yes/no +// 0 1 2 3 4 5 6 +// // Detect network interface cards (hardware probe) and get status // void DetectNetworkCards() @@ -510,14 +513,14 @@ dcb_capable = DCBCapable( card["dev_name"]:"" ); - info_list = add( info_list, card["dev_name"]:""); - info_list = add( info_list, card["device"]:""); - info_list = add( info_list, fcoe_vlan_interface ); - info_list = add( info_list, dcb_capable ); + info_list = add( info_list, card["dev_name"]:""); // network card, e.g. eth3 + info_list = add( info_list, card["device"]:""); // description + info_list = add( info_list, fcoe_vlan_interface ); // FCoE VLAN interface, e.g. eth3.200 + info_list = add( info_list, dcb_capable ); // DCB capable info_list = add( info_list, status_map["FCOE_ENABLE"]:""); info_list = add( info_list, status_map["DCB_REQUIRED"]:""); - info_list = add( info_list, vlan_interface ); - + info_list = add( info_list, vlan_interface ); // VLAN interface, e.g. 200 + info_list = add( info_list, "no" ); // data not modified network_interfaces = add( network_interfaces, row, info_list ); row = row + 1; } ); Modified: trunk/fcoe-client/src/complex.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/fcoe-client/src/complex.ycp?rev=63965&r1=63964&r2=63965&view=diff ============================================================================== --- trunk/fcoe-client/src/complex.ycp (original) +++ trunk/fcoe-client/src/complex.ycp Thu May 12 11:12:19 2011 @@ -365,12 +365,22 @@ void StoreEditDialog (string id, map event) { y2milestone( "Store edit dialog" ); + string modified = "no"; + list <string> card = FcoeClient::GetCurrentNetworkCard(); string fcoe_enabled = (string)UI::QueryWidget( `id(`fcoe), `Value ); - card[4] = fcoe_enabled; + if ( card[4]:"" != fcoe_enabled ) + { + card[4] = fcoe_enabled; + modified = "yes"; + } string dcb_required = (string)UI::QueryWidget( `id(`dcb), `Value ); - card[5] = dcb_required; - + if ( card[5]:"" != dcb_required ) + { + card[5] = dcb_required; + modified = "yes"; + } + card[6] = modified; FcoeClient::SetNetworkCardsValue( FcoeClient::current_card, card ); } -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org