-
Notifications
You must be signed in to change notification settings - Fork 243
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add support for address in memory target #3802
add support for address in memory target #3802
Conversation
@@ -113,6 +114,11 @@ def __init__(self, virsh_instance=base.base.virsh): | |||
'virsh_instance': virsh_instance}) | |||
accessors.XMLElementBool('readonly', self, parent_xpath='/', | |||
tag_name='readonly') | |||
accessors.XMLElementNest('address', self, parent_xpath='/', | |||
tag_name='address', subclass=Memory().Address, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tag_name='address', subclass=Memory().Address, | |
tag_name='address', subclass=Memory.Address, |
Would this way also work? Therefore we might not need to instantiate Memory
class.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes , it works. Thanks haijiao : D
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great! np!
Signed-off-by: nanli <[email protected]>
e6a3eea
to
77568d9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Need address attr in Memory.target class
For autotest/tp-libvirt#5293