diff --git a/CHANGELOG.md b/CHANGELOG.md index ea584f03..c5b1ecbc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/src/bos/server/controllers/v1/sessiontemplate.py b/src/bos/server/controllers/v1/sessiontemplate.py index 5706bcff..2936751a 100644 --- a/src/bos/server/controllers/v1/sessiontemplate.py +++ b/src/bos/server/controllers/v1/sessiontemplate.py @@ -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": { diff --git a/src/bos/server/controllers/v2/sessiontemplates.py b/src/bos/server/controllers/v2/sessiontemplates.py index f032be14..69076a82 100644 --- a/src/bos/server/controllers/v2/sessiontemplates.py +++ b/src/bos/server/controllers/v2/sessiontemplates.py @@ -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": {