After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 348915 - Add an API to inform about VPN status
Add an API to inform about VPN status
Status: RESOLVED FIXED
Product: NetworkManager
Classification: Platform
Component: API
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Dan Williams
Dan Williams
Depends on:
Blocks: 324068
 
 
Reported: 2006-07-27 10:23 UTC by Bastien Nocera
Modified: 2008-04-27 21:32 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Bastien Nocera 2006-07-27 10:23:14 UTC
It would be good if the libnm API allowed to query the status of the VPN connection. It would allow applications to have VPN specific accounts and behaviours.

For example, it could enable/disable your work/uni IM/mail accounts when you are using the VPN for that target.

That might mean you have to be able to differentiate VPN access points, and what sort of resource they connect to, eg:
- Work (New York)
- Work (London)
- Uni (Cambridge)
- Uni (Cambridge 2)
Whether we want to support that is another question...
Comment 1 Dan Williams 2008-04-27 21:32:50 UTC
Present in trunk; you'll be notified of new ActiveConnection objects via the 'active-connections' property of the NMClient object.  VPNConnection objects are subclasses of ActiveConnection.  You can then grab the NMConnection path from the VPNConnection, and ask its settings service for the full NMConnection, thus getting the connection ID and name.