device: allow reapply when the device is activating

Allow a reapply of the connection when the device is still activating
and ensure that each reapply action is performed only at a given
activation stage. For example, the IP configuration is not reactivated
if the device is in the prepare stage.

https://bugzilla.redhat.com/show_bug.cgi?id=1763062
18 jobs for bg/reapply-activating-rh1763062 in 87 minutes and 26 seconds (queued for 1 minute and 3 seconds)
latest
Status Job ID Name Coverage
  Test
passed #791904
allowed to fail
checkpatch

00:01:14

manual #791910
allowed to fail manual
t_centos:7.5.1804
passed #791911
t_centos:7.6.1810

00:24:36

passed #791917
t_debian:10

00:17:37

passed #791916
t_debian:9

00:17:33

passed #791919
t_debian:sid

00:24:14

manual #791918
allowed to fail manual
t_debian:testing
manual #791905
allowed to fail manual
t_fedora:28
passed #791906
t_fedora:29

00:37:10

passed #791907
t_fedora:30

00:36:56

passed #791908
t_fedora:31

00:22:03

manual #791909
allowed to fail manual
t_fedora:rawhide
passed #791912
t_ubuntu:16.04

00:24:27

passed #791913
t_ubuntu:18.04

00:19:08

manual #791915
allowed to fail manual
t_ubuntu:devel
manual #791914
allowed to fail manual
t_ubuntu:rolling
 
  External
passed https://desktopqe-jenkins.rhev-ci-vms.eng.rdu2.redhat.com/job/beaker-NetworkManager-gitlab-trigger-code-upstream/837/

passed https://desktopqe-jenkins.rhev-ci-vms.eng.rdu2.redhat.com/job/beaker-NetworkManager-gitlab-trigger-code-upstream/837/

05:05:04