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/28976 github. org/Juniper/ contrail- controller/ commit/ de72bafd363f960 48ece41785b0b6f 55e64f3a0d
Committed: http://
Submitter: Zuul (<email address hidden>)
Branch: R3.0.3.x
commit de72bafd363f960 48ece41785b0b6f 55e64f3a0d
Author: ashoksingh <email address hidden>
Date: Tue Feb 21 17:04:57 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: Ifc434992f87d8d 8cff2da169d6bfe b308b9903bb
Closes-Bug: #1664819