Author: gs Date: Thu Oct 27 13:41:07 2011 New Revision: 66623
URL: http://svn.opensuse.org/viewcvs/yast?rev=66623&view=rev Log: set interface not configured if configuration is missing
Modified: trunk/fcoe-client/src/FcoeClient.ycp
Modified: trunk/fcoe-client/src/FcoeClient.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/fcoe-client/src/FcoeClient.ycp?re... ============================================================================== --- trunk/fcoe-client/src/FcoeClient.ycp (original) +++ trunk/fcoe-client/src/FcoeClient.ycp Thu Oct 27 13:41:07 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 {
yast-commit@lists.opensuse.org