We store portbinding value as string (either plain or json encoded).
If this is stored as dict, the client will not be able to parse it correctly.
We made this change earlier, but one of the bindings that is created internally
is still being set as string. With this code, it will be converted to json
string before writing to database.
Change-Id: I0aa0040bb76c8f4eecb7530c0a744a5bc31b5daf
Closes-Bug: 1709822
(cherry picked from commit dcd8863e13d4b80c9ea767cf7a7e94d75578ed41)
Reviewed: https:/ /review. opencontrail. org/34501 github. com/Juniper/ contrail- controller/ commit/ 7188cd991d2ec6f 661f852fb5ee369 38843758d7
Committed: http://
Submitter: Zuul (<email address hidden>)
Branch: R3.2
commit 7188cd991d2ec6f 661f852fb5ee369 38843758d7
Author: Sachin Bansal <email address hidden>
Date: Thu Aug 10 07:21:24 2017 -0700
portbinding values must be strings, not dict
We store portbinding value as string (either plain or json encoded).
If this is stored as dict, the client will not be able to parse it correctly.
We made this change earlier, but one of the bindings that is created internally
is still being set as string. With this code, it will be converted to json
string before writing to database.
Change-Id: I0aa0040bb76c8f 4eecb7530c0a744 a5bc31b5daf c9ea767cf7a7e94 d75578ed41)
Closes-Bug: 1709822
(cherry picked from commit dcd8863e13d4b80