Fix broken jumphost detach method when orig file exists 29/42329/2
authorTim Rozet <trozet@redhat.com>
Sat, 16 Sep 2017 13:42:47 +0000 (09:42 -0400)
committerTim Rozet <trozet@redhat.com>
Tue, 19 Sep 2017 19:05:41 +0000 (19:05 +0000)
commitcbc3383820af559b1b69d14968916dd9f074c398
treeb23c95bae1fdfa9fba2fb2937c9ec85338c5e68e
parentf6792ad2fff60fae3759eaf7d4092012acf360db
Fix broken jumphost detach method when orig file exists

In the case where the backup ifcfg file exists (.orig) the functionality
to detach the interface from ovs was broken.  This fixes it and adds
unit test case to cover that scenario.

Change-Id: If6d8ca0ba5cf80df71bb82f52e9d204435374479
Signed-off-by: Tim Rozet <trozet@redhat.com>
(cherry picked from commit 74336aa1ff8270e701c1e5f20c7a566715ed8d92)
apex/network/jumphost.py
apex/tests/test_apex_network_jumphost.py