Throw meaningful exception on POST to ports with misconfigured network
Bug #1611440 reported by
Kyle Haley
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
quark |
Fix Released
|
Undecided
|
Kyle Haley |
Bug Description
This will throw a 500 KeyError if a user attempts to create a port on a network that is not configured using the unmanaged driver. We need to throw a meaningful exception.
def create_port(self, context, network_id, port_id, **kwargs):
bridge_name = STRATEGY.
return {"uuid": port_id, "bridge": bridge_name}
To post a comment you must log in.
Fix proposed to branch: master /review. openstack. org/352998
Review: https:/