device: don't start connectivity check on unconnected devices

connectivity check does not need to check every interface,
some interfaces are not connected to the Network cable or wifi,
the device state is not NM_DEVICE_STATE_ACTIVATED,
you can skip these interfaces, and also improve efficiency.
21 jobs for master in 5 minutes and 43 seconds (queued for 3 seconds)
latest
Status Job ID Name Coverage
  Test
failed #4065834
allowed to fail
checkpatch

00:01:18

manual #4065841
allowed to fail manual
t_centos:7.5.1804
manual #4065842
allowed to fail manual
t_centos:7.6.1810
manual #4065843
allowed to fail manual
t_centos:7.7.1908
manual #4065844
allowed to fail manual
t_centos:7.8.2003
manual #4065845
allowed to fail manual
t_centos:8.1.1911
manual #4065851
allowed to fail manual
t_debian:10
manual #4065850
allowed to fail manual
t_debian:9
manual #4065853
allowed to fail manual
t_debian:sid
manual #4065852
allowed to fail manual
t_debian:testing
manual #4065835
allowed to fail manual
t_fedora:28
manual #4065836
allowed to fail manual
t_fedora:29
manual #4065837
allowed to fail manual
t_fedora:30
failed #4065838
t_fedora:31

00:05:42

manual #4065839
allowed to fail manual
t_fedora:32
manual #4065840
allowed to fail manual
t_fedora:rawhide
manual #4065846
allowed to fail manual
t_ubuntu:16.04
manual #4065847
allowed to fail manual
t_ubuntu:18.04
manual #4065849
allowed to fail manual
t_ubuntu:devel
manual #4065848
allowed to fail manual
t_ubuntu:rolling
 
  Deploy
skipped #4065854
pages
 
Name Stage Failure
failed
t_fedora:31 Test
make[2]: *** [Makefile:13957: src/devices/libNetworkManager_la-nm-device.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/builds/tk906328/NetworkManager/build'
make[1]: *** [Makefile:17528: all-recursive] Error 1
make[1]: Leaving directory '/builds/tk906328/NetworkManager/build'
make: *** [Makefile:7978: all] Error 2
Running after_script
Uploading artifacts for failed job
ERROR: Job failed: exit code 1
failed
checkpatch Test
> 	 * some interfaces are not connected to the Network cable or wifi, 

The patch does not validate.
Running after_script
Uploading artifacts for failed job
Uploading artifacts...
checkpatch-out.txt: found 1 matching files

Uploading artifacts to coordinator... ok
id=4065834 responseStatus=201 Created token=z7hTpzFz
ERROR: Job failed: exit code 1