Bug 142773 - nm-applet does not distinguish enough between my two dialup configurations.
Summary: nm-applet does not distinguish enough between my two dialup configurations.
Status: RESOLVED FIXED
Alias: None
Product: SUSE Linux 10.1
Classification: openSUSE
Component: Network (show other bugs)
Version: Alpha 4
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Robert Love
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 140732
  Show dependency treegraph
 
Reported: 2006-01-12 10:02 UTC by Forgotten User ZhJd0F0L3x
Modified: 2006-01-12 22:43 UTC (History)
0 users

See Also:
Found By: Component Test
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
the "Dial Up Connections" menu (2.41 KB, image/png)
2006-01-12 10:04 UTC, Forgotten User ZhJd0F0L3x
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Forgotten User ZhJd0F0L3x 2006-01-12 10:02:16 UTC
seife@strolchi:~> rpm -qa Network*
NetworkManager-kde-0.1-6
NetworkManager-gnome-0.5.1cvs20060107-2
NetworkManager-openvpn-0.3.2cvs20060104-2
NetworkManager-0.5.1cvs20060107-2

i have two dialup configurations with different interfaces, both using the same provider:
seife@strolchi:~> cat /etc/sysconfig/network/ifcfg-modemB
BOOTPROTO='none'
DIALCOMMAND='ATDT'
DIALPREFIX=''
DIALPREFIXREGEX=''
INIT1='ATZ'
INIT2='AT &FE1 +CMEE=1'
INIT3='AT +CGDCONT=1,"IP","internet.eplus.de"'
INIT8='ATM0'
INIT9='ATX3'
MODEM_DEVICE='/dev/rfcomm0'
NAME='Modem'
PPPD_OPTIONS=''
PROVIDER='eplus'
SPEED='921600'
STARTMODE='manual'
UNIQUE=''
USERCONTROL='yes'
seife@strolchi:~> cat /etc/sysconfig/network/ifcfg-modemU
BOOTPROTO='none'
DIALCOMMAND='ATDT'
DIALPREFIX=''
DIALPREFIXREGEX=''
INIT1='ATZ'
INIT2='AT &FE1 +CMEE=1'
INIT3='AT +CGDCONT=1,"IP","internet.eplus.de"'
INIT8='ATM0'
INIT9='ATX3'
MODEM_DEVICE='/dev/ttyACM0'
NAME='Modem'
PPPD_OPTIONS=''
PROVIDER='eplus'
SPEED='921600'
STARTMODE='manual'
UNIQUE=''
USERCONTROL='yes'

i get two entries in the dialup connections menu, but both are the same. i will attach a screenshot.
Comment 1 Forgotten User ZhJd0F0L3x 2006-01-12 10:04:51 UTC
Created attachment 63047 [details]
the "Dial Up Connections" menu
Comment 2 Forgotten User ZhJd0F0L3x 2006-01-12 22:11:59 UTC
it does not distinguish at all between the entries - it always dials the same provider.
I moved both config files to ifcfg-modem0 and ifcfg-modem1 due to the ifup bug. modem0 is the file with rfcomm0 and modem1 the file with ttyACM0 (for usb cable).

NM recognizes both configs:
Jan 12 23:03:59 strolchi NetworkManager: <information>  Found dial up configuration for Eplus GPRS/UMTS via Modem: modem1
Jan 12 23:03:59 strolchi NetworkManager: <information>  Found dial up configuration for Eplus GPRS/UMTS via Modem: modem0

but dials always the same (the usb cable is not connected, so the dialup fails):
Jan 12 23:05:24 strolchi NetworkManager: <information>  Activating dialup device Eplus GPRS/UMTS via Modem (modem1) ...
Jan 12 23:05:24 strolchi pppd[32347]: unrecognized option '/dev/ttyACM0'
Jan 12 23:05:30 strolchi NetworkManager: <information>  Activating dialup device Eplus GPRS/UMTS via Modem (modem1) ...
Jan 12 23:05:30 strolchi pppd[32418]: unrecognized option '/dev/ttyACM0'

And yes, i tried both entries in nm-applet ;-)

my software versions:
NetworkManager-0.5.1cvs20060112-1
NetworkManager-gnome-0.5.1cvs20060112-1
Comment 3 Robert Love 2006-01-12 22:17:37 UTC
Ah hah!  Found it.

The problem is that, since they have the same identifier, a search always returns the same one.  So it only happens in your specific case of having two modems with the same provider.

I'll figure out a fix and update the bug once it is checked in.
Comment 4 Forgotten User ZhJd0F0L3x 2006-01-12 22:38:44 UTC
Maybe just adding the interface name to the identifier would solve this (and also my need to name the interfaces "modemU" and "modemB" ;-)
Or we could - more user friendly - add a

NICKNAME="Bluetooth"

field to ifcfg-foobar which if present would be the extra identifier, if not present the interface name (maybe only if the providers names are identical)

This is the most programming effort, i know ;-) but less confusing to the users: if they have only one device - no need to show it. If they have two devices with different providers - again no need to show the device.
If they have my configuration - show the nickname if present, else the device name.

Users with a setup like mine probably can cope with a "ttyACM0" popping up in the user interface ;-)
Comment 5 Robert Love 2006-01-12 22:43:51 UTC
The nickname field would be nice.  If YaST added it, I could use that.

For now, I just add the interface name, as you suggested.

In fact: Fix in CVS and submitted to autobuild (although not yet built) as 0.5.1cvs20060112.