Skip to content

Commit

Permalink
Added support for custom cpu share
Browse files Browse the repository at this point in the history
Signed-off-by: santhosh-sloka <[email protected]>
  • Loading branch information
ssanthosh authored and santhosh-sloka committed Aug 5, 2024
1 parent d194948 commit b3d3049
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions zvmsdk/sdkwsgi/handlers/guest.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ def create(self, body):
kwargs_list['rdomain'] = guest['rdomain']
if 'pcif' in guest_keys:
kwargs_list['pcif'] = guest['pcif']
if 'comments' in guest_keys:
kwargs_list['comment_list'] = guest['comments']

info = self.client.send_request('guest_create', userid, vcpus,
memory, **kwargs_list)
Expand Down
2 changes: 1 addition & 1 deletion zvmsdk/sdkwsgi/validation/parameter_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ def valid_char(char):
'type': ['string'],
'minLength': 1,
'maxLength': 64,
'pattern': '^(\w{,64})$'
'pattern': '^(ABS(O|OL|OLU|OLUT|OLUTE))\s*(?:[1-9]|[1-9][0-9]|100)%$|^(REL(A|AT|ATI|ATIV|ATIVE))\s*(?:[1-9]|[1-9][0-9]|[1-9][0-9]{2}|10000)$'
}


Expand Down

0 comments on commit b3d3049

Please sign in to comment.