Improves clean to cleanup virsh nets and and other bridges 59/42359/3
authorTim Rozet <trozet@redhat.com>
Tue, 19 Sep 2017 01:48:45 +0000 (21:48 -0400)
committerTim Rozet <trozet@redhat.com>
Wed, 20 Sep 2017 21:43:32 +0000 (17:43 -0400)
commit02dc854a504569da15b0e41353a9f456e02599ad
tree8463a45f542e38f904fd1e1a7c4db8700f596e27
parent946251720965cd5da9f6798d3ff931950524dd24
Improves clean to cleanup virsh nets and and other bridges

Currently only the admin and external bridges will be removed from the
jumphost which is only really clean for a baremetal deployment.  Virtual
deployments will leave br-tenant, br-api, br-storage.  This patch
removes those as well as deletes all Apex virsh networks from libvirt.

Also checks if authorized_keys exists before trying to edit it.

Change-Id: I1affe2733ba1dc38fd3b91fb14398454137f00a4
Signed-off-by: Tim Rozet <trozet@redhat.com>
apex/clean.py
apex/tests/test_apex_clean.py