Ensure trunk status is acknowledged during OVS subport operations
Before this patch, change to trunk status was reported only when
subports were being added, but not when being removed. This patch
tweak things to make sure the same happens on subports removal.
This patch also improves unit coverage for the parts of the code
affected. In particular the import of oslo_context has been aliased
to catch errors where context as variable is shadowed by the homonym
module.
Closes-bug: #1625135
Change-Id: I73127d7829c31ca66578eb8f7d76409b36c9dc6d
(cherry picked from commit 4371ae010a7888220bb67ca9bd423e54c0239fd4)
Reviewed: https:/ /review. openstack. org/374936 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=5831c466202 6e39dc9d74babb4 84d02744e2faf7
Committed: https:/
Submitter: Jenkins
Branch: stable/newton
commit 5831c4662026e39 dc9d74babb484d0 2744e2faf7
Author: Armando Migliaccio <email address hidden>
Date: Mon Sep 19 13:27:30 2016 -0700
Ensure trunk status is acknowledged during OVS subport operations
Before this patch, change to trunk status was reported only when
subports were being added, but not when being removed. This patch
tweak things to make sure the same happens on subports removal.
This patch also improves unit coverage for the parts of the code
affected. In particular the import of oslo_context has been aliased
to catch errors where context as variable is shadowed by the homonym
module.
Closes-bug: #1625135
Change-Id: I73127d7829c31c a66578eb8f7d764 09b36c9dc6d 20bb67ca9bd423e 54c0239fd4)
(cherry picked from commit 4371ae010a78882