Author: gs Date: Tue Aug 9 12:31:17 2011 New Revision: 65286 URL: http://svn.opensuse.org/viewcvs/yast?rev=65286&view=rev Log: add warning popup Modified: branches/SuSE-Code-11-SP2-Branch/fcoe-client/src/complex.ycp branches/SuSE-Code-11-SP2-Branch/fcoe-client/src/dialogs.ycp Modified: branches/SuSE-Code-11-SP2-Branch/fcoe-client/src/complex.ycp URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP2-Branch/fcoe-client/src/complex.ycp?rev=65286&r1=65285&r2=65286&view=diff ============================================================================== --- branches/SuSE-Code-11-SP2-Branch/fcoe-client/src/complex.ycp (original) +++ branches/SuSE-Code-11-SP2-Branch/fcoe-client/src/complex.ycp Tue Aug 9 12:31:17 2011 @@ -268,6 +268,14 @@ } else if ( action == `create ) { + // haendel:~/:[0]# fipvlan -c -s eth3 + // Fibre Channel Forwarders Discovered + // interface | VLAN | FCF MAC + // ------------------------------------------ + // eth3 | 200 | 00:0d:ec:a2:ef:00 + // Created VLAN device eth3.200 + // Starting FCoE on interface eth3.200 + map card = FcoeClient::GetCurrentNetworkCard(); string dev_name = card["dev_name"]:""; @@ -480,7 +488,19 @@ symbol HandleEditDialog( string id, map event ) { any action = event["ID"]:nil; - return nil; + map card = FcoeClient::GetCurrentNetworkCard(); + + if ( action == `dcb ) + { + string dcb_required = (string)UI::QueryWidget( `id(`dcb), `Value ); + if ( dcb_required == "yes" && card["dcb_capable"]:"" != "yes" ) + { + // text of a warning popup + Popup::Warning( _("DCB Required is set to \"yes\" but the +interface isn't DCB capable") ); + y2warning( "DCB_REQUIRED is set to yes but the interface isn't DCB capable" ); + } + } } /** Modified: branches/SuSE-Code-11-SP2-Branch/fcoe-client/src/dialogs.ycp URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP2-Branch/fcoe-client/src/dialogs.ycp?rev=65286&r1=65285&r2=65286&view=diff ============================================================================== --- branches/SuSE-Code-11-SP2-Branch/fcoe-client/src/dialogs.ycp (original) +++ branches/SuSE-Code-11-SP2-Branch/fcoe-client/src/dialogs.ycp Tue Aug 9 12:31:17 2011 @@ -76,7 +76,7 @@ `item(`id("no"), "no", true ) ] ), `VSpacing (1), - `ComboBox( `id(`dcb), _("DCB Required"), + `ComboBox( `id(`dcb), `opt (`notify, `immediate), _("DCB Required"), [`item(`id("yes"), "yes" ), `item(`id("no"), "no", true ) ] ), -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org