OPENSTACK-2894: use utf-8 code for bigip configuration#1616
Open
zhang-shengping wants to merge 1 commit intoF5Networks:v3.0.11-devfrom
Open
OPENSTACK-2894: use utf-8 code for bigip configuration#1616zhang-shengping wants to merge 1 commit intoF5Networks:v3.0.11-devfrom
zhang-shengping wants to merge 1 commit intoF5Networks:v3.0.11-devfrom
Conversation
3959cc9 to
769841a
Compare
769841a to
1b8e9a6
Compare
Author
Author
# -*- coding: utf-8 -*-
from f5_openstack_agent.lbaasv2.drivers.bigip.resource \
import VirtualServer
from f5.bigip import ManagementRoot
import json
partition = u'Project_6fd06a50b7824ae48386565786e94b38'
name = u'test'
bigip = ManagementRoot(
"10.110.119.120",
"admin",
"xxxxx",
timeout=10,
debug=True
)
# this character, the modify PATCH will failed with bigip error.
test = u"退"
# if use this character, the modify PATCH will succeed.
# test = u"哈哈"
vs = VirtualServer()
server = vs.load(bigip, name=name, partition=partition)
server.modify(description=test)The the bigip GUI web displays unreadable messy code as below: To resolve this problem, this patch encodes the request body into utf-8 bytestring and sets the bytestring to the request |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


No description provided.