Nova was assuming that every port returned from neutron had a
binding:vnic_type attribute, however this is not always the case.
This fix ensures that in the cases when a port does not have the
attribute nova assumes the default, VNIC_NORMAL. Unit tests added
to prevent the regression of this change have also been addded.
Reviewed: https:/ /review. openstack. org/121939 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=354840aa4b1 d0cf67c5cce37ba c74c5526df74d5
Committed: https:/
Submitter: Jenkins
Branch: master
commit 354840aa4b1d0cf 67c5cce37bac74c 5526df74d5
Author: Sam Betts <email address hidden>
Date: Tue Sep 16 18:34:39 2014 +0100
Assume VNIC_NORMAL if binding:vnic_type not set
Nova was assuming that every port returned from neutron had a vnic_type attribute, however this is not always the case.
binding:
This fix ensures that in the cases when a port does not have the
attribute nova assumes the default, VNIC_NORMAL. Unit tests added
to prevent the regression of this change have also been addded.
Change-Id: Ia92ffa8658c2e9 72fa5556e9e47ad a8affb57053
Closes-Bug: 1370077