Fixes OPENSTACK-887 As nuage-redirect-target could not be added as an extended attribute to the port(since we did not want to make changes in the upstream), we don't catch the invalid redirect_target in the client, a key value pair of nuage_redirect_target gets passed to the port-update. The problem was we delete the bindings first and then when tried to update with new redirect_target, it fails as it is invalid. Added a check to validate the redirect_target before delete_bindings.
Fixes OPENSTACK-887
As nuage-redirect-target could not be added as an extended attribute to the port(since we
did not want to make changes in the upstream), we don't catch the invalid redirect_target in the
client, a key value pair of nuage_redirect_target gets passed to the port-update.
The problem was we delete the bindings first and then when tried to update with new redirect_target,
it fails as it is invalid. Added a check to validate the redirect_target before delete_bindings.

Change-Id: I1c0e1572e290f62c8e741ffa70848c194dd792f6
Closes-Bug: OPENSTACK-887

naveensan1/nuage-openstack-neutron,naveensan1/nuage-openstack-neutron,nuagenetworks/nuage-openstack-neutron,nuagenetworks/nuage-openstack-neutron