diff options
author | Gurucharan Shetty <gshetty@nicira.com> | 2014-07-30 10:31:26 -0700 |
---|---|---|
committer | Gurucharan Shetty <gshetty@nicira.com> | 2014-09-25 16:50:45 -0700 |
commit | 260f76b7e3cf6bd52a2a80d5186f2a68b0123017 (patch) | |
tree | 91c08fa91f602a853d1612cde6e5c2ef19268345 /datapath-windows/include/OvsPub.h | |
parent | cedb277beb5aeca1b6a9abb46c4df1715f515365 (diff) | |
download | openvswitch-260f76b7e3cf6bd52a2a80d5186f2a68b0123017.tar.gz |
ovs-vtep: Use shlex module to split args.
string.split() function splits a quoted string if there is a whitespace
inside the quote.
ex: The following code snippet will output ['printing', '"No', 'Diagnostic"']
args = 'printing "No Diagnostic"'
print args.split()
The above is a problem if we run the following command through vtep_ctl().
vtep-ctl set tunnel $uuid bfd_status:diagnostic="No Diagnostic"
The workaround is to use the split() function from shlex module.
Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
Acked-by: Ariel Tubaltsev <atubaltsev@vmware.com>
Acked-by: Justin Pettit <jpettit@nicira.com>
Diffstat (limited to 'datapath-windows/include/OvsPub.h')
0 files changed, 0 insertions, 0 deletions