Skip to content

Commit

Permalink
CASMCMS-8797: Provide more useful example values in v1 and v2 session…
Browse files Browse the repository at this point in the history
… template templates
  • Loading branch information
mharding-hpe committed Sep 11, 2023
1 parent 0b7bde4 commit 30c4c7c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## Unreleased
### Changed
- Removed non-v2 fields from v1 session template template
- Provide more useful example values in v1 and v2 session template templates

## [2.6.3] - 08-22-2023
### Changed
Expand Down
10 changes: 5 additions & 5 deletions src/bos/server/controllers/v1/sessiontemplate.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@
DB = dbutils.get_wrapper(db='session_templates')

EXAMPLE_BOOT_SET = {
"type": "your-boot-type",
"etag": "your_boot_image_etag",
"type": "s3",
"etag": "boot-image-s3-etag",
"kernel_parameters": "your-kernel-parameters",
"node_list": [
"xname1", "xname2", "xname3"],
"path": "your-boot-path",
"rootfs_provider": "your-rootfs-provider",
"rootfs_provider_passthrough": "your-rootfs-provider-passthrough"}
"path": "s3://boot-images/boot-image-ims-id/manifest.json",
"rootfs_provider": "cpss3",
"rootfs_provider_passthrough": "dvs:api-gw-service-nmn.local:300:hsn0,nmn0:0"}

EXAMPLE_SESSION_TEMPLATE = {
"boot_sets": {
Expand Down
10 changes: 5 additions & 5 deletions src/bos/server/controllers/v2/sessiontemplates.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@
BASEKEY = "/sessionTemplates"

EXAMPLE_BOOT_SET = {
"type": "your-boot-type",
"etag": "your_boot_image_etag",
"type": "s3",
"etag": "boot-image-s3-etag",
"kernel_parameters": "your-kernel-parameters",
"cfs": {"configuration": "bootset-specific-cfs-override"},
"node_list": [
"xname1", "xname2", "xname3"],
"path": "your-boot-path",
"rootfs_provider": "your-rootfs-provider",
"rootfs_provider_passthrough": "your-rootfs-provider-passthrough"}
"path": "s3://boot-images/boot-image-ims-id/manifest.json",
"rootfs_provider": "cpss3",
"rootfs_provider_passthrough": "dvs:api-gw-service-nmn.local:300:hsn0,nmn0:0"}

EXAMPLE_SESSION_TEMPLATE = {
"boot_sets": {
Expand Down

0 comments on commit 30c4c7c

Please sign in to comment.