Mailinglist Archive: yast-commit (500 mails)
| < Previous | Next > |
[yast-commit] r66614 - /branches/SuSE-Code-11-SP2-Branch/fcoe-client/src/FcoeClient.ycp
- From: gs@xxxxxxxxxxxxxxxxx
- Date: Thu, 27 Oct 2011 09:27:10 -0000
- Message-id: <20111027092710.99A6032C2F@svn2.opensuse.org>
Author: gs
Date: Thu Oct 27 11:27:10 2011
New Revision: 66614
URL: http://svn.opensuse.org/viewcvs/yast?rev=66614&view=rev
Log:
set interface NOT_CONFIGURED if configuration
isn't available
Modified:
branches/SuSE-Code-11-SP2-Branch/fcoe-client/src/FcoeClient.ycp
Modified: branches/SuSE-Code-11-SP2-Branch/fcoe-client/src/FcoeClient.ycp
URL:
http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP2-Branch/fcoe-client/src/FcoeClient.ycp?rev=66614&r1=66613&r2=66614&view=diff
==============================================================================
--- branches/SuSE-Code-11-SP2-Branch/fcoe-client/src/FcoeClient.ycp (original)
+++ branches/SuSE-Code-11-SP2-Branch/fcoe-client/src/FcoeClient.ycp Thu Oct 27
11:27:10 2011
@@ -443,7 +443,9 @@
if ( !FileUtils::Exists( file_name ) )
{
y2warning( "Cannot read config file for %1 in /etc/fcoe",
vlan_device_name );
- Popup::Warning( sformat(_("Cannot read config file for %1"),
vlan_device_name) );
+ Popup::Warning( sformat(_("Cannot read config file for %1.
+You may edit the settings and recreate the FCoE
+VLAN interface to get a valid configuration."), vlan_device_name) );
return status_map;
}
device = device_name;
@@ -667,6 +669,11 @@
if ( fcoe_vlan_interface != "" )
{
status_map = GetFcoeStatus( fcoe_vlan_interface,
card["dev_name"]:"" );
+ if ( status_map == $[] )
+ {
+ // the interface isn't configured correctly
+ fcoe_vlan_interface = NOT_CONFIGURED;
+ }
}
else
{
--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx
Date: Thu Oct 27 11:27:10 2011
New Revision: 66614
URL: http://svn.opensuse.org/viewcvs/yast?rev=66614&view=rev
Log:
set interface NOT_CONFIGURED if configuration
isn't available
Modified:
branches/SuSE-Code-11-SP2-Branch/fcoe-client/src/FcoeClient.ycp
Modified: branches/SuSE-Code-11-SP2-Branch/fcoe-client/src/FcoeClient.ycp
URL:
http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP2-Branch/fcoe-client/src/FcoeClient.ycp?rev=66614&r1=66613&r2=66614&view=diff
==============================================================================
--- branches/SuSE-Code-11-SP2-Branch/fcoe-client/src/FcoeClient.ycp (original)
+++ branches/SuSE-Code-11-SP2-Branch/fcoe-client/src/FcoeClient.ycp Thu Oct 27
11:27:10 2011
@@ -443,7 +443,9 @@
if ( !FileUtils::Exists( file_name ) )
{
y2warning( "Cannot read config file for %1 in /etc/fcoe",
vlan_device_name );
- Popup::Warning( sformat(_("Cannot read config file for %1"),
vlan_device_name) );
+ Popup::Warning( sformat(_("Cannot read config file for %1.
+You may edit the settings and recreate the FCoE
+VLAN interface to get a valid configuration."), vlan_device_name) );
return status_map;
}
device = device_name;
@@ -667,6 +669,11 @@
if ( fcoe_vlan_interface != "" )
{
status_map = GetFcoeStatus( fcoe_vlan_interface,
card["dev_name"]:"" );
+ if ( status_map == $[] )
+ {
+ // the interface isn't configured correctly
+ fcoe_vlan_interface = NOT_CONFIGURED;
+ }
}
else
{
--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx
| < Previous | Next > |