NetworkManager should check for Internet connection
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical System Image |
Incomplete
|
Undecided
|
Pat McGowan | ||
network-manager (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Reproduce:
Have SIM with bad data plan.*
Wi-FI OFF.
Cellular data ON (and ofono reports Attached = 1)
$ gdbus call -e -d com.ubuntu.
What happens
(<uint32 70>,) (NM_STATE_
What should happen:
(<uint32 20>,) (NM_STATE_
This assumes that NetworkManager's State property definition of “Connected” is equal to “Connected to the Internet”. If it's not, then this needs to be resolved elsewhere.
* Not sure what the exact definition of a bad data plan is, but assume “out of cash”, but ofono still attaches.
[1] https:/
description: | updated |
description: | updated |
description: | updated |
summary: |
- NetworkManager.State reports connected when not + NetworkManager should check for Internet connection |
Changed in network-manager (Ubuntu): | |
status: | New → Confirmed |
Changed in canonical-devices-system-image: | |
assignee: | nobody → Pat McGowan (pat-mcgowan) |
status: | New → Incomplete |
tags: | added: nm-touch |
Unfortunately this is the way NetworkManager works. It's goal is to establish a network connection using the highest priority device and connection available. Success is defined as connection established and networking configuration successful ( ie. IP address assigned, routing table setup, ... ).
NetworkManager does support a feature called 'connectivity checking', see the following blog post ( look for the conf directive: "[connectivity]" ):
https:/ /blogs. gnome.org/ dcbw/2015/ 02/16/networkma nager-for- administrators- part-1/
That said, it's currently disabled as when first tested on Ubuntu, it didn't work that reliably, so it was never enabled by default. It's a bit too late to make this change in wily, so maybe this is something that should be explored for 16.04? That said, if you feel like this is important enough, please raise it with someone from the product team.