Vm project UUID should be optional for Port Add requests.
Currently the REST interface of contrail-vrouter-agent for Port Adds, makes it mandatory for vm-project-uuid to be specified when the port type is NovaVMPort. In case of thrift interface this was not mandatory. To ensure backward compatibility, vm-project-uuid should be optional even in REST interface.
Also change the default value for port-type in vrouter_api.py to NameSpacePort to ensure backward compatibility.
Reviewed: https:/ /review. opencontrail. org/28777 github. org/Juniper/ contrail- controller/ commit/ 4de1b8771413f9d 321cfc748964f66 1bd45d9b0a
Committed: http://
Submitter: Zuul (<email address hidden>)
Branch: R3.2
commit 4de1b8771413f9d 321cfc748964f66 1bd45d9b0a
Author: ashoksingh <email address hidden>
Date: Wed Feb 15 09:28:28 2017 +0530
Vm project UUID should be optional for Port Add requests.
Currently the REST interface of contrail- vrouter- agent for Port Adds, makes it mandatory for vm-project-uuid to be specified when the port type is NovaVMPort. In case of thrift interface this was not mandatory. To ensure backward compatibility, vm-project-uuid should be optional even in REST interface.
Also change the default value for port-type in vrouter_api.py to NameSpacePort to ensure backward compatibility.
Change-Id: I04620fe9b2997c 39e46d3069cef8f b82d9f22270
Closes-Bug: #1664819