Vm project UUID is made 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/28978 github. org/Juniper/ contrail- controller/ commit/ d50cc11f5ac266e 3073d5a225393e8 efc9fb075a
Committed: http://
Submitter: Zuul (<email address hidden>)
Branch: R3.1
commit d50cc11f5ac266e 3073d5a225393e8 efc9fb075a
Author: ashoksingh <email address hidden>
Date: Thu Feb 16 08:49:07 2017 +0530
Vm project UUID is made 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: I235bc3beb9adb9 a75f74fe1db67d4 f689ef92f2f
Closes-Bug: #1664819