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.
Closes-Bug: #1664819
(cherry picked from commit de72bafd363f96048ece41785b0b6f55e64f3a0d)
Reviewed: https:/ /review. opencontrail. org/28977 github. org/Juniper/ contrail- controller/ commit/ bddcd93f1fc8eb0 0607d62c7f688f6 d000f24419
Committed: http://
Submitter: Zuul (<email address hidden>)
Branch: R3.0
commit bddcd93f1fc8eb0 0607d62c7f688f6 d000f24419
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.
Closes-Bug: #1664819 48ece41785b0b6f 55e64f3a0d)
(cherry picked from commit de72bafd363f960
Change-Id: Iacad9fc68acd6a ffcf9f8c3908644 924407e8077